Skip to content

Commit 617ed07

Browse files
fix: proper CacheBlockHeight usage
1 parent d015fe1 commit 617ed07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/instantsend/net_instantsend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void NetInstantSend::ProcessMessage(CNode& pfrom, const std::string& msg_type, C
4242
m_peer_manager->PeerMisbehaving(pfrom.GetId(), 1);
4343
return;
4444
}
45-
m_is_manager.CacheBlockHeight(blockIndex->GetBlockHash(), blockIndex->nHeight);
45+
m_is_manager.CacheBlockHeight(blockIndex);
4646
cycleHeightOpt = blockIndex->nHeight;
4747
}
4848
const int block_height = *cycleHeightOpt;

0 commit comments

Comments
 (0)