xaya / libxayagame

MIT License
21 stars 19 forks source link

Introduce "target block" feature for syncing a Game #129

Closed domob1812 closed 1 year ago

domob1812 commented 1 year ago

This introduces a new "target block" feature into Game's syncing logic. If the target block is set, then the Game will try to sync to exactly that block, stopping when it reaches it (in a new AT_TARGET state). The target can be set dynamically and the Game will then try to sync to the new one, or it can be unset and the Game will sync to tip.