Skip to content

Commit

Permalink
feature: Adds mainnet genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedey committed Sep 28, 2023
1 parent e14073d commit 28ed247
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@

# Except PNG files which shouldn't be treated as text
*.png -text
*.bin -text
10 changes: 8 additions & 2 deletions common/src/main/java/com/radixdlt/networks/Network.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,14 @@ public enum Network {
/// Public Facing Permanent Networks (0x00 - 0x09)
// - mainnet
// - stokenet
// TODO(post-babylon): add a fixed genesis from resources for mainnet
MAINNET(1 /* 0x01 */, "mainnet", "rdx"),
MAINNET(
1 /* 0x01 */,
"mainnet",
"rdx",
FixedNetworkGenesis.resource(
HashCode.fromBytes(
Hex.decode("4e7dbd2079a4e0c608a4437a0b51ca383c7f3081038161fa8b1b55d9686797e9")),
"genesis/mainnet/mainnet_genesis.bin")),
STOKENET(
2 /* 0x02 */,
"stokenet",
Expand Down
Binary file not shown.

0 comments on commit 28ed247

Please sign in to comment.