doublethinkco / cpp-ethereum-cross

Scripts for cross-building cpp-ethereum (C++ Ethereum client)
http://doublethink.co/
Apache License 2.0
27 stars 11 forks source link

ODROID-C1+ - Timestamp issue #83

Open bobsummerwill opened 8 years ago

bobsummerwill commented 8 years ago

See https://www.reddit.com/r/ethereum/comments/4k53vx/any_parity_armv7h_builds_available_anywhere/.

Thanks. I extracted the crosseth-armhf-v1.2.4.tgz file in a folder and use LD_LIBRARY_PATH= ./eth to run it. However it complains with all my peers that the timestamp is in the past.

"!P! 21:10:29.600|p2p Invalid packet (timestamp in the past) from : 20803"

My ODROID has its time synced via NTP and the timezone set to the right location. Not sure what is wrong here.

timjp87 commented 8 years ago

Hi,

I'm author of the mentioned reddit post. I'm happy to try any techniques to debug this. I'm familiar with debugging using strace/ltrace and gdb, but I think that won't be of much help here.

bobsummerwill commented 8 years ago

Hey @timjp87!

Many thanks for the offer :-)

Here is the line of code in question: https://github.com/ethereum/libweb3core/blob/develop/libp2p/NodeTable.cpp#L405

and https://github.com/ethereum/libweb3core/blob/develop/libp2p/NodeTable.h#L294

So maybe some printf() debugging would be what is required? Just printing out the values in addition to just the error message, and trying to work out why isExpired() is firing.

Good luck! Hopefully it is obvious enough. I'm not familiar with that code myself either, but @subtly will be.