Skip to content

Commit

Permalink
Merge pull request #2455 from AleoNet/feat/new-network
Browse files Browse the repository at this point in the history
Adding Testnet Beta genesis block
  • Loading branch information
zosorock authored May 16, 2024
2 parents 3ebe60c + 0d1b150 commit 140ff26
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 77 deletions.
File renamed without changes.
147 changes: 73 additions & 74 deletions .circleci/config.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.16.19"
authors = [ "The Aleo Team <hello@aleo.org>" ]
description = "A decentralized virtual machine"
homepage = "https://aleo.org"
repository = "https://github.com/AleoHQ/snarkVM"
repository = "https://github.com/AleoNet/snarkVM"
keywords = [
"aleo",
"cryptography",
Expand Down
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
2 changes: 2 additions & 0 deletions console/network/src/testnet_v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ impl Network for TestnetV0 {
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 /* 2024-05-15 12:34:56 UTC */;
/// The network ID.
const ID: u16 = 1;
/// The function name for the inclusion circuit.
Expand Down
2 changes: 1 addition & 1 deletion parameters/src/testnet/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ mod tests {
#[test]
fn test_genesis_block() {
let bytes = GenesisBytes::load_bytes();
assert_eq!(15485, bytes.len() as u64, "Update me if serialization has changed");
assert_eq!(14943, bytes.len() as u64, "Update me if serialization has changed");
}
}
Binary file modified parameters/src/testnet/resources/block.genesis
Binary file not shown.

0 comments on commit 140ff26

Please sign in to comment.