Documentation ¶
Overview ¶
Package iterator implements a blockchain iterator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockChainIterator ¶
type BlockChainIterator struct { CurrentHash []byte Persistence persistenceadapter.Adapter }
BlockChainIterator represent a blockchain iterator.
func New ¶
func New(p persistenceadapter.Adapter) *BlockChainIterator
New returns a new iterator takes our BlockChain struct and returns it as a BlockChainIterator.
func (*BlockChainIterator) Next ¶
func (b *BlockChainIterator) Next() (*blockchain.Block, error)
Next can get the next blockchain iterator.
Click to show internal directories.
Click to hide internal directories.