mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
add back some func/struct descriptor comments
This commit is contained in:
parent
f615a624fb
commit
3eafb4ea10
1 changed files with 2 additions and 0 deletions
|
|
@ -526,6 +526,7 @@ func (r *stateReaderWithStats) GetStateStats() StateReaderStats {
|
|||
}
|
||||
}
|
||||
|
||||
// reader aggregates a code reader and a state reader into a single object.
|
||||
type reader struct {
|
||||
ContractCodeReader
|
||||
StateReader
|
||||
|
|
@ -534,6 +535,7 @@ type reader struct {
|
|||
codeLoaded sync.Map // common.Address → int (first-seen len(code))
|
||||
}
|
||||
|
||||
// newReader constructs a reader with the supplied code reader and state reader.
|
||||
func newReader(codeReader ContractCodeReader, stateReader StateReader) *reader {
|
||||
return &reader{
|
||||
ContractCodeReader: codeReader,
|
||||
|
|
|
|||
Loading…
Reference in a new issue