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
+1 -1
View File
@@ -98,7 +98,7 @@ fn test_coinbase_maturity() {
let amount = consensus::REWARD;
let lock_height = 1 + global::coinbase_maturity();
let lock_height = 1 + global::coinbase_maturity(1);
assert_eq!(lock_height, 4);
// here we build a tx that attempts to spend the earlier coinbase output