one day coinbase maturity (#1457)

* one day coinbase maturity

* make one day maturity a soft fork
This commit is contained in:
John Tromp
2018-09-04 11:59:55 +02:00
committed by Antioch Peverell
parent 63880f71c7
commit c359c8aaf2
7 changed files with 22 additions and 14 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ fn basic_transaction_api(
// few values to keep things shorter
let reward = core::consensus::REWARD;
let cm = global::coinbase_maturity();
let cm = global::coinbase_maturity(0); // assume all testing precedes soft fork height
// mine a few blocks
let _ = common::award_blocks_to_wallet(&chain, wallet1.clone(), 10);
@@ -288,7 +288,7 @@ fn tx_rollback(test_dir: &str, backend_type: common::BackendType) -> Result<(),
// few values to keep things shorter
let reward = core::consensus::REWARD;
let cm = global::coinbase_maturity();
let cm = global::coinbase_maturity(0); // assume all testing precedes soft fork height
// mine a few blocks
let _ = common::award_blocks_to_wallet(&chain, wallet1.clone(), 5);