Skip to content

Commit fa45865

Browse files
author
MarcoFalke
committed
refactor: Use named arguments to get path arg in loadtxoutset
1 parent bd5d168 commit fa45865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/blockchain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2814,7 +2814,7 @@ static RPCHelpMan loadtxoutset()
28142814
{
28152815
NodeContext& node = EnsureAnyNodeContext(request.context);
28162816
ChainstateManager& chainman = EnsureChainman(node);
2817-
fs::path path{AbsPathForConfigVal(EnsureArgsman(node), fs::u8path(request.params[0].get_str()))};
2817+
const fs::path path{AbsPathForConfigVal(EnsureArgsman(node), fs::u8path(self.Arg<std::string>("path")))};
28182818

28192819
FILE* file{fsbridge::fopen(path, "rb")};
28202820
AutoFile afile{file};

0 commit comments

Comments
 (0)