I ran the following commands to get ethereumj.starter
code and run it.
%> git clone https://github.com/ether-camp/ethereumj.starter
%> cd ethereumj.starter
%> ./gradlew run
From the log file and console output, I could see that the node started up, connected to peers and was also syncing. However, in another terminal window, the output of the following command was always 0
, as shown below.
%> curl -w "\n" -X GET http://localhost:8080/bestBlock
0
This was despite the log file showing transactions being received, and also having logged messages like the following, with some high block number listed as best block
....
Peer V63: [ 267c54b3, NODE_RETRIEVING, ping 95 ms, difficulty 270944163663211043882, best block 3723188 ]: (idle 3s of 20s) Geth/v1.6.0-stable-facc47cb/windows-amd64/go1.8.1 Nodes/sec: 3681.86, miss: 0.00
Am I missing something here? Shouldn't the best block number reported by the curl
command be increasing with time as the local node gets sync'ed?