Skip to content

Commit

Permalink
add 1 more account
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaying-peng committed Oct 21, 2022
1 parent 2e88aa9 commit c3f1a1a
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 26 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ outputs:
value: http://localhost:8546
address:
description: "account of address"
value: "0x622fbe99b3a378fac736bf29d7e23b85e18816eb"
value: "0x791ab321d86ca11fed3afdff3e1b6bad093d1220"
private_key:
description: "account of private key"
value: "0xde665c1c4bb8a5b74386dd8fb17dd2ba9a59db6cc11aea4d27ebdc5ecf46c13c"
Expand Down
46 changes: 23 additions & 23 deletions geth/config/genesis.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"config": {
"chainId": 12345,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"berlinBlock": 0,
"clique": {
"period": 0,
"epoch": 30000
}
},
"difficulty": "1",
"gasLimit": "8000000",
"extradata": "0x00000000000000000000000000000000000000000000000000000000000000004cdbd835fe18bd93cca39a262cff72dbac99e24f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"alloc": {
"622fbe99b3a378fac736bf29d7e23b85e18816eb": { "balance": "888888888888888888888888" },
"4cdbd835fe18bd93cca39a262cff72dbac99e24f": { "balance": "888888888888888888888888" }
"config": {
"chainId": 12345,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"berlinBlock": 0,
"clique": {
"period": 0,
"epoch": 30000
}
},
"difficulty": "1",
"gasLimit": "8000000",
"extradata": "0x00000000000000000000000000000000000000000000000000000000000000004cdbd835fe18bd93cca39a262cff72dbac99e24f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"alloc": {
"622fbe99b3a378fac736bf29d7e23b85e18816eb": { "balance": "888888888888888888888888" },
"4cdbd835fe18bd93cca39a262cff72dbac99e24f": { "balance": "888888888888888888888888" },
"791ab321d86ca11fed3afdff3e1b6bad093d1220": { "balance": "888888888888888888888888" }
}
}

1 change: 1 addition & 0 deletions geth/config/private-key3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9e5a7d25119ad38b0b66f89b3d6c492240f1a5484bc755c778bac209dbd4e2a5
4 changes: 3 additions & 1 deletion geth/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ set -eu

geth init /root/config/genesis.json
geth --password /root/config/password.txt account import /root/config/private-key1.txt
geth --password /root/config/password.txt account import /root/config/private-key2.txt
geth --password /root/config/password.txt account import /root/config/private-key2.txt
geth --password /root/config/password.txt account import /root/config/private-key3.txt


2 changes: 1 addition & 1 deletion geth/scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ geth \
--mine \
--miner.etherbase '0x4cdBd835fE18BD93ccA39A262Cff72dbAC99E24F' \
--miner.gasprice 0 \
--unlock "0,1" \
--unlock "0,1,2" \
--password /root/config/password.txt \
--allow-insecure-unlock

0 comments on commit c3f1a1a

Please sign in to comment.