core: implement (*Blockchain).CalculateClaimable

Calculating amount of GAS that can be claimed is required
for getclaimable RPC.
This commit is contained in:
Evgenii Stratonikov 2020-02-25 16:15:17 +03:00
parent 252a9f2f31
commit 7095ec6c51
4 changed files with 99 additions and 0 deletions

View file

@ -20,6 +20,7 @@ type Blockchainer interface {
AddHeaders(...*block.Header) error
AddBlock(*block.Block) error
BlockHeight() uint32
CalculateClaimable(value util.Fixed8, startHeight, endHeight uint32) (util.Fixed8, util.Fixed8, error)
Close()
HeaderHeight() uint32
GetBlock(hash util.Uint256) (*block.Block, error)