diff options
author | Aaron Buchwald <[email protected]> | 2020-12-14 16:22:22 -0500 |
---|---|---|
committer | Aaron Buchwald <[email protected]> | 2020-12-14 19:10:21 -0500 |
commit | de9c3bc629f7e712b3cd84b280db6a32b9bc7030 (patch) | |
tree | 4aabd136351727a9021408cd4ef458c2953f3a67 /core | |
parent | ddb43b6d824b5de77e4df9e9f551aa067be9b40e (diff) |
Fix linting and add to CI
Diffstat (limited to 'core')
-rw-r--r-- | core/state/statedb.go | 1 | ||||
-rw-r--r-- | core/types/block.go | 2 | ||||
-rw-r--r-- | core/vm/instructions.go | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/core/state/statedb.go b/core/state/statedb.go index c4d926d..f75428b 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -43,7 +43,6 @@ type revision struct { var ( // emptyRoot is the known root hash of an empty trie. emptyRoot = common.HexToHash("56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421") - zeroRoot = common.HexToHash("0000000000000000000000000000000000000000000000000000000000000000") ) type proofList [][]byte diff --git a/core/types/block.go b/core/types/block.go index 8e23488..b293ae7 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -86,7 +86,7 @@ type Header struct { Extra []byte `json:"extraData" gencodec:"required"` MixDigest common.Hash `json:"mixHash"` Nonce BlockNonce `json:"nonce"` - ExtDataHash common.Hash `json:"extDataHash" gencodec:"required"` + ExtDataHash common.Hash `json:"extDataHash" gencodec:"required"` } // field type overrides for gencodec diff --git a/core/vm/instructions.go b/core/vm/instructions.go index e1eb25e..3e1da26 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -18,6 +18,7 @@ package vm import ( "errors" + "github.com/ava-labs/coreth/core/types" "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" |