From 6b7ab34d309dd6b71edbff723ed8dcce46917784 Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Sun, 12 Jul 2015 10:38:32 -0700 Subject: [PATCH] Budget collateral changes - Use OP_RETURN >> BudgetHash, with an output the size of BUDGET_FEE_TX. This will allow us to burn coins, that will be recreated and avoid hitting the "insane fee" checks --- src/wallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet.cpp b/src/wallet.cpp index 3a51f3fae1..754a2a9385 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -2001,10 +2001,10 @@ bool CWallet::GetBudgetSystemCollateralTX(CWalletTx& tx, uint256 hash, bool useI int64_t nFeeRet = 0; std::string strFail = ""; vector< pair > vecSend; - vecSend.push_back(make_pair(scriptChange, CENT)); + vecSend.push_back(make_pair(scriptChange, BUDGET_FEE_TX)); CCoinControl *coinControl=NULL; - bool success = CreateTransaction(vecSend, tx, reservekey, nFeeRet, strFail, coinControl, ALL_COINS, useIX, (CAmount)BUDGET_FEE_TX); + bool success = CreateTransaction(vecSend, tx, reservekey, nFeeRet, strFail, coinControl, ALL_COINS, useIX, (CAmount)0); if(!success){ LogPrintf("GetBudgetSystemCollateralTX: Error - %s\n", strFail.c_str()); return false;