geth --http

From wikieduonline
Jump to navigation Jump to search

geth --http --http (default: false) Enable the HTTP-RPC server


--http.api "eth,net,web3,txpool,admin"


--http.corsdomain
INFO [03-13|12:44:54.812] Starting Geth on Ethereum mainnet...
INFO [03-13|12:44:54.812] Bumping default cache on mainnet         provided=1024 updated=4096
INFO [03-13|12:44:54.815] Maximum peer count                       ETH=50 LES=0 total=50
INFO [03-13|12:44:54.817] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
WARN [03-13|12:44:54.821] Sanitizing cache to Go's GC limits       provided=4096 updated=1287
INFO [03-13|12:44:54.822] Set global gas cap                       cap=50,000,000
INFO [03-13|12:44:54.824] Allocated trie memory caches             clean=193.00MiB dirty=321.00MiB
INFO [03-13|12:44:54.824] Using leveldb as the backing database
INFO [03-13|12:44:54.824] Allocated cache and file handles         database=/root/.ethereum/geth/chaindata cache=641.00MiB handles=524,288
INFO [03-13|12:44:54.859] Using LevelDB as the backing database
INFO [03-13|12:44:54.860] Opened ancient database                  database=/root/.ethereum/geth/chaindata/ancient/chain readonly=false
INFO [03-13|12:44:54.863] Disk storage enabled for ethash caches   dir=/root/.ethereum/geth/ethash count=3
INFO [03-13|12:44:54.863] Disk storage enabled for ethash DAGs     dir=/root/.ethash               count=2
INFO [03-13|12:44:54.863] Initialising Ethereum protocol           network=1 dbversion=8
INFO [03-13|12:44:54.901]
INFO [03-13|12:44:54.901] ---------------------------------------------------------------------------------------------------------------------------------------------------------
INFO [03-13|12:44:54.901] Chain ID:  1 (mainnet)
INFO [03-13|12:44:54.901] Consensus: Beacon (proof-of-stake), merged from Ethash (proof-of-work)
INFO [03-13|12:44:54.901]
INFO [03-13|12:44:54.901] Pre-Merge hard forks (block based):
INFO [03-13|12:44:54.901]  - Homestead:                   #1150000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/homestead.md)
INFO [03-13|12:44:54.901]  - DAO Fork:                    #1920000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/dao-fork.md)
INFO [03-13|12:44:54.901]  - Tangerine Whistle (EIP 150): #2463000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/tangerine-whistle.md)
INFO [03-13|12:44:54.901]  - Spurious Dragon/1 (EIP 155): #2675000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/spurious-dragon.md)
INFO [03-13|12:44:54.901]  - Spurious Dragon/2 (EIP 158): #2675000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/spurious-dragon.md)
INFO [03-13|12:44:54.901]  - Byzantium:                   #4370000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/byzantium.md)
INFO [03-13|12:44:54.901]  - Constantinople:              #7280000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/constantinople.md)
INFO [03-13|12:44:54.901]  - Petersburg:                  #7280000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/petersburg.md)
INFO [03-13|12:44:54.901]  - Istanbul:                    #9069000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/istanbul.md)
INFO [03-13|12:44:54.901]  - Muir Glacier:                #9200000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/muir-glacier.md)
INFO [03-13|12:44:54.901]  - Berlin:                      #12244000 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/berlin.md)
INFO [03-13|12:44:54.901]  - London:                      #12965000 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/london.md)
INFO [03-13|12:44:54.901]  - Arrow Glacier:               #13773000 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/arrow-glacier.md)
INFO [03-13|12:44:54.901]  - Gray Glacier:                #15050000 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/gray-glacier.md)
INFO [03-13|12:44:54.901]
INFO [03-13|12:44:54.901] Merge configured:
INFO [03-13|12:44:54.901]  - Hard-fork specification:    https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/paris.md
INFO [03-13|12:44:54.901]  - Network known to be merged: true
INFO [03-13|12:44:54.901]  - Total terminal difficulty:  58750000000000000000000
INFO [03-13|12:44:54.902]
INFO [03-13|12:44:54.902] Post-Merge hard forks (timestamp based):
INFO [03-13|12:44:54.902]
INFO [03-13|12:44:54.902] ---------------------------------------------------------------------------------------------------------------------------------------------------------
INFO [03-13|12:44:54.902]
INFO [03-13|12:44:54.902] Loaded most recent local block           number=0 hash=d4e567..cb8fa3 td=17,179,869,184 age=53y11mo2w
INFO [03-13|12:44:54.902] Loaded local transaction journal         transactions=0 dropped=0
INFO [03-13|12:44:54.903] Regenerated local transaction journal    transactions=0 accounts=0
INFO [03-13|12:44:54.903] Chain post-merge, sync via beacon client
INFO [03-13|12:44:54.904] Gasprice oracle is ignoring threshold set threshold=2
WARN [03-13|12:44:54.904] Engine API enabled                       protocol=eth
INFO [03-13|12:44:54.905] Starting peer-to-peer node               instance=Geth/v1.11.3-stable-5ed08c47/linux-amd64/go1.20.2
INFO [03-13|12:44:54.928] New local node record                    seq=1,678,708,221,259 id=7247135922a94446 ip=127.0.0.1 udp=30303 tcp=30303
INFO [03-13|12:44:54.932] IPC endpoint opened                      url=/root/.ethereum/geth.ipc
INFO [03-13|12:44:54.932] Loaded JWT secret file                   path=/root/.ethereum/geth/jwtsecret crc32=0x55ac29eb
INFO [03-13|12:44:54.933] HTTP server started                      endpoint=127.0.0.1:8545 auth=false prefix= cors= vhosts=localhost
INFO [03-13|12:44:54.933] WebSocket enabled                        url=ws://127.0.0.1:8551
INFO [03-13|12:44:54.933] HTTP server started                      endpoint=127.0.0.1:8551 auth=true  prefix= cors=localhost vhosts=localhost
INFO [03-13|12:44:54.934] Started P2P networking                   self=enode://48028ec6933d9d506b000bdfasfdasfsdgasgasg1bf44ccf4e4b5c12513f1f5d4156990048a07@127.0.0.1:30303
INFO [03-13|12:44:58.521] New local node record                    seq=1,678,708,221,260 id=7247135922a94446 ip=13.245.90.162 udp=30303 tcp=30303
INFO [03-13|12:45:04.962] Looking for peers                        peercount=1 tried=16 static=0
INFO [03-13|12:45:15.269] Looking for peers                        peercount=2 tried=27 static=0
INFO [03-13|12:45:25.350] Looking for peers                        peercount=2 tried=25 static=0
WARN [03-13|12:45:29.907] Post-merge network, but no beacon client seen. Please launch one to follow the chain!
INFO [03-13|12:45:35.936] Looking for peers                        peercount=2 tried=31 static=0
INFO [03-13|12:45:45.937] Looking for peers                        peercount=1 tried=43 static=0
INFO [03-13|12:45:56.028] Looking for peers                        peercount=1 tried=34 static=0
INFO [03-13|12:46:06.160] Looking for peers                        peercount=1 tried=33 static=0
INFO [03-13|12:46:16.270] Looking for peers                        peercount=1 tried=33 static=0
INFO [03-13|12:46:26.270] Looking for peers                        peercount=1 tried=25 static=0
INFO [03-13|12:46:36.318] Looking for peers                        peercount=1 tried=40 static=0
INFO [03-13|12:46:46.603] Looking for peers                        peercount=1 tried=32 static=0
INFO [03-13|12:46:56.936] Looking for peers                        peercount=1 tried=33 static=0
INFO [03-13|12:47:06.938] Looking for peers                        peercount=1 tried=34 static=0
INFO [03-13|12:47:17.017] Looking for peers                        peercount=1 tried=29 static=0


Errors[edit]

geth --http
.../...
ERROR[03-13|11:52:21.802] Low disk space. Gracefully shutting down Geth to prevent database corruption. available=506.41MiB path=/root/.ethereum/geth
.../...

Activities[edit]

  • Review karalabe comments about activating RPC calls: "There are very easy ways to make a node go boom with the "correct" RPC requests." [1]

Related[edit]

See also[edit]

  • https://github.com/ethereum/go-ethereum/issues/20963#issuecomment-669806955
  • Advertising: