Skip to content

Commit 2f24a03

Browse files
Merge pull request #4021 from OffchainLabs/stop-fetcher
stop block metdata fetcher when node stops (#4018)
2 parents 52e8959 + 24bd346 commit 2f24a03

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

arbnode/node.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ import (
4444
"github.com/offchainlabs/nitro/solgen/go/precompilesgen"
4545
"github.com/offchainlabs/nitro/staker"
4646
"github.com/offchainlabs/nitro/staker/bold"
47-
"github.com/offchainlabs/nitro/staker/legacy"
48-
"github.com/offchainlabs/nitro/staker/multi_protocol"
47+
legacystaker "github.com/offchainlabs/nitro/staker/legacy"
48+
multiprotocolstaker "github.com/offchainlabs/nitro/staker/multi_protocol"
4949
"github.com/offchainlabs/nitro/staker/validatorwallet"
5050
"github.com/offchainlabs/nitro/util/containers"
5151
"github.com/offchainlabs/nitro/util/contracts"
@@ -1513,6 +1513,9 @@ func (n *Node) StopAndWait() {
15131513
if n.configFetcher != nil && n.configFetcher.Started() {
15141514
n.configFetcher.StopAndWait()
15151515
}
1516+
if n.blockMetadataFetcher != nil {
1517+
n.blockMetadataFetcher.StopAndWait()
1518+
}
15161519
if n.SeqCoordinator != nil && n.SeqCoordinator.Started() {
15171520
// Releases the chosen sequencer lockout,
15181521
// and stops the background thread but not the redis client.

0 commit comments

Comments
 (0)