Skip to content

Commit

Permalink
Add in genesis config sgx ra for debug mode allowed (#59)
Browse files Browse the repository at this point in the history
* init in testnet_genesis the teerex allow_sgx_debug_mode to true

Co-authored-by: echevrier <edith.chevrier@scs.ch>
  • Loading branch information
echevrier and echevrier authored Oct 4, 2021
1 parent 078230a commit 36290a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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.

5 changes: 4 additions & 1 deletion node/src/chain_spec.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use integritee_node_runtime::{
AccountId, AuraConfig, BalancesConfig, GenesisConfig, GrandpaConfig, Multisig, Signature, SudoConfig,
SystemConfig, TreasuryPalletId, WASM_BINARY
SystemConfig, TreasuryPalletId, WASM_BINARY, TeerexConfig
};
use sc_service::ChainType;
use sp_consensus_aura::sr25519::AuthorityId as AuraId;
Expand Down Expand Up @@ -391,6 +391,9 @@ fn genesis_config(
// Assign network admin rights.
key: root_key,
},
teerex: TeerexConfig {
allow_sgx_debug_mode : true,
},
treasury: Default::default(),
vesting: Default::default(),
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ construct_runtime!(
Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event<T>} = 30,

// utility
Teerex: pallet_teerex::{Pallet, Call, Storage, Event<T>} = 50, }
Teerex: pallet_teerex::{Pallet, Call, Config, Storage, Event<T>} = 50, }
);

/// The address format for describing accounts.
Expand Down

0 comments on commit 36290a9

Please sign in to comment.