Page MenuHomePhabricator

scripted-diff: Rename InitInterfaces to NodeContext
ClosedPublic

Authored by deadalnix on May 17 2020, 16:07.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

deadalnix created this revision.May 17 2020, 16:07
Herald added a reviewer: Restricted Project. · View Herald TranscriptMay 17 2020, 16:07
deadalnix requested review of this revision.May 17 2020, 16:07
teamcity edited the summary of this revision. (Show Details)May 17 2020, 16:07

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

majcosta accepted this revision.May 17 2020, 16:36
This revision is now accepted and ready to land.May 17 2020, 16:36