diff options
author | MacroFake <falke.marco@gmail.com> | 2022-08-19 11:38:56 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-08-20 09:32:53 +0200 |
commit | faad673716cfbad1e715f1bdf8ac00938a055aea (patch) | |
tree | fe1134e201b198a4ae2ee1483e0ac13b6a4ccbfa /src/rpc | |
parent | c73c8d53fe27956faacb3e8ca0e94adf071de6ec (diff) |
Fix issues when calling std::move(const&)
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/blockchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 8f116a05ef..f57915e805 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -2129,7 +2129,7 @@ static RPCHelpMan scantxoutset() for (const UniValue& scanobject : request.params[1].get_array().getValues()) { FlatSigningProvider provider; auto scripts = EvalDescriptorStringOrObject(scanobject, provider); - for (const auto& script : scripts) { + for (CScript& script : scripts) { std::string inferred = InferDescriptor(script, provider)->ToString(); needles.emplace(script); descriptors.emplace(std::move(script), std::move(inferred)); |