Skip to content

Commit 325334f

Browse files
Matthalp-zzkaralabe
authored andcommitted
light: enforce camel case variable names (#19054)
1 parent a8ddf7a commit 325334f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎light/odr_util.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"github.com/ethereum/go-ethereum/rlp"
2929
)
3030

31-
var sha3_nil = crypto.Keccak256Hash(nil)
31+
var sha3Nil = crypto.Keccak256Hash(nil)
3232

3333
func GetHeaderByNumber(ctx context.Context, odr OdrBackend, number uint64) (*types.Header, error) {
3434
db := odr.Database()

‎light/trie.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (db *odrDatabase) CopyTrie(t state.Trie) state.Trie {
6767
}
6868

6969
func (db *odrDatabase) ContractCode(addrHash, codeHash common.Hash) ([]byte, error) {
70-
if codeHash == sha3_nil {
70+
if codeHash == sha3Nil {
7171
return nil, nil
7272
}
7373
if code, err := db.backend.Database().Get(codeHash[:]); err == nil {

0 commit comments

Comments
 (0)