Repository navigation
Misc fuzzing tweaks - #1939
Misc fuzzing tweaks#1939
Conversation
4dd6e17 to
64c9916
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1939 +/- ##
==========================================
- Coverage 90.72% 90.71% -0.02%
==========================================
Files 97 97
Lines 50579 50579
Branches 50579 50579
==========================================
- Hits 45888 45882 -6
- Misses 4691 4697 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
41c2743 to
56f54c9
Compare
|
Will merge this pre-0.0.114, but gonna let it sit for now. |
hashbrown by default uses ahash, which may be a bit faster, but more importantly, if we upgrade to hashbrown 0.13/ahash 0.8 we can make it use a constant randomization factor, making fuzzers happier.
In newer versions of `hashbrown` this code would be broken. While we aren't updating `hashbrown` any time soon (as it requires an MSRV bump), it is useful to swap for a newer `hashbrown` when fuzzing, which this makes easier.
This fixes a crash in the `full_stack_target` fuzz test (found by Chaincode's generous fuzzing infrastructure!) but ultimately is a better error code - a peer disconnecting before we can fund a channel isn't a "misuse error" its an unavailable channel.
f9bafa6
56f54c9 to
f9bafa6
Compare
|
Oops, this ended up needing rebase. In any case, I also fixed a full_stack_target crash in a new, last commit. Will go ahead and land this so it doesn't get stale again instead. |
| let peer_state_mutex_opt = per_peer_state.get(counterparty_node_id); | ||
| if let None = peer_state_mutex_opt { | ||
| return Err(APIError::APIMisuseError { err: format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id) }) | ||
| return Err(APIError::ChannelUnavailable { err: format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id) }) |
There was a problem hiding this comment.
On mobile so I could be wrong but there may be a few more occurrences of this
There was a problem hiding this comment.
Yea, there are, I'll work with @ViktorTigerstrom to address those as a part of #1945, for now let's just land this to fix the fuzzers on git HEAD.
Nothing big, just some cleanup.