HomePhabricator

Added RPCCommand base classes in preparation for RPC migration

Description

Added RPCCommand base classes in preparation for RPC migration

Summary:
This is the scaffolding for soon-to-be RPC refactors. RPCCommand enables easy passing of dependencies only to the RPC commands that use them.
New RPCCommands can be written with appropriate dependency injection and old commands can be slowly migrated to use non-global dependencies.

Depends on D2500, D2507

Test Plan: ninja check

Reviewers: deadalnix, #bitcoin_abc, Fabien

Reviewed By: deadalnix, #bitcoin_abc, Fabien

Subscribers: Fabien, teamcity

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

Details

Provenance
jasonbcoxAuthored on Feb 7 2019, 17:45
markblundebergPushed on Feb 11 2019, 23:28
Reviewer
Restricted Project
Differential Revision
D1894: Added RPCCommand base classes in preparation for RPC migration
Parents
rSTAGING0cd9f5e87c81: Use ToHex() in feature_nulldummy.py
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/7313, tag: phabricator/base/7307, tag: phabricator/base/7304