HomePhabricator

Introduce constant for mempool-based relay separate from mapRelay caching

Description

Introduce constant for mempool-based relay separate from mapRelay caching

Summary:
This constant is set to 2 minutes, rather than 15. This is still many times
larger than the transaction broadcast interval (2s for outbound, 5s for
inbound), so it should be acceptable for peers to know what our contents of
the mempool was that long ago.

This is a partial backport of core#19109 [2/5]
https://github.com/bitcoin/bitcoin/pull/19109/commits/b24a17f03982c9cd8fd6ec665b16e022374c96f0

Depends on D9434

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Subscribers: majcosta

Differential Revision: https://reviews.bitcoinabc.org/D9435

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Jun 2 2020, 02:38
PiRKCommitted on Apr 21 2021, 06:31
PiRKPushed on Apr 21 2021, 06:31
Reviewer
Restricted Project
Differential Revision
D9435: Introduce constant for mempool-based relay separate from mapRelay caching
Parents
rABC92f5dfef38e0: Swap relay pool and mempool lookup
Branches
Unknown
Tags
Unknown