fix: add timing constants to better set timeouts

This commit is contained in:
Michael Vines
2019-03-05 09:53:56 -08:00
parent 243a4625f1
commit f655c30159
3 changed files with 24 additions and 6 deletions

7
web3.js/src/timing.js Normal file
View File

@@ -0,0 +1,7 @@
// @flow
// These constants should match the values in
// https://github.com/solana-labs/solana/blob/master/sdk/src/timing.rs
export const NUM_TICKS_PER_SECOND = 10;
export const DEFAULT_TICKS_PER_SLOT = 80;
export const DEFAULT_SLOTS_PER_EPOCH = 64;