Skip to content

Commit

Permalink
Update timestamp comment placement (nit)
Browse files Browse the repository at this point in the history
  • Loading branch information
howardwu committed May 16, 2024
1 parent f8deffb commit 0d1b150
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion console/network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub trait Network:
const INCLUSION_FUNCTION_NAME: &'static str;

/// The fixed timestamp of the genesis block.
const GENESIS_TIMESTAMP: i64 = 1696118400; // 2023-10-01 00:00:00 UTC
const GENESIS_TIMESTAMP: i64;
/// The genesis block coinbase target.
#[cfg(not(feature = "test"))]
const GENESIS_COINBASE_TARGET: u64 = (1u64 << 10).saturating_sub(1);
Expand Down
2 changes: 2 additions & 0 deletions console/network/src/mainnet_v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ impl Network for MainnetV0 {

/// The network edition.
const EDITION: u16 = 0;
/// The fixed timestamp of the genesis block.
const GENESIS_TIMESTAMP: i64 = 1696118400 /* 2023-10-01 00:00:00 UTC */;
/// The network ID.
const ID: u16 = 0;
/// The function name for the inclusion circuit.
Expand Down
3 changes: 1 addition & 2 deletions console/network/src/testnet_v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,12 @@ impl Network for TestnetV0 {

/// The network edition.
const EDITION: u16 = 0;
// 2024-05-15 12:34:56 UTC
/// The genesis block coinbase target.
const GENESIS_COINBASE_TARGET: u64 = (1u64 << 5).saturating_sub(1);
/// The genesis block proof target.
const GENESIS_PROOF_TARGET: u64 = 1u64 << 3;
/// The fixed timestamp of the genesis block.
const GENESIS_TIMESTAMP: i64 = 1715776496;
const GENESIS_TIMESTAMP: i64 = 1715776496 /* 2024-05-15 12:34:56 UTC */;
/// The network ID.
const ID: u16 = 1;
/// The function name for the inclusion circuit.
Expand Down

0 comments on commit 0d1b150

Please sign in to comment.