From a2b278a1f68064d12eb704aeb0a55b97975db9b0 Mon Sep 17 00:00:00 2001 From: Captain Date: Wed, 30 Mar 2022 12:30:47 +0000 Subject: [PATCH] HardFork at block-6713000 to limit emission of Atlantis, Wallet fix. --- config/version.go | 2 +- walletapi/wallet_transfer.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/version.go b/config/version.go index 98ac7a0..e3a17a3 100644 --- a/config/version.go +++ b/config/version.go @@ -20,4 +20,4 @@ import "github.com/blang/semver" // right now it has to be manually changed // do we need to include git commitsha?? -var Version = semver.MustParse("2.2.2-13.Atlantis.Astrobwt+11032022") +var Version = semver.MustParse("2.2.2-14.Atlantis.Astrobwt+11032022") diff --git a/walletapi/wallet_transfer.go b/walletapi/wallet_transfer.go index cf4bb4b..870f726 100644 --- a/walletapi/wallet_transfer.go +++ b/walletapi/wallet_transfer.go @@ -717,7 +717,8 @@ func (w *Wallet) select_outputs_for_transfer(needed_amount uint64, fees uint64, } // do not select indexes which are past HF and which are dust - if tx.TXdata.Height <= config.HF5_HEIGHT && tx.WAmount > 20 && inputmaturity.Is_Input_Mature(w.Get_Height(), +// if tx.TXdata.Height <= config.HF5_HEIGHT && tx.WAmount > 20 && inputmaturity.Is_Input_Mature(w.Get_Height(), + if inputmaturity.Is_Input_Mature(w.Get_Height(), tx.TXdata.Height, tx.TXdata.Unlock_Height, tx.TXdata.SigType) && !w.IsKeyImageSpent(tx.WKimage) {