From 4799d017c1db2a15172fe3ce8297a1f776c0d8dc Mon Sep 17 00:00:00 2001 From: Herr Seppia Date: Wed, 10 Jan 2024 10:12:01 +0100 Subject: [PATCH] consensus: add `timestamp` to `Ratification` payload --- consensus/src/ratification/step.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/consensus/src/ratification/step.rs b/consensus/src/ratification/step.rs index c70bb154f0..e525ea6f0c 100644 --- a/consensus/src/ratification/step.rs +++ b/consensus/src/ratification/step.rs @@ -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; @@ -52,6 +54,7 @@ impl RatificationStep { Ratification { signature, validation_result: result.clone(), + timestamp: get_current_timestamp(), }, );