4 "github.com/vapor/protocol/bc"
5 "github.com/vapor/protocol/bc/types"
12 type matchEnginer interface {
13 ApplyBlock(block *types.Block) error
14 BeforeProposalBlock(capacity int) ([]*types.Tx, error)
15 ChainStatus() (uint64, *bc.Hash, error)
16 DetachBlock(block *types.Block) error
17 IsDust(tx *types.Tx) bool
18 ValidateBlock(block *types.Block) error
19 ValidateTxs(txs []*types.Tx) error
30 func (m MOV) ApplyBlock(block *types.Block) error {
31 return m.engine.ApplyBlock(block)
34 func (m MOV) BeforeProposalBlock(capacity int) ([]*types.Tx, error) {
35 return m.engine.BeforeProposalBlock(capacity)
38 func (m MOV) ChainStatus() (uint64, *bc.Hash, error) {
39 return m.engine.ChainStatus()
42 func (m MOV) DetachBlock(block *types.Block) error {
43 return m.engine.DetachBlock(block)
46 func (m MOV) IsDust(tx *types.Tx) bool {
47 return m.engine.IsDust(tx)
50 func (m MOV) Name() string {
54 func (m MOV) ValidateBlock(block *types.Block) error {
55 return m.engine.ValidateBlock(block)
58 func (m MOV) ValidateTxs(txs []*types.Tx) error {
59 return m.engine.ValidateTxs(txs)