opentensor / subtensor

Bittensor Blockchain Layer
The Unlicense
123 stars 126 forks source link

Enable exponential backoff for AuRa #480

Closed keithtensor closed 1 month ago

keithtensor commented 1 month ago

This PR enables exponential backoff for the block authoring gadget AuRa. It uses the default backoff settings, i.e. it never waits more than 100 blocks before authoring, it starts considering backing off after 50 or more unfinalized blocks, and it is biased to consider the unfinalized head suffix length to grow half as fast as in actuality.

gztensor commented 1 month ago

Wow, this is great we have it now! How do we test exponential backup? Should we add some enormous size test migration?

distributedstatemachine commented 1 month ago

Wow, this is great we have it now! How do we test exponential backup? Should we add some enormous size test migration?

@gztensor would be pretty hard to recreate , but keen on ideas. We need a large existing state , with a lot of nodes , similar to finney. Might be worth recreating during the finney dry run, and using a pre v.1 snapshot