Return optional error from ApplyArgsManOptions

Also pass in a (for now unused) reference to the params.

Both changes are needed for the next commit.
This commit is contained in:
MacroFake
2022-07-20 15:48:52 +02:00
parent 816ca01650
commit fa468bdfb6
5 changed files with 21 additions and 4 deletions

View File

@@ -160,7 +160,8 @@ CTxMemPool::Options MemPoolOptionsForTest(const NodeContext& node)
// chainparams.DefaultConsistencyChecks for tests
.check_ratio = 1,
};
ApplyArgsManOptions(*node.args, mempool_opts);
const auto err{ApplyArgsManOptions(*node.args, ::Params(), mempool_opts)};
Assert(!err);
return mempool_opts;
}