Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
325334f6
Commit
325334f6
authored
Feb 14, 2019
by
Matthew Halpern
Committed by
Péter Szilágyi
Feb 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
light: enforce camel case variable names (#19054)
parent
a8ddf7ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
odr_util.go
light/odr_util.go
+1
-1
trie.go
light/trie.go
+1
-1
No files found.
light/odr_util.go
View file @
325334f6
...
@@ -28,7 +28,7 @@ import (
...
@@ -28,7 +28,7 @@ import (
"github.com/ethereum/go-ethereum/rlp"
"github.com/ethereum/go-ethereum/rlp"
)
)
var
sha3
_n
il
=
crypto
.
Keccak256Hash
(
nil
)
var
sha3
N
il
=
crypto
.
Keccak256Hash
(
nil
)
func
GetHeaderByNumber
(
ctx
context
.
Context
,
odr
OdrBackend
,
number
uint64
)
(
*
types
.
Header
,
error
)
{
func
GetHeaderByNumber
(
ctx
context
.
Context
,
odr
OdrBackend
,
number
uint64
)
(
*
types
.
Header
,
error
)
{
db
:=
odr
.
Database
()
db
:=
odr
.
Database
()
...
...
light/trie.go
View file @
325334f6
...
@@ -67,7 +67,7 @@ func (db *odrDatabase) CopyTrie(t state.Trie) state.Trie {
...
@@ -67,7 +67,7 @@ func (db *odrDatabase) CopyTrie(t state.Trie) state.Trie {
}
}
func
(
db
*
odrDatabase
)
ContractCode
(
addrHash
,
codeHash
common
.
Hash
)
([]
byte
,
error
)
{
func
(
db
*
odrDatabase
)
ContractCode
(
addrHash
,
codeHash
common
.
Hash
)
([]
byte
,
error
)
{
if
codeHash
==
sha3
_n
il
{
if
codeHash
==
sha3
N
il
{
return
nil
,
nil
return
nil
,
nil
}
}
if
code
,
err
:=
db
.
backend
.
Database
()
.
Get
(
codeHash
[
:
]);
err
==
nil
{
if
code
,
err
:=
db
.
backend
.
Database
()
.
Get
(
codeHash
[
:
]);
err
==
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment