Skip to content

[FEAT] - Snapshot at predictable points #1424

@jasagredo

Description

@jasagredo

Internal

Describe the feature you'd like
In order to make sure that multiple nodes take the same snapshots, it would be useful to implement an alternative snapshotting policy that decides based on the block number. I propose something like:

// currently
{ 
  "SnapshotInterval": 5000       // seconds
}

// proposal
{ 
  "SnapshotInterval": "5000s"       // seconds
}
{ 
  "SnapshotInterval": "100b"        // every @blockno `mod` 100 == 0@
}

We would have to pass to onDiskShouldTakeSnapshot also the current block number.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

👀 In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions