@@ -4,7 +4,7 @@ use super::{
44 Config ,
55} ;
66use crate :: actors:: syncer;
7- use alto_types:: { Block , Finalization , Notarization } ;
7+ use alto_types:: { Block , Finalization , Notarization , Seed } ;
88use commonware_consensus:: threshold_simplex:: Prover ;
99use commonware_cryptography:: { sha256:: Digest , Hasher , Sha256 } ;
1010use commonware_macros:: select;
@@ -215,21 +215,23 @@ impl<R: Rng + Spawner + Metrics + Clock> Actor<R> {
215215 }
216216 Message :: Prepared { proof, payload } => {
217217 // Parse the proof
218- let ( view, parent, _, signature, _ ) =
218+ let ( view, parent, _, signature, seed ) =
219219 self . prover . deserialize_notarization ( proof) . unwrap ( ) ;
220220 let notarization = Notarization :: new ( view, parent, payload, signature. into ( ) ) ;
221+ let seed = Seed :: new ( view, seed. into ( ) ) ;
221222
222223 // Send the notarization to the syncer
223- syncer. notarized ( notarization) . await ;
224+ syncer. notarized ( notarization, seed ) . await ;
224225 }
225226 Message :: Finalized { proof, payload } => {
226227 // Parse the proof
227- let ( view, parent, _, signature, _ ) =
228+ let ( view, parent, _, signature, seed ) =
228229 self . prover . deserialize_finalization ( proof. clone ( ) ) . unwrap ( ) ;
229230 let finalization = Finalization :: new ( view, parent, payload, signature. into ( ) ) ;
231+ let seed = Seed :: new ( view, seed. into ( ) ) ;
230232
231233 // Send the finalization to the syncer
232- syncer. finalized ( finalization) . await ;
234+ syncer. finalized ( finalization, seed ) . await ;
233235 }
234236 }
235237 }
0 commit comments