mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-30 02:31:05 +02:00
Merge bitcoin/bitcoin#31666: multi-peer orphan resolution followups
7426afbe62
[p2p] assign just 1 random announcer in AddChildrenToWorkSet (glozow)4c1fa6b28c
test fix: make peer who sends MSG_TX announcement non-wtxidrelay (glozow)2da46b88f0
pass P2PTxInvStore init args to P2PInterface init (glozow)e3bd51e4b5
[doc] how unique_parents can be empty (glozow)32eb6dc758
[refactor] assign local variable for wtxid (glozow)18820ccf6b
multi-announcer orphan handling test fixups (glozow)c4cc61db98
[fuzz] GetCandidatePeers (glozow)7704139cf0
[refactor] make GetCandidatePeers take uint256 and in-out vector (glozow)6e4d392a75
[refactor] rename to OrphanResolutionCandidate to MaybeAdd* (glozow)57221ad979
[refactor] move parent inv-adding to OrphanResolutionCandidate (glozow) Pull request description: Followup to #31397. Addressing (in order): https://github.com/bitcoin/bitcoin/pull/31397#discussion_r1906077380 https://github.com/bitcoin/bitcoin/pull/31397#discussion_r1881060842 https://github.com/bitcoin/bitcoin/pull/31397#discussion_r1905994963 https://github.com/bitcoin/bitcoin/pull/31397#discussion_r1905999581 https://github.com/bitcoin/bitcoin/pull/31397#discussion_r1906001592 https://github.com/bitcoin/bitcoin/pull/31397#discussion_r1905989913 https://github.com/bitcoin/bitcoin/pull/31397#discussion_r1905920861 https://github.com/bitcoin/bitcoin/pull/31658#pullrequestreview-2551617694 https://github.com/bitcoin/bitcoin/pull/31397#discussion_r1917559601 ACKs for top commit: instagibbs: reACK7426afbe62
marcofleon: reACK7426afbe62
mzumsande: Code Review ACK7426afbe62
dergoegge: Code review ACK7426afbe62
Tree-SHA512: bca8f576873fdaa20b758e1ee9708ce94e618ff14726864b29b50f0f9a4db58136a286d2b654af569b09433a028901fe6bcdda68dcbfea71e2d1271934725503
This commit is contained in:
@ -928,8 +928,8 @@ class P2PDataStore(P2PInterface):
|
||||
|
||||
class P2PTxInvStore(P2PInterface):
|
||||
"""A P2PInterface which stores a count of how many times each txid has been announced."""
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
self.tx_invs_received = defaultdict(int)
|
||||
|
||||
def on_inv(self, message):
|
||||
|
Reference in New Issue
Block a user