Skip to content

Commit 8ec5e20

Browse files
committed
fix: misusing m_inventory for ProcessMessageRet
1 parent 2af2844 commit 8ec5e20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3608,7 +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-
ret.m_inventory = CInv{MSG_PLATFORM_BAN, hash};
3611+
ret.m_inventory.emplace_back(MSG_PLATFORM_BAN, hash);
36123612
}
36133613
return ret;
36143614
}

0 commit comments

Comments
 (0)