OSDN Git Service

modify miner block to propose block (#92)
[bytom/vapor.git] / protocol / block.go
index a89047c..8ae535a 100644 (file)
@@ -193,7 +193,7 @@ func (c *Chain) saveBlock(block *types.Block) error {
        }
 
        if len(signature) != 0 {
-               if err := c.txPool.eventDispatcher.Post(event.BlockSignatureEvent{BlockHash: block.Hash(), Signature: signature}); err != nil {
+               if err := c.bbft.eventDispatcher.Post(event.BlockSignatureEvent{BlockHash: block.Hash(), Signature: signature}); err != nil {
                        return err
                }
        }