mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-05 08:48:03 +00:00
Clean this up a bit more.
Conflicts: src/cpp/ripple/ripple_Peer.cpp
This commit is contained in:
@@ -986,17 +986,16 @@ static void checkTransaction(Job&, int flags, SerializedTransaction::pointer stx
|
|||||||
if (isSetBit(flags, SF_SIGGOOD))
|
if (isSetBit(flags, SF_SIGGOOD))
|
||||||
tx = boost::make_shared<Transaction>(stx, false);
|
tx = boost::make_shared<Transaction>(stx, false);
|
||||||
else
|
else
|
||||||
{
|
|
||||||
tx = boost::make_shared<Transaction>(stx, true);
|
tx = boost::make_shared<Transaction>(stx, true);
|
||||||
if (tx->getStatus() == INVALID)
|
|
||||||
{
|
if (tx->getStatus() == INVALID)
|
||||||
theApp->getHashRouter().setFlag(stx->getTransactionID(), SF_BAD);
|
{
|
||||||
Peer::punishPeer(peer, LT_InvalidSignature);
|
theApp->getHashRouter().setFlag(stx->getTransactionID(), SF_BAD);
|
||||||
return;
|
Peer::punishPeer(peer, LT_InvalidSignature);
|
||||||
}
|
return;
|
||||||
else
|
|
||||||
theApp->getHashRouter().setFlag(stx->getTransactionID(), SF_SIGGOOD);
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
theApp->getHashRouter().setFlag(stx->getTransactionID(), SF_SIGGOOD);
|
||||||
|
|
||||||
theApp->getOPs().processTransaction(tx, isSetBit(flags, SF_TRUSTED));
|
theApp->getOPs().processTransaction(tx, isSetBit(flags, SF_TRUSTED));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user