71e51aabf6
* build(deps): bump github.com/ethereum/go-ethereum Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.10.19 to 1.10.25. - [Release notes](https://github.com/ethereum/go-ethereum/releases) - [Commits](https://github.com/ethereum/go-ethereum/compare/v1.10.19...v1.10.25) --- updated-dependencies: - dependency-name: github.com/ethereum/go-ethereum dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * wip geth update * fix geth init flag order * add chainId to getTransaction. fix types comparison. update expected values on tests * wip add tracer config * tracers test * update tests * update to v1.10.25 * fix linter python * ignore error * fix lint * additional changes from diff * fix issues * solve lint issues * fix tests * fix flake * wrap types comparison in integration tests * fix integration tests * fix flake * update changelog Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Freddy Caceres <facs95@gmail.com>
59 lines
1.2 KiB
Bash
Executable File
59 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
CONFIG=$1
|
|
if [ -z $CONFIG ]; then
|
|
echo "No config file supplied"
|
|
exit 1
|
|
fi
|
|
shift
|
|
|
|
DATA=$1
|
|
if [ -z $DATA ]; then
|
|
echo "No data directory supplied"
|
|
exit 1
|
|
fi
|
|
shift
|
|
|
|
geth --datadir $DATA init $CONFIG
|
|
pwdfile=$(mktemp /tmp/password.XXXXXX)
|
|
tmpfile=$(mktemp /tmp/validator-key.XXXXXX)
|
|
|
|
cat > $pwdfile << EOF
|
|
$PASSWORD
|
|
EOF
|
|
|
|
# import validator key
|
|
validator_key=$(python -c """
|
|
from eth_account import Account
|
|
Account.enable_unaudited_hdwallet_features()
|
|
print(Account.from_mnemonic('$VALIDATOR1_MNEMONIC').key.hex().replace('0x',''))
|
|
""")
|
|
|
|
cat > $tmpfile << EOF
|
|
$validator_key
|
|
EOF
|
|
geth --datadir $DATA --password $pwdfile account import $tmpfile
|
|
|
|
# import community key
|
|
community_key=$(python -c """
|
|
from eth_account import Account
|
|
Account.enable_unaudited_hdwallet_features()
|
|
print(Account.from_mnemonic('$COMMUNITY_MNEMONIC').key.hex().replace('0x',''))
|
|
""")
|
|
|
|
cat > $tmpfile << EOF
|
|
$community_key
|
|
EOF
|
|
geth --datadir $DATA --password $pwdfile account import $tmpfile
|
|
|
|
rm $tmpfile
|
|
|
|
# start up
|
|
geth --networkid 9000 --datadir $DATA --http --http.addr localhost --http.api 'personal,eth,net,web3,txpool,miner' \
|
|
-unlock '0x57f96e6b86cdefdb3d412547816a82e3e0ebf9d2' --password $pwdfile \
|
|
--mine --allow-insecure-unlock \
|
|
$@
|
|
|
|
rm $pwdfile
|