0ae791af1e
The methodname: blockHeightAtTime() makes the reader think about the actual height of the chain at that time. Returning that value until the timestamp of the next block is reached. Now the method actally returns that number. The code does not do any work to account for blocks going backwards in time compared to the block before.