Page MenuHomePhabricator

[net processing] Default initialize m_recent_confirmed_transactions
ClosedPublic

Authored by PiRK on Mar 17 2023, 15:48.

Details

Summary

Now that m_recent_confirmed_transactions is owned by PeerManagerImpl,
and PeerManagerImpl's lifetime is managed by the node context, we can
just default initialize m_recent_confirmed_transactions during object
initialization. We can also remove the unique_ptr indirection.

This concludes backport of core#21562
https://github.com/bitcoin/bitcoin/pull/21562/commits/fde1bf4f6136638e84cdf9806eedaae08e841bbf

Depends on D13379

Test Plan

ninja all check-all

Event Timeline

PiRK requested review of this revision.Mar 17 2023, 15:48
src/net_processing.cpp
758

24'000 vs 48'000 is because we don't have the wtxid to store in that filter in addition to the txids
(https://github.com/bitcoin/bitcoin/commit/144c38582042c3b9ec53bb97ba0644fc0114f8fb)

This revision is now accepted and ready to land.Mar 17 2023, 19:26