filecoin-project / filecoin-chain-archiver

Filecoin snapshot / chain export software
Other
5 stars 3 forks source link

Configurable / discoverable network blocktime #14

Open travisperson opened 2 years ago

travisperson commented 2 years ago

Currently network blocktime is hard coded to 30 seconds, most networks operate on blocktime but it should still be a configurable option or discoverable instead of the hard coded value.

There is a PR (https://github.com/filecoin-project/lotus/pull/8546) that will expose blocktime from the API that can be used later.

This could be calculated by taking the genesis timestamp and a current head TipSet.

travisperson commented 2 years ago

I forgot this is actually provided by the Filecoin.Version API.