core: allow to provide block in GetTestVM()

Sometimes amount of GAS consumed depends on block height.
This commit is contained in:
Evgenii Stratonikov 2020-11-21 15:19:23 +03:00
parent 42ae226f9e
commit a5914f89fa
5 changed files with 6 additions and 6 deletions

View file

@ -50,7 +50,7 @@ type Blockchainer interface {
GetStateRoot(height uint32) (*state.MPTRootState, error)
GetStorageItem(id int32, key []byte) *state.StorageItem
GetStorageItems(id int32) (map[string]*state.StorageItem, error)
GetTestVM(tx *transaction.Transaction) *vm.VM
GetTestVM(tx *transaction.Transaction, b *block.Block) *vm.VM
GetTransaction(util.Uint256) (*transaction.Transaction, uint32, error)
mempool.Feer // fee interface
GetMaxBlockSize() uint32