OSDN Git Service

fix ci
authorshenao78 <shenao.78@163.com>
Wed, 30 Oct 2019 02:43:24 +0000 (10:43 +0800)
committershenao78 <shenao.78@163.com>
Wed, 30 Oct 2019 02:43:24 +0000 (10:43 +0800)
test/bench_blockchain_test.go
test/performance/mining_test.go

index d17e32b..72752d7 100644 (file)
@@ -159,7 +159,7 @@ func InsertChain(chain *protocol.Chain, txPool *protocol.TxPool, txs []*types.Tx
                }
        }
 
-       block, err := proposal.NewBlockTemplate(chain, txPool, nil, nil, uint64(time.Now().UnixNano()/1e6))
+       block, err := proposal.NewBlockTemplate(chain, txPool, nil, uint64(time.Now().UnixNano()/1e6))
        if err != nil {
                return err
        }
index 15e06a4..0f3f0d6 100644 (file)
@@ -26,6 +26,6 @@ func BenchmarkNewBlockTpl(b *testing.B) {
 
        b.ResetTimer()
        for i := 0; i < b.N; i++ {
-               proposal.NewBlockTemplate(chain, txPool, accountManager, nil, uint64(time.Now().UnixNano()/1e6))
+               proposal.NewBlockTemplate(chain, txPool, accountManager, uint64(time.Now().UnixNano()/1e6))
        }
 }