From b7c384ff1169577d1327afe072db3523c4fcff3b Mon Sep 17 00:00:00 2001 From: David Burkett Date: Tue, 12 Apr 2022 03:53:57 -0400 Subject: [PATCH] * Only require 6 block maturity for pegouts in wallet * Display correct stealth address in coin list --- src/wallet/wallet.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 44fbca7fc..f465af5ad 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2734,7 +2734,9 @@ std::map> CWallet::ListCoins() const if (output_idx.type() == typeid(mw::Hash)) { mw::Coin coin; if (GetCoin(boost::get(output_idx), coin) && coin.IsMine() && coin.HasSpendKey()) { - result[address].emplace_back(MWOutput{coin, depth, boost::get(address), wtx}); + StealthAddress stealth_address; + mweb_wallet->GetStealthAddress(coin, stealth_address); + result[address].emplace_back(MWOutput{coin, depth, stealth_address, wtx}); } } else { result[address].emplace_back( @@ -4142,7 +4144,7 @@ int CWalletTx::GetBlocksToMaturity() const if (IsCoinBase()) { return std::max(0, (COINBASE_MATURITY + 1) - chain_depth); } else { - return std::max(0, (PEGOUT_MATURITY + 1) - chain_depth); + return std::max(0, PEGOUT_MATURITY - chain_depth); } }