1

I can see http://tbtc.blockr.io/ time of block are showing "right now". When I click "all blocks" the time is two hours ahead of "now". I don't think it's blockr time zone problem, because

1) when I submit transaction, it will show correct time

2) my bitcoinj wallet also showing future time against

System.currentTimeMillis();

which is UTC time. (I use ntp and it happens on two different computers)

Anybody have an idea why this is happening?

enter image description here

2
  • It might be that any times in the future get converted to right now. It might be good to put a screenshot, though, so that you can still see the issue even if the problem gets fixed.
    – morsecoder
    Apr 3, 2016 at 23:21
  • well the screenshot shows last 11 blocks, considering they go faster in testnet, the last one should be half hour old Apr 4, 2016 at 9:30

1 Answer 1

1

The timestamps on those blocks are indeed quite varied so I think that blockr.io is not using the timestamp field in the block as sole timing information, instead using something like min(relayed time, block timestamp) so that blocks that have a future timestamp are shown as "right now" because they use the relayed time. They probably are not only using the relayed time since in that case they'd be misdating all blocks after downtime.

TL;DR: do not trust the timestamp field in the block, it can be manipulated.

2
  • the question is more why there are future timestamps in test net ? Are you sure that even main net does not check the block time ? Apr 11, 2016 at 13:07
  • Yes, it is not possible to synchronize clocks in a distributed system, so Bitcoin limits the checking to a rather large range of [-2 hours:+2 hours], which is what you're observing. From an observer the cases of the block creator putting a timestamp in the future and the observer's clock lagging is indistinguishable.
    – cdecker
    Apr 11, 2016 at 13:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.