spacemeshos / post

Spacemesh POST protocol implementation
MIT License
20 stars 21 forks source link

Proof generation / verification: allow cancellation #147

Open fasmat opened 1 year ago

fasmat commented 1 year ago

Description

Proof generation and verification should be able to be cancelled for multiple reasons:

Acceptance criteria

Implementation hints

poszu commented 1 year ago

Related issue in post-rs: https://github.com/spacemeshos/post-rs/issues/81

pigmej commented 4 months ago

Cycle gap of PoET passed and the node hasn't finished generating a proof. A late proof cannot be used anyway so generation should stop when the window passes.

But one can still use and publish ATX so I'm not sure if that's the best idea, isn't it?

fasmat commented 4 months ago

But one can still use and publish ATX so I'm not sure if that's the best idea, isn't it?

When we created this issue I was thinking of prioritizing PoET registration over ATX publication, since only one of the two can be accomplished without breaking protocol rules and being marked as malicious.

I updated the issue to instead cancel the PoST proof generation at the end of the publish epoch, since this better fits the current behavior of the node.

poszu commented 4 months ago

@fasmat The description needs to be updated as we now have the post-service