2025-06-29 automated rustfmt nightly
This commit is contained in:
parent
ad40e69a85
commit
4e869b7415
|
@ -1142,7 +1142,7 @@ impl InputWeightPrediction {
|
||||||
|
|
||||||
/// Computes the **signature weight** added to a transaction by an input with this weight prediction,
|
/// Computes the **signature weight** added to a transaction by an input with this weight prediction,
|
||||||
/// not counting the prevout (txid, index), sequence, potential witness flag bytes or the witness count varint.
|
/// not counting the prevout (txid, index), sequence, potential witness flag bytes or the witness count varint.
|
||||||
///
|
///
|
||||||
/// This function's internal arithmetic saturates at u32::MAX, so the return value of this
|
/// This function's internal arithmetic saturates at u32::MAX, so the return value of this
|
||||||
/// function may be inaccurate for extremely large witness predictions.
|
/// function may be inaccurate for extremely large witness predictions.
|
||||||
///
|
///
|
||||||
|
|
|
@ -313,7 +313,7 @@ mod tests {
|
||||||
let locktime = NumberOf512Seconds::from_512_second_intervals(intervals);
|
let locktime = NumberOf512Seconds::from_512_second_intervals(intervals);
|
||||||
assert_eq!(locktime.to_512_second_intervals(), intervals);
|
assert_eq!(locktime.to_512_second_intervals(), intervals);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn from_seconds_ceil_success() {
|
fn from_seconds_ceil_success() {
|
||||||
let actual = NumberOf512Seconds::from_seconds_ceil(100).unwrap();
|
let actual = NumberOf512Seconds::from_seconds_ceil(100).unwrap();
|
||||||
|
|
Loading…
Reference in New Issue