GetBudgetSystemCollateralTX should use "this" wallet, not "main" (#1212)

This commit is contained in:
UdjinM6 2016-12-20 03:05:24 +04:00 committed by GitHub
parent 88ee7a372e
commit b04f67546d

View File

@ -2844,7 +2844,7 @@ bool CWallet::GetBudgetSystemCollateralTX(CTransaction& tx, uint256 hash, CAmoun
bool CWallet::GetBudgetSystemCollateralTX(CWalletTx& tx, uint256 hash, CAmount amount, bool fUseInstantSend) bool CWallet::GetBudgetSystemCollateralTX(CWalletTx& tx, uint256 hash, CAmount amount, bool fUseInstantSend)
{ {
// make our change address // make our change address
CReserveKey reservekey(pwalletMain); CReserveKey reservekey(this);
CScript scriptChange; CScript scriptChange;
scriptChange << OP_RETURN << ToByteVector(hash); scriptChange << OP_RETURN << ToByteVector(hash);