mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
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
This commit is contained in:
parent
0b3ef3c9fe
commit
6b7ab34d30
@ -2001,10 +2001,10 @@ bool CWallet::GetBudgetSystemCollateralTX(CWalletTx& tx, uint256 hash, bool useI
|
||||
int64_t nFeeRet = 0;
|
||||
std::string strFail = "";
|
||||
vector< pair<CScript, int64_t> > 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;
|
||||
|
Loading…
Reference in New Issue
Block a user