omni-network / omni

Monorepo for Omni node, contracts and other related tools
https://omni.network
GNU General Public License v3.0
93 stars 54 forks source link

fix(halo/attest): delete empty attestations on double-sign detection #2524

Closed raehat closed 3 days ago

raehat commented 5 days ago

issue: fixes #2488

corverroos commented 4 days ago

Hey @raehat, thanks for your PR, this is great!

Sorry, I didn't see this until now. I actually also pushed a PR for this earlier today. I actually prefer my implementation, as that avoid doing additional DB queries, which can be significant if the validator set if large. You are welcome to follow my example and then we can merge your PR and I'll abandon mine.

Let me know what you think

raehat commented 3 days ago

Hey @corverroos, I chose the db query approach because I wasn't sure of race conditions. I'll follow your example and push a commit then 👍

corverroos commented 3 days ago

Great work @arajasek approved 🚀