Skip to content

Commit

Permalink
Aggregator signs real digest
Browse files Browse the repository at this point in the history
Signed-off-by: DJO <790521+Alenar@users.noreply.github.com>
  • Loading branch information
Alenar committed May 31, 2022
1 parent d3e60a3 commit 1121849
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mithril-aggregator/src/multi_signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ impl MultiSigner for MultiSignerImpl {

/// Creates a multi signature from single signatures
fn create_multi_signature(&mut self) -> Result<Option<ProtocolMultiSignature>, ProtocolError> {
debug!("Create multi signature");

let message = &self
.get_current_message()
.ok_or_else(ProtocolError::UnavailableMessage)?;

debug!("Create multi signature"; "message" => ?message);
let signatures: Vec<ProtocolSingleSignature> = self
.single_signatures
.iter()
Expand Down
4 changes: 2 additions & 2 deletions mithril-aggregator/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ impl AggregatorRuntime {
Ok(digest_result) => {
let mut beacon = fake_data::beacon();
beacon.immutable_file_number = digest_result.last_immutable_file_number;
let message = fake_data::digest(&beacon);
let message = &digest_result.digest.clone().into_bytes();

match self.manage_trigger_snapshot(&message, &beacon).await {
match self.manage_trigger_snapshot(message, &beacon).await {
Ok(true) => {
let snapshot_name =
format!("{}.{}.tar.gz", self.network, &digest_result.digest);
Expand Down

0 comments on commit 1121849

Please sign in to comment.