mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Fix compiler warning.
This commit is contained in:
@@ -35,14 +35,11 @@ Transactor::pointer Transactor::makeTransactor(const SerializedTransaction& txn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Transactor::Transactor(const SerializedTransaction& txn,TransactionEngineParams params, TransactionEngine* engine) : mTxn(txn), mParams(params), mEngine(engine)
|
Transactor::Transactor(const SerializedTransaction& txn,TransactionEngineParams params, TransactionEngine* engine) : mTxn(txn), mEngine(engine), mParams(params)
|
||||||
{
|
{
|
||||||
mHasAuthKey=false;
|
mHasAuthKey=false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void Transactor::calculateFee()
|
void Transactor::calculateFee()
|
||||||
{
|
{
|
||||||
mFeeDue = theConfig.FEE_DEFAULT;
|
mFeeDue = theConfig.FEE_DEFAULT;
|
||||||
@@ -78,7 +75,6 @@ TER Transactor::payFee()
|
|||||||
mTxnAccount->setFieldAmount(sfBalance, mSourceBalance);
|
mTxnAccount->setFieldAmount(sfBalance, mSourceBalance);
|
||||||
|
|
||||||
return tesSUCCESS;
|
return tesSUCCESS;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -137,7 +133,6 @@ TER Transactor::checkSeq()
|
|||||||
cLog(lsWARNING) << "applyTransaction: past sequence number";
|
cLog(lsWARNING) << "applyTransaction: past sequence number";
|
||||||
|
|
||||||
return tefPAST_SEQ;
|
return tefPAST_SEQ;
|
||||||
|
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
mTxnAccount->setFieldU32(sfSequence, t_seq + 1);
|
mTxnAccount->setFieldU32(sfSequence, t_seq + 1);
|
||||||
@@ -216,5 +211,6 @@ TER Transactor::apply()
|
|||||||
mEngine->entryModify(mTxnAccount);
|
mEngine->entryModify(mTxnAccount);
|
||||||
|
|
||||||
return doApply();
|
return doApply();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// vim:ts=4
|
||||||
|
|||||||
Reference in New Issue
Block a user