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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.