mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-05 08:48:03 +00:00
Decongest the master lock:
* Reduce scope of lock in ledger accept * Remove duplicate tracking of transaction sets * Need master lock to secure ledger sequencing
This commit is contained in:
committed by
Nik Bougalis
parent
e44e75fa6b
commit
60a7abcef6
@@ -1709,19 +1709,6 @@ SHAMapAddNode NetworkOPsImp::gotTXData (
|
||||
return mConsensus->peerGaveNodes (peer, hash, nodeIDs, nodeData);
|
||||
}
|
||||
|
||||
bool NetworkOPsImp::hasTXSet (
|
||||
const std::shared_ptr<Peer>& peer, uint256 const& set,
|
||||
protocol::TxSetStatus status)
|
||||
{
|
||||
if (mConsensus == nullptr)
|
||||
{
|
||||
m_journal.info << "Peer has TX set, not during consensus";
|
||||
return false;
|
||||
}
|
||||
|
||||
return mConsensus->peerHasSet (peer, set, status);
|
||||
}
|
||||
|
||||
bool NetworkOPsImp::stillNeedTXSet (uint256 const& hash)
|
||||
{
|
||||
if (!mConsensus)
|
||||
|
||||
Reference in New Issue
Block a user