HomePhabricator

scripted-diff: Rename InitInterfaces to NodeContext

Description

scripted-diff: Rename InitInterfaces to NodeContext

Summary:
-BEGIN VERIFY SCRIPT-
s() { git grep -l "$1" src | xargs sed -i "s/$1/$2/g"; }

s 'struct InitInterfaces' 'struct NodeContext'
s 'InitInterfaces interfaces' 'NodeContext node'
s 'InitInterfaces& interfaces' 'NodeContext\& node'
s 'InitInterfaces m_interfaces' 'NodeContext m_context'
s 'InitInterfaces\* g_rpc_interfaces' 'NodeContext* g_rpc_node'
s 'g_rpc_interfaces = &interfaces' 'g_rpc_node = \&node'
s 'g_rpc_interfaces' 'g_rpc_node'
s 'm_interfaces' 'm_context'
s 'interfaces\.chain' 'node.chain'
s '\(AppInitMain\|Shutdown\|Construct\)(interfaces)' '\1(node)'
s 'init interfaces' 'chain clients'
-END VERIFY SCRIPT-

This is a parial backport of Core PR16839 : https://github.com/bitcoin/bitcoin/pull/16839/commits/301bd41a2e6765b185bd55f4c541f9e27aeea29d

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

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

Details

Provenance
Russell Yanofsky <russ@yanofsky.org>Authored on Sep 17 2019, 21:04
deadalnixCommitted on May 17 2020, 17:00
abc-botPushed on May 17 2020, 17:05
Reviewer
Restricted Project
Differential Revision
D6108: scripted-diff: Rename InitInterfaces to NodeContext
Parents
rSTAGING0719259a2eb2: [build] enforce exhaustive switch statements in BUILD_WERROR config
Branches
Unknown
Tags
Unknown