Browse Source

Input maturity fix

master
CaptainDero 6 years ago
committed by GitHub
parent
commit
7256a46293
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      blockchain/inputmaturity/inputmaturity.go

+ 1
- 1
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 // 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 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 true
} }
return false return false

Loading…
Cancel
Save