OSDN Git Service

validate reward address (#505)
[bytom/vapor.git] / protocol / tx.go
index 3c33737..1206916 100644 (file)
@@ -54,7 +54,7 @@ func (c *Chain) validateTx(tx *types.Tx, bh *types.BlockHeader) (bool, error) {
 
        txVerifyResult := &bc.TxVerifyResult{StatusFail: err != nil}
        for _, p := range c.subProtocols {
-               if err := p.ValidateTx(tx, txVerifyResult); err != nil {
+               if err := p.ValidateTx(tx, txVerifyResult, bh.Height); err != nil {
                        c.txPool.AddErrCache(&tx.ID, err)
                        return false, err
                }