consensus: apply policy during verifyBlock

To follow C# implementation we should also check proposed block on
policy matching.
This commit is contained in:
Anna Shaleva 2020-08-03 19:27:32 +03:00
parent 4a1c8464f9
commit db65ed04d9
4 changed files with 40 additions and 0 deletions

View file

@ -50,6 +50,8 @@ type Blockchainer interface {
GetTestVM(tx *transaction.Transaction) *vm.VM
GetTransaction(util.Uint256) (*transaction.Transaction, uint32, error)
mempool.Feer // fee interface
GetMaxBlockSize() uint32
GetMaxBlockSystemFee() int64
PoolTx(*transaction.Transaction) error
SubscribeForBlocks(ch chan<- *block.Block)
SubscribeForExecutions(ch chan<- *state.AppExecResult)