mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-29 08:28:50 +00:00
11 lines
256 B
Go
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)
|
|
}
|