mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-04 10:07:27 -05:00
cfbc8a623b
As per https://github.com/bitcoin/bitcoin/pull/26506#pullrequestreview-1211984059, this function is no longer necessary and we can use UniValue::read() directly. To avoid code duplication, we keep the function to throw on invalid input data but rename it to Parse() and remove it from the header.
20 lines
741 B
C++
20 lines
741 B
C++
// Copyright (c) 2010 Satoshi Nakamoto
|
|
// Copyright (c) 2009-2018 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_RPC_CLIENT_H
|
|
#define BITCOIN_RPC_CLIENT_H
|
|
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
#include <univalue.h>
|
|
|
|
/** Convert positional arguments to command-specific RPC representation */
|
|
UniValue RPCConvertValues(const std::string& strMethod, const std::vector<std::string>& strParams);
|
|
|
|
/** Convert named arguments to command-specific RPC representation */
|
|
UniValue RPCConvertNamedValues(const std::string& strMethod, const std::vector<std::string>& strParams);
|
|
|
|
#endif // BITCOIN_RPC_CLIENT_H
|