Go-Ethereum

未設置 etherbase,也未找到預設帳戶

  • June 16, 2020

我得到:“沒有設置 etherbase,也沒有找到預設帳戶”

嘗試使用以下方式同步我的節點時:

geth --testnet --rpc --rpcapi db,eth,net,web3,personal --cache=1024 --rpcport 8545 --rpcaddr 127.0.0.1 --rpccorsdomain "*"

然後我的節點啟動但似乎是一個未連接到測試網的本地實例:

WARN [09-29|09:28:24] No etherbase set and no accounts found as default
INFO [09-29|09:28:24] Starting peer-to-peer node               instance=Geth/v1.7.3-stable-4bb3c89d/windows-amd64/go1.9
INFO [09-29|09:28:24] Allocated cache and file handles         database=C:\\Users\\jc\\AppData\\Roaming\\Ethereum\\testnet\\geth\\chaindata cache=1024 handles=1024
INFO [09-29|09:28:24] Writing custom genesis block
INFO [09-29|09:28:24] Initialised chain configuration          config="{ChainID: 3 Homestead: 0 DAO: <nil> DAOSupport: true EIP150: 0 EIP155: 10 EIP158: 10 Byzantium: 1700000 Engine: ethash}"
INFO [09-29|09:28:24] Disk storage enabled for ethash caches   dir=C:\\Users\\jc\\AppData\\Roaming\\Ethereum\\testnet\\geth\\ethash count=3
INFO [09-29|09:28:24] Disk storage enabled for ethash DAGs     dir=C:\\Users\\jc\\AppData\\Ethash                                   count=2
INFO [09-29|09:28:24] Initialising Ethereum protocol           versions="[63 62]" network=3
INFO [09-29|09:28:24] Loaded most recent local header          number=0 hash=419410…ca3a2d td=1048576
INFO [09-29|09:28:24] Loaded most recent local full block      number=0 hash=419410…ca3a2d td=1048576
INFO [09-29|09:28:24] Loaded most recent local fast block      number=0 hash=419410…ca3a2d td=1048576
INFO [09-29|09:28:24] Regenerated local transaction journal    transactions=0 accounts=0
INFO [09-29|09:28:24] Starting P2P networking
INFO [09-29|09:28:26] UDP listener up                          self=enode://e256e2a241f56a0f65d873894f162711893714e5d21e83994c7f742542023cd5ce2cfc4216434b02534c49ab31c57f7278c4f0100951a0d6645504ef455940d7@[::]:30303
INFO [09-29|09:28:26] RLPx listener up                         self=enode://e256e2a241f56a0f65d873894f162711893714e5d21e83994c7f742542023cd5ce2cfc4216434b02534c49ab31c57f7278c4f0100951a0d6645504ef455940d7@[::]:30303
INFO [09-29|09:28:26] IPC endpoint opened: \\.\pipe\geth.ipc
INFO [09-29|09:28:26] HTTP endpoint opened: http://127.0.0.1:8545

知道如何解決此錯誤消息嗎?

謝謝!胡安

“未設置 etherbase 且未找到預設帳戶”看起來不像錯誤,它是基於日誌的警告。為了修復它,您需要它創建帳戶geth --datadir=/wherever account new,但很可能它不會解決同步問題。看起來客戶端由於某種原因找不到對等點,可能是連接問題或防火牆。

引用自:https://ethereum.stackexchange.com/questions/59703