OSDN Git Service

set proposal have timeout
[bytom/vapor.git] / test / bench_blockchain_test.go
index 40365d0..2d24dc7 100644 (file)
@@ -159,7 +159,7 @@ func InsertChain(chain *protocol.Chain, txPool *protocol.TxPool, txs []*types.Tx
                }
        }
 
-       block, err := proposal.NewBlockTemplate(chain, nil, uint64(time.Now().UnixNano()/1e6))
+       block, err := proposal.NewBlockTemplate(chain, nil, uint64(time.Now().UnixNano()/1e6), time.Minute)
        if err != nil {
                return err
        }