Skip to content

Commit 2bbd573

Browse files
Damien LACHAUME / PALO-ITsfauvel
authored andcommitted
Add latest_immutable_file_number in VerifiedCardanoTransactions
1 parent da3a2e6 commit 2bbd573

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mithril-common/src/messages/cardano_transactions_proof.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ pub struct VerifiedCardanoTransactions {
5353
certificate_hash: String,
5454
merkle_root: String,
5555
certified_transactions: Vec<TransactionHash>,
56+
latest_immutable_file_number: u64,
5657
}
5758

5859
impl VerifiedCardanoTransactions {
@@ -167,6 +168,7 @@ impl CardanoTransactionsProofsMessage {
167168
.iter()
168169
.flat_map(|c| c.transactions_hashes.clone())
169170
.collect(),
171+
latest_immutable_file_number: self.latest_immutable_file_number,
170172
})
171173
}
172174
}
@@ -225,6 +227,7 @@ mod tests {
225227
certificate_hash: "whatever".to_string(),
226228
merkle_root: set_proof.merkle_root(),
227229
certified_transactions: set_proof.transactions_hashes().to_vec(),
230+
latest_immutable_file_number: 99999,
228231
};
229232
let txs_proofs = CardanoTransactionsProofsMessage::new(
230233
"whatever",

0 commit comments

Comments
 (0)