-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore receipts from failed transactions in message_receipts_proof
#2478
base: master
Are you sure you want to change the base?
Conversation
@@ -278,7 +278,11 @@ fn message_receipts_proof<T: MessageProofData + ?Sized>( | |||
// Get the message receipts from the block. | |||
let leaves: Vec<Vec<Receipt>> = message_block_txs | |||
.iter() | |||
.map(|id| database.receipts(id)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
database.insert_receipts(valid_tx_id, valid_tx_receipts.clone()); | ||
|
||
// Get the message proof with the valid transaction | ||
let message_proof_valid_tx = message_receipts_proof( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice if we tested public function message_proof
instead of the private
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Resolves #2421
In this PR we changed the
message_receipts_proof
to ignore the receipts from the failed transactions.Checklist
Before requesting review