multi: Allow interrupt of server startup.

This commit does two things. It starts up the server in a way that
it can be interrupted and shutdown gracefully.
Moreover it makes sure that subsystems clean themselves up when
they fail to start. This makes sure that depending subsytems can
shutdown gracefully as well and the shutdown process is not stuck.
This commit is contained in:
ziggie committed 2024-07-31 13:12:19 +02:00
1 parent 08b68bbaf7
commit 653e2f3667
3 files changed
+68 -47

No files matched your search

-1
View File
@@ -701,7 +701,6 @@ func (t *TxPublisher) Stop() error {
log.Debug("TxPublisher stopped")
return nil
}
// monitor is the main loop driven by new blocks. Whevenr a new block arrives,