go-ethereum/build/env.sh
olumuyiwadad b5abbfed79 new EVM Upgrade
- Solidity Upgraded up to v0.8.0
-  Fixed and Added eth_chainId
- Fix error in TransactionRecipet
- Reward halving issue fixed
2021-09-21 16:53:46 +05:30

30 lines
644 B
Bash
Executable file

#!/bin/sh
set -e
if [ ! -f "build/env.sh" ]; then
echo "$0 must be run from the root of the repository."
exit 2
fi
# Create fake Go workspace if it doesn't exist yet.
workspace="$PWD/build/_workspace"
root="$PWD"
ethdir="$workspace/src/github.com/XDPoSChain"
if [ ! -L "$ethdir/XDPoSChain" ]; then
mkdir -p "$ethdir"
cd "$ethdir"
ln -s ../../../../../. XDPoSChain
cd "$root"
fi
# Set up the environment to use the workspace.
GOPATH="$workspace"
export GOPATH
# Run the command inside the workspace.
cd "$ethdir/XDPoSChain"
PWD="$ethdir/XDPoSChain"
# Launch the arguments with the configured environment.
exec "$@"