mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-05 03:06:16 +00:00
core: implement (*Blockchain).CalculateClaimable
Calculating amount of GAS that can be claimed is required for getclaimable RPC.
This commit is contained in:
parent
252a9f2f31
commit
7095ec6c51
4 changed files with 99 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue