projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switch all feerate u64's to u32's.
[rust-lightning]
/
fuzz
/
src
/
full_stack.rs
diff --git
a/fuzz/src/full_stack.rs
b/fuzz/src/full_stack.rs
index 8cef7fb5458f0f0105cd655e78f2b6e0f4621d4f..726700ad2ee0d2efbda750d4ced1add4f433cd9e 100644
(file)
--- a/
fuzz/src/full_stack.rs
+++ b/
fuzz/src/full_stack.rs
@@
-94,10
+94,10
@@
struct FuzzEstimator {
input: Arc<InputData>,
}
impl FeeEstimator for FuzzEstimator {
input: Arc<InputData>,
}
impl FeeEstimator for FuzzEstimator {
- fn get_est_sat_per_1000_weight(&self, _: ConfirmationTarget) -> u
64
{
+ fn get_est_sat_per_1000_weight(&self, _: ConfirmationTarget) -> u
32
{
//TODO: We should actually be testing at least much more than 64k...
match self.input.get_slice(2) {
//TODO: We should actually be testing at least much more than 64k...
match self.input.get_slice(2) {
- Some(slice) => cmp::max(slice_to_be16(slice) as u
64
, 253),
+ Some(slice) => cmp::max(slice_to_be16(slice) as u
32
, 253),
None => 253
}
}
None => 253
}
}