Skip to content

Commit 42f9d7c

Browse files
knstUdjinM6
andcommitted
refactor: let PostProcessMessage do the job II
Now for RelayInv too Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
1 parent d221a65 commit 42f9d7c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3608,8 +3608,7 @@ MessageProcessingResult PeerManagerImpl::ProcessPlatformBanMessage(NodeId node,
36083608
if (meta_info->SetPlatformBan(true, ban_msg.m_requested_height)) {
36093609
LogPrintf("PLATFORMBAN -- forward message to other nodes\n");
36103610
m_mn_metaman.RememberPlatformBan(hash, std::move(ban_msg));
3611-
CInv platform_ban_inv{MSG_PLATFORM_BAN, hash};
3612-
RelayInv(platform_ban_inv);
3611+
ret.m_inventory = CInv{MSG_PLATFORM_BAN, hash};
36133612
}
36143613
return {};
36153614
}

0 commit comments

Comments
 (0)