Skip to content

Commit 4bc6300

Browse files
committed
Added version check to test_get_index_info
1 parent 6812a11 commit 4bc6300

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

integration_test/src/main.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,10 +1264,12 @@ fn test_getblocktemplate(cl: &Client) {
12641264
}
12651265

12661266
fn test_get_index_info(cl: &Client) {
1267-
let gii = cl.get_index_info().unwrap();
1268-
assert!(gii.txindex.is_some());
1269-
assert!(gii.coinstatsindex.is_none());
1270-
assert!(gii.basic_block_filter_index.is_some());
1267+
if version() >= 210000 {
1268+
let gii = cl.get_index_info().unwrap();
1269+
assert!(gii.txindex.is_some());
1270+
assert!(gii.coinstatsindex.is_none());
1271+
assert!(gii.basic_block_filter_index.is_some());
1272+
}
12711273
}
12721274

12731275
fn test_stop(cl: Client) {

0 commit comments

Comments
 (0)