Skip to content

Commit

Permalink
temp change for testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
3ierratango committed Apr 21, 2023
1 parent b380ec8 commit 193d3a9
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 29 deletions.
16 changes: 8 additions & 8 deletions alice_node_config.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"networks": {
"network_vec": [{
"url": "https://rpc-mumbai.maticvigil.com/",
"gateway_contract_address": "fE174DC5FF85Ed8871e4f35d86f1BB32A8461A38",
"id": 80001
"url": "https://evm.shibuya.astar.network",
"gateway_contract_address": "337ee83622C8Eb69AE7F8C49431BF982e9dE9036",
"id": 81
},
{
"url": "https://data-seed-prebsc-2-s3.binance.org:8545",
"gateway_contract_address": "fE174DC5FF85Ed8871e4f35d86f1BB32A8461A38",
"id": 97
"url": "http://127.0.0.1:8545",
"gateway_contract_address": "92660CBfA6F120dD4343AfD4A74A030506dC9Acb",
"id": 26100
}],
"pair_vec": [[80001, 97], [97, 80001]],
"pair_vec": [[81, 26100], [26100, 81]],
"signer_public_key": "020a1091341fe5664bfa1782d5e04779689068c916b04cb365ec3153755684d9a1",
"role" : "QP_FINALIZER"
"role" : "QP_MINER"
}
}
8 changes: 4 additions & 4 deletions bob_node_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"id": 80001
},
{
"url": "https://data-seed-prebsc-2-s3.binance.org:8545",
"gateway_contract_address": "fE174DC5FF85Ed8871e4f35d86f1BB32A8461A38",
"id": 97
"url": "http://127.0.0.1:8545",
"gateway_contract_address": "92660CBfA6F120dD4343AfD4A74A030506dC9Acb",
"id": 26100
}],
"pair_vec": [[80001, 97], [97, 80001]],
"pair_vec": [[80001, 26100], [26100, 80001]],
"signer_public_key": "0390084fdbf27d2b79d26a4f13f0ccd982cb755a661969143c37cbc49ef5b91f27",
"role" : "QP_MINER"
}
Expand Down
10 changes: 5 additions & 5 deletions pallets/quantum-portal/src/quantum_portal_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ impl<T: Config> QuantumPortalService<T> {
);
let now = local_client.now;

// mine if role is miner
if role == Role::QP_MINER {
// // mine if role is miner
// if role == Role::QP_MINER {
let mine_tx = local_client.mine(remote_client)?;
if mine_tx.is_some() {
self.save_tx(PendingTransaction::MineTransaction(
Expand All @@ -183,9 +183,9 @@ impl<T: Config> QuantumPortalService<T> {
mine_tx.unwrap(),
))?
}
}
//}
// finalize if role is finalizer
if role == Role::QP_FINALIZER {
//if role == Role::QP_FINALIZER {
let fin_tx = local_client.finalize(remote_chain)?;
if fin_tx.is_some() {
// Save tx
Expand All @@ -196,7 +196,7 @@ impl<T: Config> QuantumPortalService<T> {
fin_tx.unwrap(),
))?
}
}
//}

self.remove_lock()?;
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions rococo-local-raw.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"id": "rococo_local_testnet",
"chainType": "Local",
"bootNodes": [
"/ip4/127.0.0.1/tcp/30444/p2p/12D3KooWFfDEy5hQ1WVY9BDXzWikfxXfLMtU73XxohM2fVtBJijh",
"/ip4/127.0.0.1/tcp/30555/p2p/12D3KooWJuRzaEh12LY5Bzxten5txWshd9Xf9jCbdgLQBszcfZ68"
"/ip4/127.0.0.1/tcp/30444/p2p/12D3KooWQasoR5on2zNmDVvfFaUSSMPTqgULp24BuGpkZV4Nm23n",
"/ip4/127.0.0.1/tcp/30555/p2p/12D3KooWR8rVDjESJUx6kzCPMHiUvAcqy33D6WhQgYbeH2HGQ12M"
],
"telemetryEndpoints": null,
"protocolId": "dot",
Expand Down
4 changes: 2 additions & 2 deletions rococo-local.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"id": "rococo_local_testnet",
"chainType": "Local",
"bootNodes": [
"/ip4/127.0.0.1/tcp/30444/p2p/12D3KooWFfDEy5hQ1WVY9BDXzWikfxXfLMtU73XxohM2fVtBJijh",
"/ip4/127.0.0.1/tcp/30555/p2p/12D3KooWJuRzaEh12LY5Bzxten5txWshd9Xf9jCbdgLQBszcfZ68"
"/ip4/127.0.0.1/tcp/30444/p2p/12D3KooWQasoR5on2zNmDVvfFaUSSMPTqgULp24BuGpkZV4Nm23n",
"/ip4/127.0.0.1/tcp/30555/p2p/12D3KooWR8rVDjESJUx6kzCPMHiUvAcqy33D6WhQgYbeH2HGQ12M"
],
"telemetryEndpoints": null,
"protocolId": "dot",
Expand Down
16 changes: 8 additions & 8 deletions scripts/start-local-testnet.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

# remove any existing data from chain
rm -rf ./chain
# # remove any existing data from chain
# rm -rf ./chain

# generate chain spec
./target/release/ferrum-network build-spec --disable-default-bootnode > ferrum-local-testnet.json
# # generate chain spec
# ./target/release/ferrum-network build-spec --disable-default-bootnode > ferrum-local-testnet.json

# insert the signing keys for alice
./target/release/ferrum-network key insert --key-type ofsg --scheme ecdsa --base-path ./chain/alice --chain ferrum-local-testnet.json --suri //Alice
# # insert the signing keys for alice
# ./target/release/ferrum-network key insert --key-type ofsg --scheme ecdsa --base-path ./chain/alice --chain ferrum-local-testnet.json --suri //Alice

# insert the signing keys for bob
./target/release/ferrum-network key insert --key-type ofsg --scheme ecdsa --base-path ./chain/bob --chain ferrum-local-testnet.json --suri //Bob
# # insert the signing keys for bob
# ./target/release/ferrum-network key insert --key-type ofsg --scheme ecdsa --base-path ./chain/bob --chain ferrum-local-testnet.json --suri //Bob

# start relaychain and parachain in background
polkadot-launch ./scripts/polkadot-launch/config.json

0 comments on commit 193d3a9

Please sign in to comment.