diff options
author | Dan Laine <[email protected]> | 2020-08-31 15:13:04 -0400 |
---|---|---|
committer | Dan Laine <[email protected]> | 2020-08-31 15:13:04 -0400 |
commit | 3f815d083c8e3ba29267c9a2a36ea124a456e6b6 (patch) | |
tree | 3aaaa675e568cb99681fde98733b899d35c20d4f /plugin/evm/vm.go | |
parent | 5f9c76b5f4eb5bb08b8d3e3125b223f3737631d3 (diff) |
Change Parent() to retutn parent's ID rather than the block. Add method parentBlock() to get parent block. Add SaveBlock no-op method to meet new ChainVM interfacev0.2.14
Diffstat (limited to 'plugin/evm/vm.go')
-rw-r--r-- | plugin/evm/vm.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go index e1fdc33..b77e480 100644 --- a/plugin/evm/vm.go +++ b/plugin/evm/vm.go @@ -639,6 +639,12 @@ func (vm *VM) getCachedStatus(blockID ids.ID) choices.Status { return status } +// SaveBlock persists a block to the database. +// Right now this is a no-op and is only here to satisfy the ChainVM interface. +func (vm *VM) SaveBlock(snowman.Block) error { + return nil +} + func (vm *VM) getBlock(id ids.ID) *Block { if blockIntf, ok := vm.blockCache.Get(id); ok { return blockIntf.(*Block) |