Skip to content

TCT-web3/TCT-Geth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build from source code

Follow the "Build from source code" section in this document.

1. Specific steps for Windows

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

Check if geth is successfully built

where geth

One-time setup

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

Run geth with miner

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"

Interact with geth

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.

Rebuild geth after code modifications

go install -v ./cmd/geth

2. Specific steps for Linux

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"

3. New features of TCT-geth

More details are in Development Readme.

License

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.

Releases

No releases published

Packages

No packages published

Languages

  • Go 89.5%
  • C 5.1%
  • JavaScript 3.3%
  • Assembly 0.7%
  • Java 0.2%
  • Sage 0.2%
  • Other 1.0%