HomePhabricator

[electrum] regtest: refactor poll_for_answer

Description

[electrum] regtest: refactor poll_for_answer

Summary:
Make the function easier to understand and remove a few indentation levels by removing the unnecessary retry flag and reorganizing the code a bit.
There is no change in behavior.

Depends on D14838

Test Plan: pytest electrumabc/tests/regtest

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
PiRKAuthored on Nov 22 2023, 16:03
PiRKPushed on Nov 23 2023, 13:43
Reviewer
Restricted Project
Differential Revision
D14839: [electrum] regtest: refactor poll_for_answer
Parents
rABC9e9fb4a51943: Update the activation tests to work with overloaded activation functions
Branches
Unknown
Tags
Unknown