Skip to content

Commit fa62a01

Browse files
author
MarcoFalke
committed
remove dead flush()
It is confusing that the chain client flush happens between StopHTTPServer and StopMapPort. Also, it is unused code. Seems best to just add it back properly when it is needed again.
1 parent fa5f3e6 commit fa62a01

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

src/init.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,6 @@ void Shutdown(NodeContext& node)
298298
StopREST();
299299
StopRPC();
300300
StopHTTPServer();
301-
for (const auto& client : node.chain_clients) {
302-
client->flush();
303-
}
304301
StopMapPort();
305302

306303
// Because these depend on each-other, we make sure that neither can be

src/interfaces/chain.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,6 @@ class ChainClient
407407
//! Start client execution and provide a scheduler.
408408
virtual void start(CScheduler& scheduler) = 0;
409409

410-
//! Save state to disk.
411-
virtual void flush() = 0;
412-
413410
//! Shut down client.
414411
virtual void stop() = 0;
415412

src/wallet/interfaces.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,6 @@ class WalletLoaderImpl : public WalletLoader
578578
m_context.scheduler = &scheduler;
579579
return StartWallets(m_context);
580580
}
581-
void flush() override {}
582581
void stop() override { return StopWallets(m_context); }
583582
void setMockTime(int64_t time) override { return SetMockTime(time); }
584583
void schedulerMockForward(std::chrono::seconds delta) override { Assert(m_context.scheduler)->MockForward(delta); }

0 commit comments

Comments
 (0)