Skip to content

Commit 2a57108

Browse files
committed
Avoid Appveyor compilation failure
1 parent a653aac commit 2a57108

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rpc/misc.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ static RPCHelpMan setmocktime()
387387
}
388388
SetMockTime(time);
389389
if (request.context.Has<NodeContext>()) {
390-
for (const auto& chain_client : request.context.Get<NodeContext>().chain_clients) {
390+
const auto& chain_clients = request.context.Get<NodeContext>().chain_clients;
391+
for (const auto& chain_client : chain_clients) {
391392
chain_client->setMockTime(time);
392393
}
393394
}

0 commit comments

Comments
 (0)