Skip to content

Commit 3f35465

Browse files
authored
Merge pull request #209 from j-berman/req-comp-synced
p2p: don't request pool complement untils synced [stressnet]
2 parents c6bf539 + 04e382c commit 3f35465

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cryptonote_protocol/cryptonote_protocol_handler.inl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2688,6 +2688,12 @@ skip:
26882688
template<class t_core>
26892689
bool t_cryptonote_protocol_handler<t_core>::check_txpool_complement()
26902690
{
2691+
if (!is_synchronized())
2692+
{
2693+
MDEBUG("Not ready for txpool complement");
2694+
return true;
2695+
}
2696+
26912697
m_p2p->for_each_connection([&](cryptonote_connection_context& context, nodetool::peerid_type peer_id, uint32_t support_flags)->bool
26922698
{
26932699
if(context.m_state < cryptonote_connection_context::state_synchronizing)

0 commit comments

Comments
 (0)