We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68700ef commit 62e01e5Copy full SHA for 62e01e5
integration_test/tests/util.rs
@@ -66,8 +66,11 @@ fn util__get_descriptor_info() {
66
#[cfg(not(feature = "v20_and_below"))]
67
#[test]
68
fn util__get_index_info() {
69
- let node = Node::with_wallet(Wallet::Default, &[]);
70
- let _: GetIndexInfo = node.client.get_index_info().expect("getindexinfo");
+ let node = Node::with_wallet(Wallet::Default, &["-txindex"]);
+ let index_info: GetIndexInfo = node.client.get_index_info().expect("getindexinfo");
71
+
72
+ let txindex_info = index_info.0.get("txindex").unwrap();
73
+ assert!(txindex_info.best_block_height < u32::MAX, "best_block_height should be a valid block height");
74
}
75
76
0 commit comments