Skip to content

Commit 4ce3930

Browse files
committed
trie: fix misspell+lint
1 parent c934699 commit 4ce3930

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

core/state/state_object.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ func (s *stateObject) finalise() {
278278
func (s *stateObject) updateTrie(db Database) Trie {
279279
// Make sure all dirty slots are finalized into the pending storage area
280280
s.finalise()
281-
if len(s.pendingStorage) == 0{
281+
if len(s.pendingStorage) == 0 {
282282
return s.trie
283283
}
284284
// Track the amount of time wasted on updating the storge trie
@@ -310,7 +310,7 @@ func (s *stateObject) updateTrie(db Database) Trie {
310310

311311
// UpdateRoot sets the trie root to the current root hash of
312312
func (s *stateObject) updateRoot(db Database) {
313-
if s.updateTrie(db) == nil{
313+
if s.updateTrie(db) == nil {
314314
// No changes, storage trie is not even loaded
315315
return
316316
}
@@ -324,7 +324,7 @@ func (s *stateObject) updateRoot(db Database) {
324324
// CommitTrie the storage trie of the object to db.
325325
// This updates the trie root.
326326
func (s *stateObject) CommitTrie(db Database) error {
327-
if s.updateTrie(db) == nil{
327+
if s.updateTrie(db) == nil {
328328
// No changes, storage trie is not even loaded
329329
return nil
330330
}

trie/pure_committer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ type Leaf struct {
4242
// internal preallocated temp space, and also a callback that is invoked when
4343
// leaves are committed. The leafs are passed through the `leafCh`, to allow
4444
// some level of paralellism.
45-
// By 'some level' of paralellism, it's still the case that all leaves will be
46-
// processed sequentially - onleaf will never be called in paralell or out of order.
45+
// By 'some level' of parallelism, it's still the case that all leaves will be
46+
// processed sequentially - onleaf will never be called in parallel or out of order.
4747
type committer struct {
4848
tmp sliceBuffer
4949
sha keccakState

0 commit comments

Comments
 (0)