mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-27 03:58:06 +00:00
72e654332e
It requires only two methods from Blockchainer: AddBlock and BlockHeight. New interface will allow to easily reuse the block queue for state exchange purposes.
9 lines
211 B
Go
9 lines
211 B
Go
package blockchainer
|
|
|
|
import "github.com/nspcc-dev/neo-go/pkg/core/block"
|
|
|
|
// Blockqueuer is an interface for blockqueue.
|
|
type Blockqueuer interface {
|
|
AddBlock(block *block.Block) error
|
|
BlockHeight() uint32
|
|
}
|