Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
501std::string_view value{s.substr(pos+1)};503const CRPCConvertParam* named_param{rpc_convert::FromName(strMethod, name)};504if (!named_param) {505const CRPCConvertParam* positional_param = rpc_convert::FromPosition(strMethod, positional_args.size());506UniValue parsed_value;507if (positional_param && positional_param->format == ParamFormat::JSON && parsed_value.read(s)) {508positional_args.push_back(std::move(parsed_value));509continue;510} else if (positional_param && positional_param->format == ParamFormat::STRING) {511positional_args.push_back(s);512continue;513}514}516// Intentionally overwrite earlier named values with later ones as a517// convenience for scripts and command line users that want to merge518// options.519params.pushKV(name, ParseParam(named_param, value));520}522if (!positional_args.empty()) {523// Use pushKVEnd instead of pushKV to avoid overwriting an explicit524// "args" value with an implicit one. Let the RPC server handle the525// request as given.526params.pushKVEnd("args", std::move(positional_args));527}529return params;530}