X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=protocol%2Fprotocol.go;h=ba60e08d33850d2d4fb71a8b78fe0b666ee78609;hp=7bd8518876195add4a01a49398941b3b0034662d;hb=e57f41f037f3f37fd7253e34f8a04e60a125e634;hpb=620deabb3a00c7995b190b5ed47a224826165ecf diff --git a/protocol/protocol.go b/protocol/protocol.go index 7bd85188..ba60e08d 100644 --- a/protocol/protocol.go +++ b/protocol/protocol.go @@ -29,12 +29,13 @@ type Chain struct { } // 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), + engine: engine, } c.cond.L = new(sync.Mutex)