From 7256a46293a4c7b2782ee853b075e336d3b8ae1a Mon Sep 17 00:00:00 2001 From: CaptainDero <34203756+CaptainDero@users.noreply.github.com> Date: Sun, 4 Mar 2018 13:25:34 +0000 Subject: [PATCH] Input maturity fix --- blockchain/inputmaturity/inputmaturity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockchain/inputmaturity/inputmaturity.go b/blockchain/inputmaturity/inputmaturity.go index f19081e..eb41448 100644 --- a/blockchain/inputmaturity/inputmaturity.go +++ b/blockchain/inputmaturity/inputmaturity.go @@ -40,7 +40,7 @@ func Is_Input_Mature(current_chain_height uint64, input_block_height uint64, loc // 99.99 % normal tx cases come here if locked_to_height == 0 { // input is not locked, so it must be unlocked in 10 blocks - if current_chain_height >= (input_block_height + config.NORMAL_TX_AMOUNT_UNLOCK) { + if current_chain_height >= (input_block_height + config.NORMAL_TX_AMOUNT_UNLOCK - 2) { return true } return false