diff --git a/node/src/utils.rs b/node/src/utils.rs index d834a356b..99062f534 100644 --- a/node/src/utils.rs +++ b/node/src/utils.rs @@ -1,3 +1,4 @@ +use parity_scale_codec::Encode; use sc_service::{ChainType, Configuration}; use sp_core::{ecdsa, ed25519, sr25519, ByteArray, Pair, Public}; use sp_keystore::{Keystore, KeystorePtr}; @@ -5,7 +6,6 @@ use sp_runtime::{ key_types::{ACCOUNT, BABE, GRANDPA, IM_ONLINE}, KeyTypeId, }; - /// Helper function to generate a crypto pair from seed. pub fn get_from_seed(seed: &str) -> ::Public { TPublic::Pair::from_string(&format!("//{seed}"), None) diff --git a/scripts/run-standalone-local.sh b/scripts/run-standalone-local.sh index e6facee6b..c23e396f6 100755 --- a/scripts/run-standalone-local.sh +++ b/scripts/run-standalone-local.sh @@ -53,6 +53,7 @@ echo "*** Start Tangle Testnet ***" --rpc-max-request-size 3000 \ --rpc-max-response-size 3000 \ --ethapi trace,debug \ + --auto-insert-keys \ --node-key 0000000000000000000000000000000000000000000000000000000000000001 & # Bob ./target/release/tangle --tmp --dev --validator -lerror --bob \ @@ -60,6 +61,7 @@ echo "*** Start Tangle Testnet ***" --port ${ports[1]} \ --rpc-port 9945 \ --ethapi trace,debug \ + --auto-insert-keys \ --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp & # Charlie ./target/release/tangle --tmp --dev --validator -lerror --charlie \ @@ -67,6 +69,7 @@ echo "*** Start Tangle Testnet ***" --port ${ports[1]} \ --rpc-port 9946 \ --ethapi trace,debug \ + --auto-insert-keys \ --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp & # Dave ./target/release/tangle --tmp --dev --validator -lerror --dave \ @@ -74,6 +77,7 @@ echo "*** Start Tangle Testnet ***" --port ${ports[1]} \ --rpc-port 9947 \ --ethapi trace,debug \ + --auto-insert-keys \ --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp & # Eve ./target/release/tangle --tmp --dev --validator -linfo --eve \ @@ -81,6 +85,7 @@ echo "*** Start Tangle Testnet ***" --port ${ports[2]} \ --rpc-port 9948 \ --ethapi trace,debug \ + --auto-insert-keys \ -levm=debug \ --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp popd