mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
Actually use cached most recent compact block
This seems to be backported wrongly. In the Bitcoin code, there is a condition on requested witness data and we took the other branch which recreates the compact block. We should have taken the other branch because we always send with witness data (there is no Segwit in Dash).
This commit is contained in:
parent
4b5409ab59
commit
0905b911dc
@ -3348,8 +3348,7 @@ bool SendMessages(CNode* pto, CConnman& connman, const std::atomic<bool>& interr
|
||||
{
|
||||
LOCK(cs_most_recent_block);
|
||||
if (most_recent_block_hash == pBestIndex->GetBlockHash()) {
|
||||
CBlockHeaderAndShortTxIDs cmpctblock(*most_recent_block);
|
||||
connman.PushMessage(pto, msgMaker.Make(NetMsgType::CMPCTBLOCK, cmpctblock));
|
||||
connman.PushMessage(pto, msgMaker.Make(NetMsgType::CMPCTBLOCK, *most_recent_compact_block));
|
||||
fGotBlockFromCache = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user