mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-15 00:14:08 +02:00
refactor: Add and use RPCResultOptions
Initially only move skip_type_check there. In the future, more options can be added, without having to touch the constructors.
This commit is contained in:
@@ -1130,7 +1130,7 @@ static std::optional<UniValue::VType> ExpectedType(RPCResult::Type type)
|
||||
// NOLINTNEXTLINE(misc-no-recursion)
|
||||
UniValue RPCResult::MatchesType(const UniValue& result) const
|
||||
{
|
||||
if (m_skip_type_check) {
|
||||
if (m_opts.skip_type_check) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user