-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vocone: fix dateToBlock estimation endpoint
* vocinfo.BlockTimes() now returns [5]time.Duration * during startup, endpoint /chain/info now returns BlockTimeTarget instead of `[0, 0, 0, 0, 0]` * vochain/app now has BlockTimeTarget and SetBlockTimeTarget * types.DefaultBlockTime fixed (10s instead of 12s) * vi.EstimateBlockHeight and vi.HeightTime refactored and fixed * vocone now keeps track of blockTimestamps * improved vocone.getBlock to fill in blk.Time, blk.Height and blk.ChainID
- Loading branch information
Showing
8 changed files
with
109 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.