diff options
| author | MarcoFalke <[email protected]> | 2018-02-10 21:06:35 -0500 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-03-17 16:10:01 -0400 |
| commit | fab8a6f609d15863545955d6523c616c2a97eeab (patch) | |
| tree | a6ec9f9c5572e341ac150f470ed7dc24accfae28 /src/qt/paymentserver.cpp | |
| parent | Merge #12683: Fix more constness violations in serialization code (diff) | |
| download | discoin-fab8a6f609d15863545955d6523c616c2a97eeab.tar.xz discoin-fab8a6f609d15863545955d6523c616c2a97eeab.zip | |
wallet: Change output type globals to members
Diffstat (limited to 'src/qt/paymentserver.cpp')
| -rw-r--r-- | src/qt/paymentserver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/paymentserver.cpp b/src/qt/paymentserver.cpp index 4b6fdc8d5..92d7d7293 100644 --- a/src/qt/paymentserver.cpp +++ b/src/qt/paymentserver.cpp @@ -643,7 +643,7 @@ void PaymentServer::fetchPaymentACK(CWallet* wallet, const SendCoinsRecipient& r // use for change. Despite an actual payment and not change, this is a close match: // it's the output type we use subject to privacy issues, but not restricted by what // other software supports. - const OutputType change_type = g_change_type != OUTPUT_TYPE_NONE ? g_change_type : g_address_type; + const OutputType change_type = wallet->m_default_change_type != OutputType::NONE ? wallet->m_default_change_type : wallet->m_default_address_type; wallet->LearnRelatedScripts(newKey, change_type); CTxDestination dest = GetDestinationForKey(newKey, change_type); wallet->SetAddressBook(dest, strAccount, "refund"); |