Follow the "Build from source code" section in this document.
Follow the "Build from source code""Windows" section in this document, if you see errors like "missing go.sum entry for module ...", run this command
go mod tidy
where geth
xcopy [repo-dir]\TCTchain d:\TCTchain /I
cd d:\TCTchain
d:
geth account new --datadir node1
When asked for password, use "a1" as the password, which is stored in pwd.txt. Copy the created address, e.g, 0x3a12DBb7B3C8aB6e927F869A04Ea9F9596F2ce07. Paste the address into extradata and alloc of PoA-genesis.json
geth init --datadir node1 PoA-genesis.json
geth --datadir node1 --http --http.corsdomain https://remix.ethereum.org --networkid 12345 --vmdebug --allow-insecure-unlock --password pwd.txt --unlock "0x3a12DBb7B3C8aB6e927F869A04Ea9F9596F2ce07" --mine --miner.etherbase "0x3a12DBb7B3C8aB6e927F869A04Ea9F9596F2ce07"
Use browser to visit online remix. Click Deploy & Run Transactions
. In Environment
, choose Custom - External Http Provider
. Accept the default endpoint http://127.0.0.1:8545
. The account should now have 420 ether.
go install -v ./cmd/geth
Follow the Build from source code\Linux
section in this document
$ make geth
to start the geth,
$ ./build/bin/geth
entering into TCTchain
folder, and init the chain setttings:
$ cd TCTchain
$ geth account new --datadir node1
$ geth init --datadir node1 PoA-genesis.json
and then run the geth:
$ geth --datadir node1 --http --http.corsdomain https://remix.ethereum.org --networkid 12345 --vmdebug --allow-insecure-unlock --password pwd.txt --unlock "0x3a12DBb7B3C8aB6e927F869A04Ea9F9596F2ce07" --mine --miner.etherbase "0x3a12DBb7B3C8aB6e927F869A04Ea9F9596F2ce07"
More details are in Development Readme.
The go-ethereum library (i.e. all code outside of the cmd
directory) is licensed under the GNU Lesser General Public License v3.0, also included in our repository in the COPYING.LESSER
file.
The go-ethereum binaries (i.e. all code inside of the cmd
directory) are licensed under the GNU General Public License v3.0, also included in our repository in the COPYING
file.