Skip to content

Commit

Permalink
fill header.nFlags before broadcasting
Browse files Browse the repository at this point in the history
  • Loading branch information
backpacker69 committed Jul 14, 2019
1 parent 615d0b4 commit 0c29b0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/net_processing.cpp
Expand Up @@ -858,7 +858,9 @@ static uint256 most_recent_block_hash;
static bool fWitnessesPresentInMostRecentCompactBlock;

void PeerLogicValidation::NewPoWValidBlock(const CBlockIndex *pindex, const std::shared_ptr<const CBlock>& pblock) {
std::shared_ptr<const CBlockHeaderAndShortTxIDs> pcmpctblock = std::make_shared<const CBlockHeaderAndShortTxIDs> (*pblock, true);
std::shared_ptr<CBlockHeaderAndShortTxIDs> pcmpctblock = std::make_shared<CBlockHeaderAndShortTxIDs> (*pblock, true);
pcmpctblock->header.nFlags = pindex->nFlags;

const CNetMsgMaker msgMaker(PROTOCOL_VERSION);

LOCK(cs_main);
Expand Down

0 comments on commit 0c29b0b

Please sign in to comment.