Skip to content

Commit d221a65

Browse files
knstUdjinM6
andcommitted
refactor: let PostProcessMessage do the job
It replaces direct call of EraseObjectRequest Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
1 parent 0860a12 commit d221a65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net_processing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3553,9 +3553,9 @@ MessageProcessingResult PeerManagerImpl::ProcessPlatformBanMessage(NodeId node,
35533553

35543554
LogPrintf("PLATFORMBAN -- hash: %s protx_hash: %s height: %d peer=%d\n", hash.ToString(), ban_msg.m_protx_hash.ToString(), ban_msg.m_requested_height, node);
35553555

3556-
WITH_LOCK(::cs_main, EraseObjectRequest(node, CInv{MSG_PLATFORM_BAN, hash}));
3557-
35583556
MessageProcessingResult ret{};
3557+
ret.m_to_erase = CInv{MSG_PLATFORM_BAN, hash};
3558+
35593559
const auto list = Assert(m_dmnman)->GetListAtChainTip();
35603560
auto dmn = list.GetMN(ban_msg.m_protx_hash);
35613561
if (!dmn) {

0 commit comments

Comments
 (0)