|
4 | 4 |
|
5 | 5 | use bitcoin_units::amount::Denomination; |
6 | 6 | use bitcoin_units::locktime::{absolute, relative}; |
7 | | -use bitcoin_units::{Amount, BlockHeight, BlockInterval, SignedAmount, Weight}; |
| 7 | +use bitcoin_units::{Amount, BlockHeight, BlockHeightInterval, SignedAmount, Weight}; |
8 | 8 |
|
9 | 9 | macro_rules! check { |
10 | 10 | ($($test_name:ident, $ty:path, $val:path, $str:literal);* $(;)?) => { |
@@ -34,8 +34,8 @@ check! { |
34 | 34 | block_height_min, BlockHeight, BlockHeight::MIN, "0"; |
35 | 35 | block_height_max, BlockHeight, BlockHeight::MAX, "4294967295"; |
36 | 36 |
|
37 | | - block_interval_min, BlockInterval, BlockInterval::MIN, "0"; |
38 | | - block_interval_max, BlockInterval, BlockInterval::MAX, "4294967295"; |
| 37 | + block_interval_min, BlockHeightInterval, BlockHeightInterval::MIN, "0"; |
| 38 | + block_interval_max, BlockHeightInterval, BlockHeightInterval::MAX, "4294967295"; |
39 | 39 |
|
40 | 40 | lock_by_height_absolute_min, absolute::Height, absolute::Height::MIN, "0"; |
41 | 41 | lock_by_height_absolute_max, absolute::Height, absolute::Height::MAX, "499999999"; |
|
0 commit comments