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

Interface AccountIterator

core/state/snapshot/iterator.go:52–58  ·  view source on GitHub ↗

AccountIterator is an iterator to step over all the accounts in a snapshot, which may or may not be composed of multiple layers.

Source from the content-addressed store, hash-verified

50// AccountIterator is an iterator to step over all the accounts in a snapshot,
51// which may or may not be composed of multiple layers.
52type AccountIterator interface {
53 Iterator
54
55 // Account returns the RLP encoded slim account the iterator is currently at.
56 // An error will be returned if the iterator becomes invalid
57 Account() []byte
58}
59
60// StorageIterator is an iterator to step over the specific storage in a snapshot,
61// which may or may not be composed of multiple layers.

Callers

nothing calls this directly

Implementers 10

testIteratorcore/state/snapshot/iterator_test.go
diskLayercore/state/snapshot/disklayer.go
diffLayercore/state/snapshot/difflayer.go
binaryIteratorcore/state/snapshot/iterator_binary.go
diffAccountIteratorcore/state/snapshot/iterator.go
diskAccountIteratorcore/state/snapshot/iterator.go
fastIteratorcore/state/snapshot/iterator_fast.go
Loggraphql/graphql.go
Blockgraphql/graphql.go
Pendinggraphql/graphql.go

Calls

no outgoing calls

Tested by

no test coverage detected