mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 13:35:54 +00:00
Make sure to always set the result, not just the status.
This commit is contained in:
@@ -324,6 +324,7 @@ Transaction::pointer NetworkOPs::processTransaction(Transaction::pointer trans,
|
|||||||
if ((newFlags & SF_BAD) != 0)
|
if ((newFlags & SF_BAD) != 0)
|
||||||
{ // cached bad
|
{ // cached bad
|
||||||
trans->setStatus(INVALID);
|
trans->setStatus(INVALID);
|
||||||
|
trans->setResult(temBAD_SIGNATURE);
|
||||||
return trans;
|
return trans;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -333,6 +334,7 @@ Transaction::pointer NetworkOPs::processTransaction(Transaction::pointer trans,
|
|||||||
{
|
{
|
||||||
cLog(lsINFO) << "Transaction has bad signature";
|
cLog(lsINFO) << "Transaction has bad signature";
|
||||||
trans->setStatus(INVALID);
|
trans->setStatus(INVALID);
|
||||||
|
trans->setResult(temBAD_SIGNATURE);
|
||||||
theApp->isNewFlag(trans->getID(), SF_BAD);
|
theApp->isNewFlag(trans->getID(), SF_BAD);
|
||||||
return trans;
|
return trans;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user