Full node is on 30303 port. Light node is on 30304 port. The log is below.
I started up the full node, made some transactions and then started up the light node.
Full node is run like this:
[root .eth]# cat run.sh
#!/usr/bin/env bash
geth --datadir /var/.eth/pn \
--syncmode 'full' \
--networkid 4242 \
--verbosity 5 \
--rpc --rpcapi db,eth,net,web3,personal,miner,admin \
--rpcport 8666 --rpcaddr "0.0.0.0" --rpccorsdomain '*' \
--nodiscover \
--lightserv 20 \
--lightpeers 10 \
--mine \
> log-fullnode.log 2>&1 &
# --bootnodes 'enode://b82c69a13668b83c561731d2b7526ac2619b4c445f321937eee778093dbe9c572709df70f0bcd59a9744eee6dd7b1590c0a365e8f0600bd40dc6888a68bfd6fc@127.0.0.1:30310' \
Light node like this:
[root .eth]# cat run-light.sh
#!/usr/bin/env bash
geth --datadir /var/.eth/pn-light \
--syncmode 'light' \
--port=30304 \
--networkid 4242 \
--verbosity 9 \
--nodiscover \
--rpc --rpcapi db,eth,net,web3,personal,miner,admin \
--rpcport 8546 --rpcaddr "0.0.0.0" --rpccorsdomain '*' \
> log-lightnode.log 2>&1 &
# --bootnodesv5 'enode://b82c69a13668b83c561731d2b7526ac2619b4c445f321937eee778093dbe9c572709df70f0bcd59a9744eee6dd7b1590c0a365e8f0600bd40dc6888a68bfd6fc@127.0.0.1:30310' \
# --v5disc \
Genesis is here:
[root .eth]# cat genesis_poa.json
{
"config": {
"chainId": 42,
"homesteadBlock": 1,
"eip150Block": 2,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 3,
"eip158Block": 3,
"byzantiumBlock": 4,
"clique": {
"period": 0,
"epoch": 30000
}
},
"nonce": "0x0",
"timestamp": "0x5a00bccf",
"extraData": "0x000000000000000000000000000000000000000000000000000000000000000055d40a83b8445c004df5964ce4a0e261b599c01a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0x47b760",
"difficulty": "0x1",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000",
"alloc": {
"55d40a83b8445c004df5964ce4a0e261b599c01a": {
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
},
"589724c5abf2bce219726477cf0a60fa09321380": {
"balance": "0x100000000000000000000000000000000000000000000000000000000000000"
}
},
"number": "0x0",
"gasUsed": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
What might be the problem?