@@ -27,8 +27,8 @@ const DEFAULT_BOOTSTRAPPED_SUBSCRIBE_TOPIC: (&str, &str) = (
2727 "bootstrapped-subscribe-topic" ,
2828 "cardano.sequence.bootstrapped" ,
2929) ;
30- const DEFAULT_BLOCKS_SUBSCRIBE_TOPIC : ( & str , & str ) =
31- ( "blocks -subscribe-topic" , "cardano.block.proposed" ) ;
30+ const DEFAULT_BLOCK_SUBSCRIBE_TOPIC : ( & str , & str ) =
31+ ( "block -subscribe-topic" , "cardano.block.proposed" ) ;
3232const DEFAULT_PROTOCOL_PARAMETERS_SUBSCRIBE_TOPIC : ( & str , & str ) = (
3333 "protocol-parameters-subscribe-topic" ,
3434 "cardano.protocol.parameters" ,
@@ -55,7 +55,7 @@ impl BlockVrfValidator {
5555 history : Arc < Mutex < StateHistory < State > > > ,
5656 mut vrf_validation_publisher : VrfValidationPublisher ,
5757 mut bootstrapped_subscription : Box < dyn Subscription < Message > > ,
58- mut blocks_subscription : Box < dyn Subscription < Message > > ,
58+ mut block_subscription : Box < dyn Subscription < Message > > ,
5959 mut protocol_parameters_subscription : Box < dyn Subscription < Message > > ,
6060 mut epoch_activity_subscription : Box < dyn Subscription < Message > > ,
6161 mut spo_state_subscription : Box < dyn Subscription < Message > > ,
@@ -77,7 +77,7 @@ impl BlockVrfValidator {
7777 let mut state = history. lock ( ) . await . get_or_init_with ( State :: new) ;
7878 let mut current_block: Option < BlockInfo > = None ;
7979
80- let ( _, message) = blocks_subscription . read ( ) . await ?;
80+ let ( _, message) = block_subscription . read ( ) . await ?;
8181 match message. as_ref ( ) {
8282 Message :: Cardano ( ( block_info, CardanoMessage :: BlockAvailable ( block_msg) ) ) => {
8383 // handle rollback here
@@ -190,10 +190,10 @@ impl BlockVrfValidator {
190190 . unwrap_or ( DEFAULT_PROTOCOL_PARAMETERS_SUBSCRIBE_TOPIC . 1 . to_string ( ) ) ;
191191 info ! ( "Creating subscriber for protocol parameters on '{protocol_parameters_subscribe_topic}'" ) ;
192192
193- let blocks_subscribe_topic = config
194- . get_string ( DEFAULT_BLOCKS_SUBSCRIBE_TOPIC . 0 )
195- . unwrap_or ( DEFAULT_BLOCKS_SUBSCRIBE_TOPIC . 1 . to_string ( ) ) ;
196- info ! ( "Creating blocks subscription on '{blocks_subscribe_topic }'" ) ;
193+ let block_subscribe_topic = config
194+ . get_string ( DEFAULT_BLOCK_SUBSCRIBE_TOPIC . 0 )
195+ . unwrap_or ( DEFAULT_BLOCK_SUBSCRIBE_TOPIC . 1 . to_string ( ) ) ;
196+ info ! ( "Creating block subscription on '{block_subscribe_topic }'" ) ;
197197
198198 let epoch_activity_subscribe_topic = config
199199 . get_string ( DEFAULT_EPOCH_ACTIVITY_SUBSCRIBE_TOPIC . 0 )
@@ -218,7 +218,7 @@ impl BlockVrfValidator {
218218 let bootstrapped_subscription = context. subscribe ( & bootstrapped_subscribe_topic) . await ?;
219219 let protocol_parameters_subscription =
220220 context. subscribe ( & protocol_parameters_subscribe_topic) . await ?;
221- let blocks_subscription = context. subscribe ( & blocks_subscribe_topic ) . await ?;
221+ let block_subscription = context. subscribe ( & block_subscribe_topic ) . await ?;
222222 let epoch_activity_subscription =
223223 context. subscribe ( & epoch_activity_subscribe_topic) . await ?;
224224 let spo_state_subscription = context. subscribe ( & spo_state_subscribe_topic) . await ?;
@@ -236,7 +236,7 @@ impl BlockVrfValidator {
236236 history,
237237 vrf_validation_publisher,
238238 bootstrapped_subscription,
239- blocks_subscription ,
239+ block_subscription ,
240240 protocol_parameters_subscription,
241241 epoch_activity_subscription,
242242 spo_state_subscription,
0 commit comments