diff options
author | Shant Karakashian <55754073+algonautshant@users.noreply.github.com> | 2023-08-16 01:13:47 -0400 |
---|---|---|
committer | John Lee <john.lee@algorand.com> | 2023-08-25 13:48:34 -0400 |
commit | 07d1ddc351c85454eb67d4b79a11a7e82facbac1 (patch) | |
tree | b055cdfc39ee88e90dcf1338fb7563d33faa9993 | |
parent | f239f8016fafafbfd85abe2c0b28a2c7344c9126 (diff) |
Ledger: Close the ledger at node shutdown (#5668)onetechnical/test-ledger-close
-rw-r--r-- | node/node.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/node/node.go b/node/node.go index b3b508e91..1df28a035 100644 --- a/node/node.go +++ b/node/node.go @@ -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 |