mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
rpc: factor out RpcInterruptionPoint from dumptxoutset
This commit is contained in:
@@ -2329,9 +2329,7 @@ UniValue dumptxoutset(const JSONRPCRequest& request)
|
||||
unsigned int iter{0};
|
||||
|
||||
while (pcursor->Valid()) {
|
||||
if (iter % 5000 == 0 && !IsRPCRunning()) {
|
||||
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Shutting down");
|
||||
}
|
||||
if (iter % 5000 == 0) RpcInterruptionPoint();
|
||||
++iter;
|
||||
if (pcursor->GetKey(key) && pcursor->GetValue(coin)) {
|
||||
afile << key;
|
||||
|
||||
Reference in New Issue
Block a user