[ethereum/go-ethereum] «—bootnodes» option doesn’t work (private network) (#2708)

Same issue here, —bootnodes not work, but adding the node with admin.addPeer(enodeurl) working, with the excat same enode url infos.

the command line:
geth —identity «MyTestNodePc2» —nodiscover —bootnodes «enode://8966b7a85496bd37e61fceb49ca03c1527291d0c21dbf9a3ab68226174704e6c2a18929e748cd802f80bb0a67136950dc1fdc89c2825b4c6e7dcc35c36c51826@[::]:30303» —datadir e:/geth/node_data_testnet2 —port 30304 —rpc —rpcport 8102 —ipcdisable -verbosity 6 —mine —minerthreads 1 console

ouput in verbose 6

E:Geth>geth —identity «MyTestNodePc2» —nodiscover —bootnodes «enode://8966b7a85496bd37e61fceb49ca03c1527291d0c21dbf9a3ab68226174704e6c2a18929e748cd802f80bb0a67136950dc1fdc89c2825b4c6e7dcc35c36c51826@[::]:30303» —datadir e:/geth/node_data_testnet2 —port 30304 —rpc —rpcport 8102 —ipcdisable -verbosity 6 —mine —minerthreads 1 console
INFO [06-13|23:24:21] Maximum peer count ETH=25 LES=0 total=25
DEBUG[06-13|23:24:21] FS scan times list=0s set=0s diff=0s
TRACE[06-13|23:24:21] Handled keystore changes time=0s
INFO [06-13|23:24:21] Starting peer-to-peer node instance=Geth/MyTestNodePc2/v1.8.8-stable-2688dab4/windows-amd64/go1.10.1
INFO [06-13|23:24:21] Allocated cache and file handles database=e:\geth\node_data_testnet2\geth\chaindata cache=768 handles=1024
INFO [06-13|23:24:21] Initialised chain configuration config=»{ChainID: 6699 Homestead: 0 DAO: DAOSupport: false EIP150: EIP155: 0 EIP158: 0 Byzantium: Constantinople: Engine: unknown}»
INFO [06-13|23:24:21] Disk storage enabled for ethash caches dir=e:\geth\node_data_testnet2\geth\ethash count=3
INFO [06-13|23:24:21] Disk storage enabled for ethash DAGs dir=C:\Users\asaff\AppData\Ethash count=2
INFO [06-13|23:24:21] Initialising Ethereum protocol versions=»[63 62]» network=1
WARN [06-13|23:24:21] Head state missing, repairing chain number=3011 hash=ca6c2a…4c0122
INFO [06-13|23:24:21] Rewound blockchain to past state number=3006 hash=08670f…8a3cfa
INFO [06-13|23:24:21] Loaded most recent local header number=3011 hash=ca6c2a…4c0122 td=805392110
INFO [06-13|23:24:21] Loaded most recent local full block number=3006 hash=08670f…8a3cfa td=803243630
INFO [06-13|23:24:21] Loaded most recent local fast block number=3011 hash=ca6c2a…4c0122 td=805392110
DEBUG[06-13|23:24:21] Reinjecting stale transactions count=0
INFO [06-13|23:24:21] Loaded local transaction journal transactions=0 dropped=0
INFO [06-13|23:24:21] Regenerated local transaction journal transactions=0 accounts=0
WARN [06-13|23:24:21] Blockchain not empty, fast sync disabled
DEBUG[06-13|23:24:21] Recalculated downloader QoS values rtt=20s confidence=1.000 ttl=1m0s
INFO [06-13|23:24:21] Starting P2P networking
INFO [06-13|23:24:21] RLPx listener up self=»enode://bd6b14fd30b6c74c594365886fbbec9548efbfc6f16b2d6c45256316b93bb94dba4fd55103789eff896aeb61694f0935b0314ac97c9d85bec3929c215685a77f@[::]:30304?discport=0″
DEBUG[06-13|23:24:21] InProc registered service=&{node:0xc042317400} namespace=admin
DEBUG[06-13|23:24:21] InProc registered service=&{node:0xc042317400} namespace=admin
DEBUG[06-13|23:24:21] InProc registered service=»&{mu:{state:0 sema:0} cpuW: cpuFile: traceW: traceFile:}» namespace=debug
DEBUG[06-13|23:24:21] InProc registered service=&{node:0xc042317400} namespace=debug
DEBUG[06-13|23:24:21] InProc registered service=&{stack:0xc042317400} namespace=web3
DEBUG[06-13|23:24:21] InProc registered service=&{b:0xc042179c00} namespace=eth
DEBUG[06-13|23:24:21] InProc registered service=&{b:0xc042179c00} namespace=eth
DEBUG[06-13|23:24:21] InProc registered service=»&{b:0xc042179c00 nonceLock:0xc042078b20}» namespace=eth
DEBUG[06-13|23:24:21] InProc registered service=&{b:0xc042179c00} namespace=txpool
DEBUG[06-13|23:24:21] InProc registered service=&{b:0xc042179c00} namespace=debug
DEBUG[06-13|23:24:21] InProc registered service=&{b:0xc042179c00} namespace=debug
DEBUG[06-13|23:24:21] InProc registered service=&{am:0xc042089ee0} namespace=eth
DEBUG[06-13|23:24:21] InProc registered service=»&{am:0xc042089ee0 nonceLock:0xc042078b20 b:0xc042179c00}» namespace=personal
DEBUG[06-13|23:24:21] InProc registered service=&{e:0xc0422ca460} namespace=eth
DEBUG[06-13|23:24:21] InProc registered service=»&{e:0xc0422ca460 agent:0xc0421ca000}» namespace=eth
DEBUG[06-13|23:24:21] InProc registered service=»&{d:0xc0420cc820 mux:0xc0421766c0 installSyncSubscription:0xc04218e420 uninstallSyncSubscription:0xc04218e480}» namespace=eth
DEBUG[06-13|23:24:21] InProc registered service=&{e:0xc0422ca460} namespace=miner
DEBUG[06-13|23:24:21] InProc registered service=»&{backend:0xc042179c00 mux:0xc0421766c0 quit: chainDb:0xc0420e11e0 events:0xc04228a280 filtersMu:{state:0 sema:0} filters:map[]}» namespace=eth
DEBUG[06-13|23:24:21] InProc registered service=&{eth:0xc0422ca460} namespace=admin
DEBUG[06-13|23:24:21] InProc registered service=&{eth:0xc0422ca460} namespace=debug
DEBUG[06-13|23:24:21] InProc registered service=»&{config:0xc0421e0100 eth:0xc0422ca460}» namespace=debug
DEBUG[06-13|23:24:21] InProc registered service=»&{net:0xc042317900 networkVersion:1}» namespace=net
DEBUG[06-13|23:24:21] HTTP registered namespace=web3
DEBUG[06-13|23:24:21] HTTP registered namespace=eth
DEBUG[06-13|23:24:21] HTTP registered namespace=eth
DEBUG[06-13|23:24:21] HTTP registered namespace=eth
DEBUG[06-13|23:24:21] HTTP registered namespace=eth
DEBUG[06-13|23:24:21] HTTP registered namespace=eth
DEBUG[06-13|23:24:21] HTTP registered namespace=eth
DEBUG[06-13|23:24:21] HTTP registered namespace=eth
DEBUG[06-13|23:24:21] HTTP registered namespace=eth
DEBUG[06-13|23:24:21] HTTP registered namespace=net
INFO [06-13|23:24:21] HTTP endpoint opened url=http://127.0.0.1:8102 cors= vhosts=localhost
INFO [06-13|23:24:21] Transaction pool price threshold updated price=18000000000
INFO [06-13|23:24:21] Etherbase automatically configured address=0x3e747d49be38CC69573a6aEd7631430547b1BDDA
INFO [06-13|23:24:21] Starting mining operation
INFO [06-13|23:24:21] Commit new mining work number=3007 txs=0 uncles=0 elapsed=1.000ms
TRACE[06-13|23:24:21] Requiring new ethash dataset epoch=0
TRACE[06-13|23:24:21] Requiring new future ethash dataset epoch=1
DEBUG[06-13|23:24:21] Loaded old ethash dataset from disk epoch=0
TRACE[06-13|23:24:21] Started ethash search for new nonces miner=0 seed=7038418853576829939
DEBUG[06-13|23:24:21] Loaded old ethash dataset from disk epoch=1
TRACE[06-13|23:24:21] msg=»sending {«jsonrpc»:»2.0″,»id»:1,»method»:»rpc_modules»,»params»:null}»
TRACE[06-13|23:24:21] msg=»<-readResp: response {"jsonrpc":"2.0","id":1,"result":{"admin":"1.0","debug":"1.0","eth":"1.0","miner":"1.0","net":"1.0","personal":"1.0","rpc":"1.0","txpool":"1.0","web3":"1.0"}}" Welcome to the Geth JavaScript console! TRACE[06-13|23:24:21] msg="sending {"jsonrpc":"2.0","id":2,"method":"web3_clientVersion","params":[]}" TRACE[06-13|23:24:21] msg="<-readResp: response {"jsonrpc":"2.0","id":2,"result":"Geth/MyTestNodePc2/v1.8.8-stable-2688dab4/windows-amd64/go1.10.1"}" instance: Geth/MyTestNodePc2/v1.8.8-stable-2688dab4/windows-amd64/go1.10.1 TRACE[06-13|23:24:21] msg="sending {"jsonrpc":"2.0","id":3,"method":"eth_coinbase","params":[]}" TRACE[06-13|23:24:21] msg="<-readResp: response {"jsonrpc":"2.0","id":3,"result":"0x3e747d49be38cc69573a6aed7631430547b1bdda"}" coinbase: 0x3e747d49be38cc69573a6aed7631430547b1bdda TRACE[06-13|23:24:21] msg="sending {"jsonrpc":"2.0","id":4,"method":"eth_blockNumber","params":[]}" TRACE[06-13|23:24:21] msg="<-readResp: response {"jsonrpc":"2.0","id":4,"result":"0xbbe"}" TRACE[06-13|23:24:21] msg="sending {"jsonrpc":"2.0","id":5,"method":"eth_blockNumber","params":[]}" TRACE[06-13|23:24:21] msg="<-readResp: response {"jsonrpc":"2.0","id":5,"result":"0xbbe"}" TRACE[06-13|23:24:21] msg="sending {"jsonrpc":"2.0","id":6,"method":"eth_getBlockByNumber","params":["0xbbe",false]}" TRACE[06-13|23:24:21] msg="<-readResp: response {"jsonrpc":"2.0","id":6,"result":{"difficulty":"0x6aad2","extraData":"0xda83010808846765746888676f312e31302e318777696e646f7773","gasLimit":"0x47e7c4","gasUsed":"0x0","hash":"0x08670f17590cae522dc0127461561336b07ced7529b794f65db1f7d7b08a3cfa","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","miner":"0x3e747d49be38cc69573a6aed7631430547b1bdda","mixHash":"0xd3def595c8fa656f74bd83d1ef277824019ab72fd075e8fa542fb7e294db8b39","nonce":"0x5292fd02d8208a85","number":"0xbbe","parentHash":"0x3a45bfc9289babaa3048688828adc765087ad8c2b8bd3c3f805590c85f6e1292","receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","size":"0x21c","stateRoot":"0x7a8acbc0258c02234d9bc222b0d2734a6d9309a7aaa06d3ded6299905d27e625","timestamp":"0x5b21de3a","totalDifficulty":"0x2fe0866e","transactions":[],"transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","uncles":[]}}" at block: 3006 (Wed, 13 Jun 2018 23:17:14 -04) TRACE[06-13|23:24:21] msg="sending {"jsonrpc":"2.0","id":7,"method":"admin_datadir","params":[]}" TRACE[06-13|23:24:21] msg="<-readResp: response {"jsonrpc":"2.0","id":7,"result":"e:\\geth\\node_data_testnet2"}" datadir: e:gethnode_data_testnet2 TRACE[06-13|23:24:21] msg="sending {"jsonrpc":"2.0","id":8,"method":"rpc_modules","params":null}" TRACE[06-13|23:24:21] msg="<-readResp: response {"jsonrpc":"2.0","id":8,"result":{"admin":"1.0","debug":"1.0","eth":"1.0","miner":"1.0","net":"1.0","personal":"1.0","rpc":"1.0","txpool":"1.0","web3":"1.0"}}" modules: admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0 > DEBUG[06-13|23:24:23] Couldn’t add port mapping proto=tcp extport=30304 intport=30304 interface=»UPnP or NAT-PMP» err=»no UPnP or NAT-PMP router discovered»
TRACE[06-13|23:24:23] Ethash nonce found and reported miner=0 attempts=134258 nonce=7038418853576964197
INFO [06-13|23:24:23] Successfully sealed new block number=3007 hash=a29fc2…ca07da
DEBUG[06-13|23:24:23] Trie cache stats after commit misses=0 unloads=0
INFO [06-13|23:24:23] 🔨 mined potential block number=3007 hash=a29fc2…ca07da
TRACE[06-13|23:24:23] Propagated block hash=a29fc2…ca07da recipients=0 duration=2562047h47m16.854s
DEBUG[06-13|23:24:23] Reinjecting stale transactions count=0
TRACE[06-13|23:24:23] Announced block hash=a29fc2…ca07da recipients=0 duration=2562047h47m16.854s
INFO [06-13|23:24:23] Commit new mining work number=3008 txs=0 uncles=0 elapsed=15.001ms
TRACE[06-13|23:24:23] Started ethash search for new nonces miner=0 seed=766848748592413182
DEBUG[06-13|23:24:24] FS scan times list=0s set=0s diff=0s

no node added.

after adding node manulay by command:

admin.addPeer(«enode://8966b7a85496bd37e61fceb49ca03c1527291d0c21dbf9a3ab68226174704e6c2a18929e748cd802f80bb0a67136950dc1fdc89c2825b4c6e7dcc35c36c51826@[::]:30303»)

it’s working, so it’s not an port or other things issue, —bootnodes not work !

Добавить комментарий