OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48db203
)
fix validate coinbase
author
shenao78
<shenao.78@163.com>
Thu, 31 Oct 2019 03:23:28 +0000
(11:23 +0800)
committer
shenao78
<shenao.78@163.com>
Thu, 31 Oct 2019 03:23:28 +0000
(11:23 +0800)
proposal/proposal.go
patch
|
blob
|
history
diff --git
a/proposal/proposal.go
b/proposal/proposal.go
index
e27e7a6
..
6a8264a
100644
(file)
--- a/
proposal/proposal.go
+++ b/
proposal/proposal.go
@@
-147,7
+147,7
@@
func applyCoinbaseTransaction(chain *protocol.Chain, block *types.Block, txStatu
return 0, errors.Wrap(err, "fail on create coinbase tx")
}
- gasState, err := validation.ValidateTx(coinbaseTx.Tx, &bc.Block{BlockHeader: &bc.BlockHeader{Height: chain.BestBlockHeight() + 1}})
+ gasState, err := validation.ValidateTx(coinbaseTx.Tx, &bc.Block{BlockHeader: &bc.BlockHeader{Height: chain.BestBlockHeight() + 1}
, Transactions: []*bc.Tx{coinbaseTx.Tx}
})
if err != nil {
return 0, err
}