Page MenuHomePhabricator

p2p: Serialize cmpctblock at most once in NewPoWValidBlock
ClosedPublic

Authored by PiRK on Nov 13 2023, 07:32.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC1cde406b7431: p2p: Serialize cmpctblock at most once in NewPoWValidBlock
Summary

Instead of serializing for each peer, serialize at most once and copy the raw data for each peer.

This is a backport of core#23880

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Nov 13 2023, 07:32
Fabien added a subscriber: Fabien.

TIL

src/net_processing.cpp
2402 ↗(On Diff #43048)

Unrelated: this should be a BlockHash

This revision is now accepted and ready to land.Nov 13 2023, 13:01