novitski / bitcoinj

Automatically exported from code.google.com/p/bitcoinj
Apache License 2.0
0 stars 0 forks source link

Skipping of blocks / block bodies to take into account block timestamp drift #460

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to find possible causes for 
http://code.google.com/p/bitcoin-wallet/issues/detail?id=227

According to https://en.bitcoin.it/wiki/Block_timestamp, block timestamps can 
differ from UTC a lot. It reads like it can go 2 hours + 70 mins (= 190 mins) 
into the future and an undefined amount into the past. Unfortunately, the past 
is what I think matters for the issue quoted above.

When reading into the code, I did not find any adjustment for that fact. I'd 
expect it to happing somewhere along the lines of

Peer.setDownloadParameters or Peer.processHeaders

for the skipping of bodies and

CheckpointManager.getCheckpointBefore

for the skipping of blocks.

Original issue reported on code.google.com by andreas....@gmail.com on 26 Sep 2013 at 12:08

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 6625c9a2cbb0.

Original comment by hearn@google.com on 8 Oct 2013 at 9:53

GoogleCodeExporter commented 9 years ago
This issue was closed by revision d6b4b55e83fa.

Original comment by hearn@google.com on 20 Oct 2013 at 3:28