diff options
author | Aaron Buchwald <[email protected]> | 2020-12-21 12:19:21 -0500 |
---|---|---|
committer | Aaron Buchwald <[email protected]> | 2020-12-21 12:19:21 -0500 |
commit | 4a1eb7db944fcb07ee85964ee8b34c19e3630d3d (patch) | |
tree | 21c0d4579d42b944c938a4ce37b802a55741d2bd /plugin/evm | |
parent | 1f6929d2c073ed4b735e0f60eb8282200262f60b (diff) |
Add CodecRegistry to comply with secp fx interface
Diffstat (limited to 'plugin/evm')
-rw-r--r-- | plugin/evm/vm.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go index 343b4ec..50623c3 100644 --- a/plugin/evm/vm.go +++ b/plugin/evm/vm.go @@ -201,7 +201,7 @@ type VM struct { genlock sync.Mutex txSubmitChan <-chan struct{} atomicTxSubmitChan chan struct{} - baseCodec codec.Codec + baseCodec codec.Registry codec codec.Manager clock timer.Clock txFee uint64 @@ -227,6 +227,9 @@ func (vm *VM) getAtomicTx(block *types.Block) *Tx { // Codec implements the secp256k1fx interface func (vm *VM) Codec() codec.Manager { return vm.codec } +// CodecRegistry implements the secp256k1fx interface +func (vm *VM) CodecRegistry() codec.Registry { return vm.baseCodec } + // Clock implements the secp256k1fx interface func (vm *VM) Clock() *timer.Clock { return &vm.clock } |