bitcoin/src/rpc
MarcoFalke 52b9797119
Merge #16670: util: Add Join helper to join a list of strings
faebf62714 rpc: Use Join helper in rpc/util (MarcoFalke)
fa8cd6f9c1 util: Add Join helper to join a list of strings (MarcoFalke)

Pull request description:

  We have a lot of enumerations in the code and sometimes those enumerations need to be mentioned in the RPC or command line documentation. Previously, each caller would have a couple of lines inline to join the strings or the joined string is hardcoded in the documentation. A helper to join strings would make code such as https://github.com/bitcoin/bitcoin/pull/16629#discussion_r315852446 less verbose and easier to read.

  Also, warnings commonly accumulate in complex RPCs, since a warning doesn't lead to an early return. A helper to join those warnings would make code such as https://github.com/bitcoin/bitcoin/pull/16394/files#r309324997 less verbose and easier to read.

ACKs for top commit:
  practicalswift:
    ACK faebf62714

Tree-SHA512: 80f2db86a05c63b686f510585c1c631250271a8958fd71fafaac91559ffd2ec25d609bf7d53412ba27f87eff5893ac9dd9c2f296fc0c73581556e1d6a734a36f
2019-08-22 08:41:00 -04:00
..
blockchain.cpp RPC: add weight to mempool entry output 2019-08-19 11:34:10 +08:00
blockchain.h rpc: Add lock annotations to block{,header}ToJSON 2019-05-02 14:33:26 -04:00
client.cpp [RPC] add new utxoupdatepsbt arguments to the CRPCCommand and CPRCConvertParam tables 2019-07-04 08:02:23 -04:00
client.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
mining.cpp Merge #16060: Bury bip9 deployments 2019-08-15 16:02:10 -04:00
misc.cpp Give more errors for specific failure conditions 2019-08-16 19:34:01 -04:00
net.cpp Replace the use of fWhitelisted by permission checks 2019-08-11 11:33:28 +09:00
protocol.h rpc: migrate JSONRPCRequest functionality into request.cpp 2019-07-05 11:22:02 +09:00
rawtransaction.cpp refactor: pcoinsTip -> CChainState::CoinsTip() 2019-08-06 13:13:06 -04:00
rawtransaction_util.cpp [rpc] walletcreatefundedpsbt: use wallet default RBF 2019-07-27 19:24:56 +02:00
rawtransaction_util.h [rpc] walletcreatefundedpsbt: use wallet default RBF 2019-07-27 19:24:56 +02:00
register.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
request.cpp rpc: migrate JSONRPCRequest functionality into request.cpp 2019-07-05 11:22:02 +09:00
request.h rpc: migrate JSONRPCRequest functionality into request.cpp 2019-07-05 11:22:02 +09:00
server.cpp Merge #16240: JSONRPCRequest-aware RPCHelpMan 2019-07-09 19:31:52 -04:00
server.h rpc: migrate JSONRPCRequest functionality into request.cpp 2019-07-05 11:22:02 +09:00
util.cpp rpc: Use Join helper in rpc/util 2019-08-20 16:52:33 -04:00
util.h Merge #16227: Refactor CWallet's inheritance chain 2019-07-11 22:42:39 +02:00