Skip to content

Commit

Permalink
Downgrade log level for the InFutureReceipt error in pallet-domains
Browse files Browse the repository at this point in the history
Signed-off-by: linning <[email protected]>
  • Loading branch information
NingLin-P committed Nov 8, 2023
1 parent 3fcbfda commit c56ac40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/pallet-domains/src/block_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ pub(crate) fn verify_execution_receipt<T: Config>(
..
} = execution_receipt;

// Checking if the incoming ER is expected regarding to its `domain_block_number`/freshness
// Checking if the incoming ER is expected regarding to its `domain_block_number` or freshness
if let ReceiptType::Rejected(rejected_receipt_type) =
execution_receipt_type::<T>(domain_id, execution_receipt)
{
Expand Down
3 changes: 2 additions & 1 deletion crates/pallet-domains/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,8 @@ mod pallet {
match e {
// These errors are common due to networking delay or chain re-org,
// using a lower log level to avoid the noise.
BundleError::Receipt(BlockTreeError::StaleReceipt)
BundleError::Receipt(BlockTreeError::InFutureReceipt)
| BundleError::Receipt(BlockTreeError::StaleReceipt)
| BundleError::Receipt(BlockTreeError::NewBranchReceipt)
| BundleError::Receipt(BlockTreeError::BuiltOnUnknownConsensusBlock) => {
log::debug!(
Expand Down

0 comments on commit c56ac40

Please sign in to comment.