Commit 1670a45
committed
fix: eliminate panic/unwrap crash risks in apos consensus engine
Replace 1 panic!() and 30+ unwrap() calls in apos.rs with proper
Result error propagation and graceful error handling to prevent node
crashes from lock poisoning, cache misses, or missing header fields.
Also replace println!() with tracing::info!() in chainspec/spec.rs
and remove unused imports in network-api/block.rs.1 parent d8638e9 commit 1670a45
File tree
5 files changed
+168
-63
lines changed- crates
- chainspec
- src
- n42/clique/src
- net/network-api/src
5 files changed
+168
-63
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 167 | + | |
171 | 168 | | |
172 | 169 | | |
173 | 170 | | |
| |||
0 commit comments