@@ -216,7 +216,7 @@ void CPrivateSendServer::ProcessMessage(CNode* pfrom, std::string& strCommand, C
216216 LOCK (cs_main);
217217 CValidationState validationState;
218218 mempool.PrioritiseTransaction (tx.GetHash (), tx.GetHash ().ToString (), 1000 , 0.1 *COIN);
219- if (!AcceptToMemoryPool (mempool, validationState, CTransaction (tx), false , NULL , false , true , true )) {
219+ if (!AcceptToMemoryPool (mempool, validationState, CTransaction (tx), false , NULL , false , maxTxFee , true )) {
220220 LogPrintf (" DSVIN -- transaction not valid! tx=%s" , tx.ToString ());
221221 PushStatus (pfrom, STATUS_REJECTED, ERR_INVALID_TX, connman);
222222 return ;
@@ -343,7 +343,7 @@ void CPrivateSendServer::CommitFinalTransaction(CConnman& connman)
343343 TRY_LOCK (cs_main, lockMain);
344344 CValidationState validationState;
345345 mempool.PrioritiseTransaction (hashTx, hashTx.ToString (), 1000 , 0.1 *COIN);
346- if (!lockMain || !AcceptToMemoryPool (mempool, validationState, finalTransaction, false , NULL , false , true , true ))
346+ if (!lockMain || !AcceptToMemoryPool (mempool, validationState, finalTransaction, false , NULL , false , maxTxFee , true ))
347347 {
348348 LogPrintf (" CPrivateSendServer::CommitFinalTransaction -- AcceptToMemoryPool() error: Transaction not valid\n " );
349349 SetNull ();
@@ -446,7 +446,7 @@ void CPrivateSendServer::ChargeFees(CConnman& connman)
446446
447447 CValidationState state;
448448 bool fMissingInputs ;
449- if (!AcceptToMemoryPool (mempool, state, vecOffendersCollaterals[0 ], false , &fMissingInputs , false , true )) {
449+ if (!AcceptToMemoryPool (mempool, state, vecOffendersCollaterals[0 ], false , &fMissingInputs , false , maxTxFee )) {
450450 // should never really happen
451451 LogPrintf (" CPrivateSendServer::ChargeFees -- ERROR: AcceptToMemoryPool failed!\n " );
452452 } else {
@@ -481,7 +481,7 @@ void CPrivateSendServer::ChargeRandomFees(CConnman& connman)
481481
482482 CValidationState state;
483483 bool fMissingInputs ;
484- if (!AcceptToMemoryPool (mempool, state, txCollateral, false , &fMissingInputs , false , true )) {
484+ if (!AcceptToMemoryPool (mempool, state, txCollateral, false , &fMissingInputs , false , maxTxFee )) {
485485 // should never really happen
486486 LogPrintf (" CPrivateSendServer::ChargeRandomFees -- ERROR: AcceptToMemoryPool failed!\n " );
487487 } else {
0 commit comments