Skip to content

Commit

Permalink
Ledger: Close the ledger at node shutdown (#5668)
Browse files Browse the repository at this point in the history
  • Loading branch information
algonautshant authored Aug 16, 2023
1 parent 3425e85 commit 8f840c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ func (node *AlgorandFullNode) Stop() {
node.lowPriorityCryptoVerificationPool.Shutdown()
node.cryptoPool.Shutdown()
node.cancelCtx()
node.ledger.Close()
}

// note: unlike the other two functions, this accepts a whole filename
Expand Down

0 comments on commit 8f840c7

Please sign in to comment.