mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-24 15:56:42 +00:00

* [NOD-1519] Separate BlockBuilder and BlockProcessor * [NOD-1519] Wire blockBuilder properly + implement buildBlockWithParents * [NOD-1519] Added testapi package, TestConsensus interface, and TestConsensus factory * [NOD-1519] Add comments * [NOD-1519] Separate TestBlockBuilder out of BlockBuilder * [NOD-1519] TestBlockBuilder should also implement BlockBuilder * [NOD-1519] Add NewTestConsensus to factory interface
9 lines
247 B
Go
9 lines
247 B
Go
package model
|
|
|
|
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
|
|
// BlockProcessor is responsible for processing incoming blocks
|
|
type BlockProcessor interface {
|
|
ValidateAndInsertBlock(block *externalapi.DomainBlock) error
|
|
}
|