|
3 | 3 |
|
4 | 4 | use acropolis_common::{ |
5 | 5 | caryatid::SubscriptionExt, |
6 | | - messages::{CardanoMessage, Message, StateQuery, StateQueryResponse}, |
| 6 | + messages::{CardanoMessage, Message, StateQuery, StateQueryResponse, StateTransitionMessage}, |
7 | 7 | queries::accounts::{DrepDelegators, PoolDelegators, DEFAULT_ACCOUNTS_QUERY_TOPIC}, |
8 | 8 | state_history::{StateHistory, StateHistoryStore}, |
9 | 9 | BlockInfo, BlockStatus, |
@@ -136,7 +136,10 @@ impl AccountsState { |
136 | 136 | current_block = Some(block_info.clone()); |
137 | 137 | block_info.new_epoch && block_info.epoch > 0 |
138 | 138 | } |
139 | | - Message::Cardano((_, CardanoMessage::Rollback(_))) => { |
| 139 | + Message::Cardano(( |
| 140 | + _, |
| 141 | + CardanoMessage::StateTransition(StateTransitionMessage::Rollback(_)), |
| 142 | + )) => { |
140 | 143 | drep_publisher.publish_rollback(certs_message.clone()).await?; |
141 | 144 | spo_publisher.publish_rollback(certs_message.clone()).await?; |
142 | 145 | spo_rewards_publisher.publish_rollback(certs_message.clone()).await?; |
@@ -296,7 +299,10 @@ impl AccountsState { |
296 | 299 | .await; |
297 | 300 | } |
298 | 301 |
|
299 | | - Message::Cardano((_, CardanoMessage::Rollback(_))) => { |
| 302 | + Message::Cardano(( |
| 303 | + _, |
| 304 | + CardanoMessage::StateTransition(StateTransitionMessage::Rollback(_)), |
| 305 | + )) => { |
300 | 306 | // Ignore this, we already handled rollbacks |
301 | 307 | } |
302 | 308 |
|
|
0 commit comments