@@ -61,12 +61,16 @@ pub trait ConfigurationSource {
61
61
panic ! ( "cardano_cli_path is not implemented." ) ;
62
62
}
63
63
64
- /// Path of the socket used by the Cardano CLI tool
65
- /// to communicate with the Cardano node
64
+ /// Path of the socket opened by the Cardano node
66
65
fn cardano_node_socket_path ( & self ) -> PathBuf {
67
66
panic ! ( "cardano_node_socket_path is not implemented." ) ;
68
67
}
69
68
69
+ /// Path of the socket opened by the DMQ node
70
+ fn dmq_node_socket_path ( & self ) -> Option < PathBuf > {
71
+ panic ! ( "dmq_node_socket_path is not implemented." ) ;
72
+ }
73
+
70
74
/// Cardano node version.
71
75
///
72
76
/// **NOTE**: This cannot be verified for now (see [this
@@ -390,11 +394,14 @@ pub struct ServeCommandConfiguration {
390
394
#[ example = "`cardano-cli`" ]
391
395
pub cardano_cli_path : PathBuf ,
392
396
393
- /// Path of the socket used by the Cardano CLI tool
394
- /// to communicate with the Cardano node
395
- #[ example = "`/tmp/cardano.sock`" ]
397
+ /// Path of the socket opened by the Cardano node
398
+ #[ example = "`/ipc/node.socket`" ]
396
399
pub cardano_node_socket_path : PathBuf ,
397
400
401
+ /// Path of the socket opened by the DMQ node
402
+ #[ example = "`/ipc/dmq.socket`" ]
403
+ pub dmq_node_socket_path : Option < PathBuf > ,
404
+
398
405
/// Cardano node version.
399
406
///
400
407
/// **NOTE**: This cannot be verified for now (see [this
@@ -628,6 +635,7 @@ impl ServeCommandConfiguration {
628
635
environment : ExecutionEnvironment :: Test ,
629
636
cardano_cli_path : PathBuf :: new ( ) ,
630
637
cardano_node_socket_path : PathBuf :: new ( ) ,
638
+ dmq_node_socket_path : None ,
631
639
cardano_node_version : "0.0.1" . to_string ( ) ,
632
640
network_magic : Some ( 42 ) ,
633
641
network : "devnet" . to_string ( ) ,
@@ -707,6 +715,10 @@ impl ConfigurationSource for ServeCommandConfiguration {
707
715
self . cardano_node_socket_path . clone ( )
708
716
}
709
717
718
+ fn dmq_node_socket_path ( & self ) -> Option < PathBuf > {
719
+ self . dmq_node_socket_path . clone ( )
720
+ }
721
+
710
722
fn cardano_node_version ( & self ) -> String {
711
723
self . cardano_node_version . clone ( )
712
724
}
0 commit comments