OSDN Git Service

Add the implementation for dppos
[bytom/vapor.git] / protocol / protocol.go
index 7bd8518..ba60e08 100644 (file)
@@ -29,12 +29,13 @@ type Chain struct {
 }
 
 // NewChain returns a new Chain using store as the underlying storage.
 }
 
 // NewChain returns a new Chain using store as the underlying storage.
-func NewChain(store Store, txPool *TxPool) (*Chain, error) {
+func NewChain(store Store, txPool *TxPool, engine engine.Engine) (*Chain, error) {
        c := &Chain{
                orphanManage:   NewOrphanManage(),
                txPool:         txPool,
                store:          store,
                processBlockCh: make(chan *processBlockMsg, maxProcessBlockChSize),
        c := &Chain{
                orphanManage:   NewOrphanManage(),
                txPool:         txPool,
                store:          store,
                processBlockCh: make(chan *processBlockMsg, maxProcessBlockChSize),
+               engine:         engine,
        }
        c.cond.L = new(sync.Mutex)
 
        }
        c.cond.L = new(sync.Mutex)