2019-08-29 14:46:54 -07:00
|
|
|
[workspace]
|
|
|
|
members = [
|
2020-06-12 10:22:08 -07:00
|
|
|
"tower-batch",
|
2019-08-29 14:46:54 -07:00
|
|
|
"zebra-chain",
|
|
|
|
"zebra-network",
|
2020-06-02 16:16:17 -07:00
|
|
|
"zebra-state",
|
2019-08-29 14:46:54 -07:00
|
|
|
"zebra-script",
|
|
|
|
"zebra-consensus",
|
|
|
|
"zebra-rpc",
|
|
|
|
"zebra-client",
|
2020-06-02 16:16:17 -07:00
|
|
|
"zebra-test-vectors",
|
2019-08-29 14:46:54 -07:00
|
|
|
"zebrad",
|
2019-10-10 15:43:54 -07:00
|
|
|
]
|
fix panic in seed subcommand (#401)
Co-authored-by: Jane Lusby <jane@zfnd.org>
Prior to this change, the seed subcommand would consistently encounter a panic in one of the background tasks, but would continue running after the panic. This is indicative of two bugs.
First, zebrad was not configured to treat panics as non recoverable and instead defaulted to the tokio defaults, which are to catch panics in tasks and return them via the join handle if available, or to print them if the join handle has been discarded. This is likely a poor fit for zebrad as an application, we do not need to maximize uptime or minimize the extent of an outage should one of our tasks / services start encountering panics. Ignoring a panic increases our risk of observing invalid state, causing all sorts of wild and bad bugs. To deal with this we've switched the default panic behavior from `unwind` to `abort`. This makes panics fail immediately and take down the entire application, regardless of where they occur, which is consistent with our treatment of misbehaving connections.
The second bug is the panic itself. This was triggered by a duplicate entry in the initial_peers set. To fix this we've switched the storage for the peers from a `Vec` to a `HashSet`, which has similar properties but guarantees uniqueness of its keys.
2020-05-27 17:40:12 -07:00
|
|
|
|
|
|
|
[profile.dev]
|
|
|
|
panic = "abort"
|
|
|
|
|
|
|
|
[profile.release]
|
2020-06-04 19:34:06 -07:00
|
|
|
panic = "abort"
|
|
|
|
|
|
|
|
[patch.crates-io]
|
|
|
|
abscissa_core = { git = "https://github.com/yaahc/abscissa.git", branch = "develop" }
|