Skip to content

Commit fac11bc

Browse files
Damien LACHAUME / PALO-ITsfauvel
authored andcommitted
WIP: adapt mithril-client lib with new proof structure
1 parent 2bbd573 commit fac11bc

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

mithril-client/tests/extensions/fake.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ mod proof {
176176
ProtocolMessagePartKey::CardanoTransactionsMerkleRoot,
177177
proof.root().to_hex(),
178178
);
179+
cert.protocol_message.set_message_part(
180+
ProtocolMessagePartKey::LatestImmutableFileNumber,
181+
9999.to_string(),
182+
);
179183
cert.signed_message = cert.protocol_message.compute_hash();
180184
cert
181185
};

mithril-common/src/messages/cardano_transactions_proof.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ impl VerifiedCardanoTransactions {
7474
ProtocolMessagePartKey::CardanoTransactionsMerkleRoot,
7575
self.merkle_root.clone(),
7676
);
77+
// TODO: uncommment once tests are created.
78+
// message.set_message_part(
79+
// ProtocolMessagePartKey::LatestImmutableFileNumber,
80+
// self.latest_immutable_file_number.to_string(),
81+
// );
7782
}
7883
}
7984

0 commit comments

Comments
 (0)