diff options
author | Matthew Halpern <matthalp@google.com> | 2019-02-14 23:18:32 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-02-14 23:18:32 +0800 |
commit | 325334f61aec9339e7c8f3b6f41e549e56a51522 (patch) | |
tree | e801aecc4eaa78b76071faa9a46b65482d6d4ad2 | |
parent | a8ddf7ad8393cff80848b193c698ce5e6440e061 (diff) | |
download | go-tangerine-325334f61aec9339e7c8f3b6f41e549e56a51522.tar go-tangerine-325334f61aec9339e7c8f3b6f41e549e56a51522.tar.gz go-tangerine-325334f61aec9339e7c8f3b6f41e549e56a51522.tar.bz2 go-tangerine-325334f61aec9339e7c8f3b6f41e549e56a51522.tar.lz go-tangerine-325334f61aec9339e7c8f3b6f41e549e56a51522.tar.xz go-tangerine-325334f61aec9339e7c8f3b6f41e549e56a51522.tar.zst go-tangerine-325334f61aec9339e7c8f3b6f41e549e56a51522.zip |
light: enforce camel case variable names (#19054)
-rw-r--r-- | light/odr_util.go | 2 | ||||
-rw-r--r-- | light/trie.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/light/odr_util.go b/light/odr_util.go index 073f0d642..00103a76b 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 ab4e18b43..4d4abe137 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 { |