HomePhabricator

test: Add mempool_updatefromblock.py

Description

test: Add mempool_updatefromblock.py

Summary:
This PR adds a new test for mempool update of transaction descendants/ancestors information (count, size) when transactions have been re-added from a disconnected block to the mempool.

This is a backport of Core PR18485

Note: on line 110, 'vsize' had to be replaced by 'size' to make the test work for ABC

Test Plan: test/functional/test_runner.py mempool_upd*

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Jan 25 2021, 17:15
PiRKCommitted on Jan 25 2021, 17:15
abc-botPushed on Jan 25 2021, 17:27
Reviewer
Restricted Project
Differential Revision
D9042: test: Add mempool_updatefromblock.py
Parents
rABC7330ea64ea09: [net processing] Move MaybePunishPeerForTx to PeerManager
Branches
Unknown
Tags
Unknown