starcoinorg / starcoin-framework

The Starcoin Move framework
Apache License 2.0
50 stars 27 forks source link

[Feature Request]: Supports scheduled snapshot execution #209

Closed yubing744 closed 2 years ago

yubing744 commented 2 years ago

Feature Request

Describe the Feature Request

When performing voting, checkpoint is often forgotten, resulting in voting failure or invalidity

Describe Preferred Solution

Checkpoint calls the service regularly

Describe Alternatives

provides the contract method of create_proposal_with_checkpoint

Related Code

https://github.com/starcoinorg/starcoin-framework/blob/94be70ef2fe528b4bf00e4623005588a600ea578/sources/Block.move#L171-L173

jolestar commented 2 years ago

also need to execute update_state_root_entry after checkpoint_entry

https://github.com/starcoinorg/starcoin-framework/blob/94be70ef2fe528b4bf00e4623005588a600ea578/sources/Block.move#L247-L250

jolestar commented 2 years ago

Need to run an off-chain service to do this task.

wubuku commented 2 years ago

Scheduled tasks are already running on Barnard.