Skip to content

Commit

Permalink
chore: add sgx shared pub key to genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-wright committed Sep 17, 2024
1 parent 18ded24 commit 56926dc
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/application/networks/localnet-example/genesis.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ max_boost = 4
max_lock_time = 1460 # 1460 days(epoch) meaning 4 years
supply_at_genesis = 1000000 # set to 1 million for testing, to be determined when initial allocations are set
min_num_measurements = 2
sgx_shared_pub_key = "03a3fe41244add26af1f820d2acb4ad22b158ff7b69ce41401bf932d7734eb5d49"
protocol_fund_address = "0x2a8cf657769c264b0c7f88e3a716afdeaec1c318"
governance_address = "0x2a8cf657769c264b0c7f88e3a716afdeaec1c318"

Expand Down
1 change: 1 addition & 0 deletions core/application/networks/testnet-stable/genesis.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ max_boost = 4
max_lock_time = 1460 # 1460 days(epoch) meaning 4 years
supply_at_genesis = 1000000 # set to 1 million for testing, to be determined when initial allocations are set
min_num_measurements = 4
sgx_shared_pub_key = "03a3fe41244add26af1f820d2acb4ad22b158ff7b69ce41401bf932d7734eb5d49"
protocol_fund_address = "0x2a8cf657769c264b0c7f88e3a716afdeaec1c318"
governance_address = "0x2a8cf657769c264b0c7f88e3a716afdeaec1c318"

Expand Down
1 change: 1 addition & 0 deletions core/application/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ mod config_tests {
genesis_path: None,
..Default::default()
};
println!("{:?}", config.genesis());
assert!(config.genesis().is_ok());
}

Expand Down
2 changes: 2 additions & 0 deletions core/application/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@ fn test_genesis() -> Genesis {
// Set to 1 million for testing, to be determined when initial allocations are set
supply_at_genesis: 1000000,
min_num_measurements: 2,
sgx_shared_pub_key: "03a3fe41244add26af1f820d2acb4ad22b158ff7b69ce41401bf932d7734eb5d49"
.to_string(),
protocol_fund_address: protocol_address,
governance_address: protocol_address,
node_info: genesis_nodes,
Expand Down
2 changes: 2 additions & 0 deletions core/test-utils/src/e2e/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ impl TestGenesisBuilder {
max_lock_time: 1460,
supply_at_genesis: 1000000,
min_num_measurements: 2,
sgx_shared_pub_key:
"03a3fe41244add26af1f820d2acb4ad22b158ff7b69ce41401bf932d7734eb5d49".to_string(),
protocol_fund_address: self.protocol_address,
governance_address: self.protocol_address,
node_info: self.nodes,
Expand Down
1 change: 1 addition & 0 deletions core/types/src/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub struct Genesis {
pub max_boost: u16,
pub max_lock_time: u64,
pub min_num_measurements: u64,
pub sgx_shared_pub_key: String,
pub node_info: Vec<GenesisNode>,
pub service: Vec<GenesisService>,
pub account: Vec<GenesisAccount>,
Expand Down

0 comments on commit 56926dc

Please sign in to comment.