HomePhabricator

test: Add more tests for orphan tx handling

Description

test: Add more tests for orphan tx handling

Summary:

This PR adds test coverage for the following cases:
 - erase orphan transactions when a peer is disconnected
 - erase an orphan transaction when it is included in a new tip block
 - erase an orphan transaction when it is conflicted with other transactions included in a new tip block

Backport of core#19393.

Test Plan:

./test/functional/test_runner.py p2p_invalid_tx

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Jun 27 2020, 10:13
FabienCommitted on Jul 19 2024, 08:05
FabienPushed on Jul 19 2024, 08:05
Reviewer
Restricted Project
Differential Revision
D16502: test: Add more tests for orphan tx handling
Parents
rABCa53da9376411: refactor: Use type-safe time in txorphanage
Branches
Unknown
Tags
Unknown

Event Timeline