We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a653aac commit 2a57108Copy full SHA for 2a57108
src/rpc/misc.cpp
@@ -387,7 +387,8 @@ static RPCHelpMan setmocktime()
387
}
388
SetMockTime(time);
389
if (request.context.Has<NodeContext>()) {
390
- for (const auto& chain_client : request.context.Get<NodeContext>().chain_clients) {
+ const auto& chain_clients = request.context.Get<NodeContext>().chain_clients;
391
+ for (const auto& chain_client : chain_clients) {
392
chain_client->setMockTime(time);
393
394
0 commit comments