iterator

package
v0.0.0-...-00b5140 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: MIT Imports: 3 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL