Skip to content

Commit

Permalink
light: enforce camel case variable names (ethereum#19054)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthalp-zz authored and karalabe committed Feb 14, 2019
1 parent a8ddf7a commit 325334f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion light/odr_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion light/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 325334f

Please sign in to comment.