mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Avoid an extraneous dispatch to the same context we're already in.
Get rid of stored proposals in a more sane way.
This commit is contained in:
@@ -1100,11 +1100,7 @@ static void checkPropose(Job& job, boost::shared_ptr<ripple::TMProposeSet> packe
|
||||
}
|
||||
|
||||
if (isTrusted)
|
||||
{
|
||||
theApp->getJobQueue().addJob(jtPROPOSAL_t, "trustedProposal",
|
||||
BIND_TYPE(&NetworkOPs::processTrustedProposal, &theApp->getOPs(),
|
||||
proposal, packet, nodePublic, prevLedger, sigGood));
|
||||
}
|
||||
theApp->getOPs().processTrustedProposal(proposal, packet, nodePublic, prevLedger, sigGood);
|
||||
else if (sigGood && (prevLedger == consensusLCL))
|
||||
{ // relay untrusted proposal
|
||||
WriteLog (lsTRACE, Peer) << "relaying untrusted proposal";
|
||||
|
||||
Reference in New Issue
Block a user