OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a64dd0
)
fix test coinbase tx immature
author
lbqds
<lbqds@outlook.com>
Sun, 22 Apr 2018 05:00:41 +0000
(13:00 +0800)
committer
lbqds
<lbqds@outlook.com>
Sun, 22 Apr 2018 05:00:41 +0000
(13:00 +0800)
test/tx_test.go
patch
|
blob
|
history
diff --git
a/test/tx_test.go
b/test/tx_test.go
index
d879cfe
..
c773454
100644
(file)
--- a/
test/tx_test.go
+++ b/
test/tx_test.go
@@
-172,6
+172,10
@@
func TestCoinbaseMature(t *testing.T) {
chain, _, _, _ := MockChain(db)
defaultCtrlProg := []byte{byte(vm.OP_TRUE)}
+ if err := AppendBlocks(chain, 1); err != nil {
+ t.Fatal(err)
+ }
+
height := chain.BestBlockHeight()
block, err := chain.GetBlockByHeight(height)
if err != nil {