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:
MarcoFalke
2026-03-11 09:26:31 +01:00
parent b97abdcdf1
commit fa8250e961
4 changed files with 17 additions and 12 deletions

View File

@@ -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;
}