Page MenuHomePhabricator

[backport#15638] [build] Move rpc utility methods to rpc/util
ClosedPublic

Authored by majcosta on May 6 2020, 15:01.

Details

Summary

Moves the following utility methods to rpc/util and moves that unit to
libbitcoin_common so they can be accessed by all libraries.

  • RPCTypeCheck
  • RPCTypeCheckArgument
  • RPCTypeCheckObj
  • AmountFromValue
  • ParseHashVParseHashO
  • ParseHexV
  • ParseHexO
  • HelpExampleCli
  • HelpExampleRpc

https://github.com/bitcoin/bitcoin/pull/15638/commits/1acc61f8746bc6efb905e121a9f607c4f5982b35


Depends on D5967

This is a partial backport of Core PR15638

Test Plan
ninja check check-functional

Diff Detail

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

Event Timeline

majcosta requested review of this revision.May 6 2020, 15:01

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

deadalnix requested changes to this revision.May 6 2020, 15:30
deadalnix added a subscriber: deadalnix.
deadalnix added inline comments.
src/Makefile.am
494 ↗(On Diff #19749)

Please make sure you get the build change right, this isn't the first time you get this wrong. That file wasn't created in this patch, so very clearly it was somewhere else and was moved here.

This revision now requires changes to proceed.May 6 2020, 15:30

removed util.cpp from libbitcoin_util_a section

deadalnix requested changes to this revision.May 6 2020, 17:26

cmake build.

This revision now requires changes to proceed.May 6 2020, 17:26
This revision is now accepted and ready to land.May 6 2020, 18:47