feat(node/p2p): Improved validation so invalid blocks are not marked seen#2392
feat(node/p2p): Improved validation so invalid blocks are not marked seen#2392PoulavBhowmick03 wants to merge 2 commits intoop-rs:mainfrom
Conversation
9cbfd5b to
bc6c149
Compare
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| // Validate signature first | ||
| let msg = envelope.payload_hash.signature_message(self.rollup_config.l1_chain_id); | ||
| let _msg_signer = envelope | ||
| .signature | ||
| .recover_address_from_msg(&msg) | ||
| .map_err(|_| BlockInvalidError::Signature)?; | ||
|
|
There was a problem hiding this comment.
We actually don't want this - we just want to move lines 179 - 191 here, above the seen_hashes check. That way, a block isn't marked as seen even if it has an invalid signature.
There was a problem hiding this comment.
got it. making the changes.
also, i was wondering, if there were any discussion groups for kona currently? would love to join and be a part of it @refcell
bc6c149 to
b8cfb0e
Compare
|
#2391 fixes this and landed before this PR so closing this for now. Thanks for picking this issue up! |
Fixes #2361