Page MenuHomePhabricator

[tests] Make NodeConnCB a subclass of NodeConn
ClosedPublic

Authored by Fabien on Jan 21 2019, 10:41.

Details

Summary

This makes NodeConnCB a subclass of NodeConn, and
removes the need for the client code to know
anything about the implementation details of NodeConnCB.

NodeConn can now be swapped out for any other implementation
of a low-level connection without changing client code.

Partial backport of core PR11712 (commit dad596f)

Depends on D2359

Test Plan
./test/functional/test_runner.py --extended

Diff Detail

Repository
rABC Bitcoin ABC
Branch
PR11712_part4
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4605
Build 7273: Bitcoin ABC Buildbot (legacy)
Build 7272: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Jan 21 2019, 17:20
This revision was automatically updated to reflect the committed changes.