aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <tederminant@gmail.com>2020-06-27 23:57:42 -0400
committerDeterminant <tederminant@gmail.com>2020-06-27 23:57:42 -0400
commite4f24f3cd168c63d211fb1e49f1745496d7a3437 (patch)
tree3cb4d0fb9b62c6f6d6cc03863394120ee168c665
parent1c68a9849d5f493ab62e18a125158f6288c1e363 (diff)
make corrections and increase the version number;v0.2.7-rc.2
go mod is crappy and only accepts dep by version numbers. :(
-rw-r--r--plugin/evm/vm.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index 93e2fe2..24fe98c 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -4,6 +4,7 @@
package evm
import (
+ "bytes"
"crypto/rand"
"encoding/json"
"errors"
@@ -305,7 +306,7 @@ func (vm *VM) ParseBlock(b []byte) (snowman.Block, error) {
return nil, err
}
// Coinbase must be zero on C-Chain
- if bytes.Compare(ethBlock.Coinbase(), coreth.ZeroAddr) != 0 {
+ if bytes.Compare(ethBlock.Coinbase().Bytes(), coreth.ZeroAddr.Bytes()) != 0 {
return nil, errInvalidBlock
}
block := &Block{