MCPcopy
hub / github.com/bnb-chain/bsc / binaryIterator

Struct binaryIterator

core/state/snapshot/iterator_binary.go:28–37  ·  view source on GitHub ↗

binaryIterator is a simplistic iterator to step over the accounts or storage in a snapshot, which may or may not be composed of multiple layers. Performance wise this iterator is slow, it's meant for cross validating the fast one,

Source from the content-addressed store, hash-verified

26// in a snapshot, which may or may not be composed of multiple layers. Performance
27// wise this iterator is slow, it's meant for cross validating the fast one,
28type binaryIterator struct {
29 a Iterator
30 b Iterator
31 aDone bool
32 bDone bool
33 accountIterator bool
34 k common.Hash
35 account common.Hash
36 fail error
37}
38
39// initBinaryAccountIterator creates a simplistic iterator to step over all the
40// accounts in a slow, but easily verifiable way. Note this function is used for

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected