File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1264,6 +1264,7 @@ pub trait RpcApi: Sized {
1264
1264
self . call ( "scantxoutset" , & [ "start" . into ( ) , into_json ( descriptors) ?] )
1265
1265
}
1266
1266
1267
+ /// Returns information about the active ZeroMQ notifications
1267
1268
fn get_zmq_notifications ( & self ) -> Result < Vec < json:: GetZmqNotificationsResult > > {
1268
1269
self . call ( "getzmqnotifications" , & [ ] )
1269
1270
}
Original file line number Diff line number Diff line change @@ -226,6 +226,7 @@ fn main() {
226
226
test_add_ban ( & cl) ;
227
227
test_set_network_active ( & cl) ;
228
228
test_get_index_info ( & cl) ;
229
+ test_get_zmq_notifications ( & cl) ;
229
230
test_stop ( cl) ;
230
231
}
231
232
@@ -1422,6 +1423,13 @@ fn test_get_index_info(cl: &Client) {
1422
1423
}
1423
1424
}
1424
1425
1426
+ fn test_get_zmq_notifications ( cl : & Client ) {
1427
+ let zmq_info = cl. get_zmq_notifications ( ) . unwrap ( ) ;
1428
+
1429
+ // no zmq subscribers are configured
1430
+ assert ! ( zmq_info. is_empty( ) ) ;
1431
+ }
1432
+
1425
1433
fn test_stop ( cl : Client ) {
1426
1434
println ! ( "Stopping: '{}'" , cl. stop( ) . unwrap( ) ) ;
1427
1435
}
You can’t perform that action at this time.
0 commit comments