From b04f67546daf4146bf9411fea3d22a5f8356beb0 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Tue, 20 Dec 2016 03:05:24 +0400 Subject: [PATCH] GetBudgetSystemCollateralTX should use "this" wallet, not "main" (#1212) --- src/wallet/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 8a1ff0a53..13a45756b 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2844,7 +2844,7 @@ bool CWallet::GetBudgetSystemCollateralTX(CTransaction& tx, uint256 hash, CAmoun bool CWallet::GetBudgetSystemCollateralTX(CWalletTx& tx, uint256 hash, CAmount amount, bool fUseInstantSend) { // make our change address - CReserveKey reservekey(pwalletMain); + CReserveKey reservekey(this); CScript scriptChange; scriptChange << OP_RETURN << ToByteVector(hash);