kaspad/domain/consensus/model/blockiterator.go
2021-02-17 18:00:16 +02:00

11 lines
256 B
Go

package model
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
// BlockIterator is an iterator over blocks according to some order.
type BlockIterator interface {
First() bool
Next() bool
Get() (*externalapi.DomainHash, error)
}