mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 01:41:36 +00:00
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
cb15100422
commit
138993e926
1 changed files with 2 additions and 2 deletions
|
|
@ -246,7 +246,7 @@ func (r *mptTrieReader) Storage(addr common.Address, key common.Hash) (common.Ha
|
|||
//
|
||||
// ubtTrieReader is safe for concurrent read.
|
||||
type ubtTrieReader struct {
|
||||
root common.Hash // State root which uniquely represent a state
|
||||
root common.Hash // State root which uniquely represents a state
|
||||
db *triedb.Database // Database for loading trie
|
||||
tr Trie // Referenced unified binary trie
|
||||
lock sync.Mutex // Lock for protecting concurrent read
|
||||
|
|
@ -297,7 +297,7 @@ func newUBTTrieReader(root common.Hash, db *triedb.Database) (*ubtTrieReader, er
|
|||
|
||||
// Account implements StateReader, retrieving the account specified by the address.
|
||||
//
|
||||
// An error will be returned if the trie state is corrupted. An nil account
|
||||
// An error will be returned if the trie state is corrupted. A nil account
|
||||
// will be returned if it's not existent in the trie.
|
||||
func (r *ubtTrieReader) Account(addr common.Address) (*types.StateAccount, error) {
|
||||
r.lock.Lock()
|
||||
|
|
|
|||
Loading…
Reference in a new issue