Skip to content

Commit

Permalink
updated genesis time
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumExplorer committed Jul 25, 2024
1 parent d744f32 commit 2da61c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use crate::platform_types::platform_state::PlatformState;
use dpp::version::PlatformVersion;
use std::sync::Arc;
use tenderdash_abci::proto::abci::{RequestInitChain, ResponseInitChain, ValidatorSetUpdate};
use tenderdash_abci::proto::google::protobuf::Timestamp;

impl<C> Platform<C>
where
Expand Down Expand Up @@ -130,7 +131,10 @@ where
validator_set_update: Some(validator_set),
next_core_chain_lock_update: None,
initial_core_height: core_height, // we send back the core height when the fork happens
genesis_time: None,
genesis_time: Some(Timestamp {
seconds: (genesis_time / 1000) as i64,
nanos: ((genesis_time % 1000) * 1000) as i32,
}),
})
}
}

0 comments on commit 2da61c2

Please sign in to comment.