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 tidywhere gethxcopy [repo-dir]\TCTchain d:\TCTchain /I
cd d:\TCTchain
d:
geth account new --datadir node1When 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.jsongeth --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/gethFollow the Build from source code\Linux section in this document
$ make gethto start the geth,
$ ./build/bin/gethentering into TCTchain folder, and init the chain setttings:
$ cd TCTchain
$ geth account new --datadir node1
$ geth init --datadir node1 PoA-genesis.jsonand 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.