Skip to content

Commit cc13f15

Browse files
committed
fix: compilation error due to conflict between dashpay#6826 (SignHash refactoring) and dashpay#6613 (Platform ban)
1 parent 2d3e95f commit cc13f15

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
@@ -3596,9 +3596,9 @@ MessageProcessingResult PeerManagerImpl::ProcessPlatformBanMessage(NodeId node,
35963596
const uint256 request_id = ::SerializeHash(std::make_pair(PLATFORM_BAN_REQUESTID_PREFIX, data));
35973597
const uint256 msg_hash = ::SerializeHash(data);
35983598

3599-
uint256 signHash = llmq::BuildSignHash(llmq_type, quorum->qc->quorumHash, request_id, msg_hash);
3599+
auto signHash = llmq::SignHash(llmq_type, quorum->qc->quorumHash, request_id, msg_hash);
36003600

3601-
if (!ban_msg.m_signature.VerifyInsecure(quorum->qc->quorumPublicKey, signHash)) {
3601+
if (!ban_msg.m_signature.VerifyInsecure(quorum->qc->quorumPublicKey, signHash.Get())) {
36023602
LogPrintf("PLATFORMBAN -- hash: %s protx_hash: %s request_id: %s msg_hash: %s sig validation failed\n", hash.ToString(), ban_msg.m_protx_hash.ToString(), request_id.ToString(), msg_hash.ToString());
36033603
ret.m_error = MisbehavingError{100};
36043604
return ret;

0 commit comments

Comments
 (0)