mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-22 03:51:08 +03:00
53bce41981
Unlike panic it doesn't call destructors (Drop) so all open transactions are not closed. It's fine when LMDB file is open by the current process only, but if another process keeps the same file open such transactions will be considered alive until the second process exits. We usually have one or more long-lived process (like `wallet listen`) which opens the same wallet db as short-lived wallet commands. When a command fails it calls process::exit and as result leaks a transaction. This pr replaces such calls with an exit code return, which allows to call all destructors before calling process::exit. Fixes #1822 |
||
---|---|---|
.. | ||
client.rs | ||
config.rs | ||
mod.rs | ||
server.rs | ||
wallet.rs |