Page MenuHomePhabricator

[avalanche] introduce EnsureAvalanche helper for RPC calls
ClosedPublic

Authored by PiRK on Thu, May 30, 07:33.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCf60e3bb66851: [avalanche] introduce EnsureAvalanche helper for RPC calls
Summary

This diff is split out of D16224.

This factors the if (!g_avalanche) { throw... code out of the RPC code.
The NodeContext argument to the function is currently unused, but it will become used in D16224, so adding it now will save us from having to modify all the callsites again later.

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable