Skip to content

Commit

Permalink
consensus: add timestamp to Ratification payload
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-seppia committed Jan 10, 2024
1 parent 5349837 commit 4799d01
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion consensus/src/ratification/step.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
//
// Copyright (c) DUSK NETWORK. All rights reserved.

use crate::commons::{ConsensusError, Database, RoundUpdate};
use crate::commons::{
get_current_timestamp, ConsensusError, Database, RoundUpdate,
};
use crate::contract_state::Operations;
use crate::execution_ctx::ExecutionCtx;
use std::marker::PhantomData;
Expand Down Expand Up @@ -52,6 +54,7 @@ impl<T: Operations + 'static, DB: Database> RatificationStep<T, DB> {
Ratification {
signature,
validation_result: result.clone(),
timestamp: get_current_timestamp(),
},
);

Expand Down

0 comments on commit 4799d01

Please sign in to comment.