diff --git a/light/odr_util.go b/light/odr_util.go index 073f0d64296bea337d7cf7113ffb0d0ca90dad3f..00103a76bd77d22bdb56e7eed7dad915e09d0a2d 100644 --- a/light/odr_util.go +++ b/light/odr_util.go @@ -28,7 +28,7 @@ import ( "github.com/ethereum/go-ethereum/rlp" ) -var sha3_nil = crypto.Keccak256Hash(nil) +var sha3Nil = crypto.Keccak256Hash(nil) func GetHeaderByNumber(ctx context.Context, odr OdrBackend, number uint64) (*types.Header, error) { db := odr.Database() diff --git a/light/trie.go b/light/trie.go index ab4e18b43eecea1b6fff7e1c6421ceaf96d66a63..4d4abe1375cbb6f2c74c75ada5554f1e40370b5d 100644 --- a/light/trie.go +++ b/light/trie.go @@ -67,7 +67,7 @@ func (db *odrDatabase) CopyTrie(t state.Trie) state.Trie { } func (db *odrDatabase) ContractCode(addrHash, codeHash common.Hash) ([]byte, error) { - if codeHash == sha3_nil { + if codeHash == sha3Nil { return nil, nil } if code, err := db.backend.Database().Get(codeHash[:]); err == nil {