Gossip Fraud Proofs to P2P network after generation when needed#643
Gossip Fraud Proofs to P2P network after generation when needed#643Manav-Aggarwal merged 3 commits intomainfrom
Conversation
3409ec5 to
0bd8ae2
Compare
tzdybal
left a comment
There was a problem hiding this comment.
Now I noticed, that the entire gossiping flow is invalid.
newFraudProofValidator should be kind of similar to newTxValidator - we should verify the fraud proof, and only if it was a valid fraud proof, we should propagate it (return true in validation function returned from newFraudProofValidator).
Right now, we always return true, so all fraud proofs are propagated in gossip network, and we also re-publish them in fraudProofPublishLoop.
I think we don't need this loop at all - the only proof we need to "publish" is the one we generated, and currently our policy is to stop after generating.
0e4504d to
f66f07a
Compare
ba78f4d to
3dbdd74
Compare
bdb6736 to
e496fc0
Compare
|
Follow up issue: #693 |
Codecov ReportBase: 54.59% // Head: 55.07% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #643 +/- ##
==========================================
+ Coverage 54.59% 55.07% +0.47%
==========================================
Files 52 52
Lines 10372 9851 -521
==========================================
- Hits 5663 5425 -238
+ Misses 3840 3618 -222
+ Partials 869 808 -61
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
f6dd61a to
ed74871
Compare
tzdybal
left a comment
There was a problem hiding this comment.
I left few comments. Refactoring error type can be done as followup issue.
nashqueue
left a comment
There was a problem hiding this comment.
LGTM, except that we should not gossip if we get an error from the comment above.
commit f6dd61a Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Tue Jan 17 14:58:31 2023 -0500 Revert integration test changes commit e496fc0 Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Tue Jan 17 14:51:59 2023 -0500 Fix rollmint.pb.go commit fd2fde6 Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Tue Jan 17 14:37:04 2023 -0500 Associate issue with rewriting TestFraudProofTrigger commit b49aa51 Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Tue Jan 17 13:49:56 2023 -0500 Move expected valid apphash after generation to during generation commit d57302d Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Thu Jan 5 14:48:50 2023 -0500 Update error commit 7706677 Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Tue Dec 13 00:01:04 2022 -0500 fix linter commit 325dc2c Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Mon Dec 12 23:46:57 2022 -0500 gossip fp before stopping commit eddd7e3 Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Sun Dec 11 00:51:06 2022 -0500 stop executor after fraud commit 7b447cf Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Sat Dec 10 22:17:22 2022 -0500 add more logging for generating fraud proof commit 35a1a2c Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Sat Dec 10 22:13:55 2022 -0500 Fix deliverTxRequests size commit 01c83cc Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Sat Dec 10 16:54:41 2022 -0500 halt full node and add logging messages commit d150e0d Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Wed Dec 7 18:29:38 2022 -0500 make channel unbufferred commit edc2c8e Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Fri Dec 2 17:28:23 2022 -0500 Add verifyFraudProof to tests commit c719751 Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Fri Dec 2 16:57:50 2022 -0500 Rename expectedAppHash to expectedValidAppHash commit bd3ff36 Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Fri Dec 2 16:55:29 2022 -0500 Add expected valid app hash to verify fraud proof commit 433279a Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Fri Dec 2 13:26:22 2022 -0500 gossip fraud proof through FraudProofOutChan commit 33eae45 Author: Manav Aggarwal <manavaggarwal1234@gmail.com> Date: Fri Dec 2 12:22:53 2022 -0500 Gossip state fraud proof
fa23864 to
739cfce
Compare
Overview
Gossip generated Fraud Proofs to P2P network
Closes: #552
Checklist