Skip to content

Commit

Permalink
trie: fix misspell+lint
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Jan 7, 2020
1 parent c934699 commit 4ce3930
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions core/state/state_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (s *stateObject) finalise() {
func (s *stateObject) updateTrie(db Database) Trie {
// Make sure all dirty slots are finalized into the pending storage area
s.finalise()
if len(s.pendingStorage) == 0{
if len(s.pendingStorage) == 0 {
return s.trie
}
// Track the amount of time wasted on updating the storge trie
Expand Down Expand Up @@ -310,7 +310,7 @@ func (s *stateObject) updateTrie(db Database) Trie {

// UpdateRoot sets the trie root to the current root hash of
func (s *stateObject) updateRoot(db Database) {
if s.updateTrie(db) == nil{
if s.updateTrie(db) == nil {
// No changes, storage trie is not even loaded
return
}
Expand All @@ -324,7 +324,7 @@ func (s *stateObject) updateRoot(db Database) {
// CommitTrie the storage trie of the object to db.
// This updates the trie root.
func (s *stateObject) CommitTrie(db Database) error {
if s.updateTrie(db) == nil{
if s.updateTrie(db) == nil {
// No changes, storage trie is not even loaded
return nil
}
Expand Down
4 changes: 2 additions & 2 deletions trie/pure_committer.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ type Leaf struct {
// internal preallocated temp space, and also a callback that is invoked when
// leaves are committed. The leafs are passed through the `leafCh`, to allow
// some level of paralellism.
// By 'some level' of paralellism, it's still the case that all leaves will be
// processed sequentially - onleaf will never be called in paralell or out of order.
// By 'some level' of parallelism, it's still the case that all leaves will be
// processed sequentially - onleaf will never be called in parallel or out of order.
type committer struct {
tmp sliceBuffer
sha keccakState
Expand Down

0 comments on commit 4ce3930

Please sign in to comment.