accouts, consensus, core: fix some comments (#21617)

pull/21699/head
mr_franklin 4 years ago committed by GitHub
parent 86dd005544
commit 66c3eb2f1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      accounts/accounts.go
  2. 2
      accounts/scwallet/wallet.go
  3. 2
      accounts/usbwallet/wallet.go
  4. 2
      consensus/clique/snapshot_test.go
  5. 6
      core/state/state_object.go

@ -88,7 +88,7 @@ type Wallet interface {
// to discover non zero accounts and automatically add them to list of tracked // to discover non zero accounts and automatically add them to list of tracked
// accounts. // accounts.
// //
// Note, self derivaton will increment the last component of the specified path // Note, self derivation will increment the last component of the specified path
// opposed to decending into a child path to allow discovering accounts starting // opposed to decending into a child path to allow discovering accounts starting
// from non zero components. // from non zero components.
// //

@ -637,7 +637,7 @@ func (w *Wallet) Derive(path accounts.DerivationPath, pin bool) (accounts.Accoun
// to discover non zero accounts and automatically add them to list of tracked // to discover non zero accounts and automatically add them to list of tracked
// accounts. // accounts.
// //
// Note, self derivaton will increment the last component of the specified path // Note, self derivation will increment the last component of the specified path
// opposed to decending into a child path to allow discovering accounts starting // opposed to decending into a child path to allow discovering accounts starting
// from non zero components. // from non zero components.
// //

@ -493,7 +493,7 @@ func (w *wallet) Derive(path accounts.DerivationPath, pin bool) (accounts.Accoun
// to discover non zero accounts and automatically add them to list of tracked // to discover non zero accounts and automatically add them to list of tracked
// accounts. // accounts.
// //
// Note, self derivaton will increment the last component of the specified path // Note, self derivation will increment the last component of the specified path
// opposed to decending into a child path to allow discovering accounts starting // opposed to decending into a child path to allow discovering accounts starting
// from non zero components. // from non zero components.
// //

@ -423,7 +423,7 @@ func TestClique(t *testing.T) {
}) })
// Iterate through the blocks and seal them individually // Iterate through the blocks and seal them individually
for j, block := range blocks { for j, block := range blocks {
// Geth the header and prepare it for signing // Get the header and prepare it for signing
header := block.Header() header := block.Header()
if j > 0 { if j > 0 {
header.ParentHash = blocks[j-1].Hash() header.ParentHash = blocks[j-1].Hash()

@ -299,7 +299,7 @@ func (s *stateObject) updateTrie(db Database) Trie {
if len(s.pendingStorage) == 0 { if len(s.pendingStorage) == 0 {
return s.trie return s.trie
} }
// Track the amount of time wasted on updating the storge trie // Track the amount of time wasted on updating the storage trie
if metrics.EnabledExpensive { if metrics.EnabledExpensive {
defer func(start time.Time) { s.db.StorageUpdates += time.Since(start) }(time.Now()) defer func(start time.Time) { s.db.StorageUpdates += time.Since(start) }(time.Now())
} }
@ -347,7 +347,7 @@ func (s *stateObject) updateRoot(db Database) {
if s.updateTrie(db) == nil { if s.updateTrie(db) == nil {
return return
} }
// Track the amount of time wasted on hashing the storge trie // Track the amount of time wasted on hashing the storage trie
if metrics.EnabledExpensive { if metrics.EnabledExpensive {
defer func(start time.Time) { s.db.StorageHashes += time.Since(start) }(time.Now()) defer func(start time.Time) { s.db.StorageHashes += time.Since(start) }(time.Now())
} }
@ -364,7 +364,7 @@ func (s *stateObject) CommitTrie(db Database) error {
if s.dbErr != nil { if s.dbErr != nil {
return s.dbErr return s.dbErr
} }
// Track the amount of time wasted on committing the storge trie // Track the amount of time wasted on committing the storage trie
if metrics.EnabledExpensive { if metrics.EnabledExpensive {
defer func(start time.Time) { s.db.StorageCommits += time.Since(start) }(time.Now()) defer func(start time.Time) { s.db.StorageCommits += time.Since(start) }(time.Now())
} }

Loading…
Cancel
Save