Questions tagged [time-warp-attack]

9 questions
21
votes
1 answer

Gaming the "off-by-one" bug (difficulty re-target based on 2015 instead of 2016 block time span)?

In this forum post from Gavin Andresen he writes: Second: I've written 'discourage blocks' infrastructure: https://github.com/gavinandresen/bitcoin-git/tree/discourageblocks (code reviews welcome) ... which should give us the ability to…
15
votes
1 answer

What is the "zeitgeist attack"? Does it affect all blockchain technologies?

What exactly is this attack? It would be nice to have a good explanation of how it works and which chains can be effected by this. Does it apply to the bitcoin main chain, or only the newer and smaller alternative chains?
MaxSan
  • 3,855
  • 2
  • 21
  • 30
10
votes
1 answer

What is time warp attack and how does it work in general?

I am trying to understand the recent time warp attack on verge but since the attack is universal across all POW block chain i figure I could also ask here since people here are .. more knowledgeable. I don't understand the detail of code. But i…
Zhen Liu
  • 203
  • 1
  • 5
9
votes
1 answer

What prevents similar time-warp attacks in Bitcoin as happened to Verge?

Right now (may 2018), Verge (an altcoin with proof of work) was attacked by time-warp attack. More can be read here https://blog.theabacus.io/the-verge-hack-explained-7942f63a3017 What exactly prevents from similar attack to happen to Bitcoin?…
Karel Bílek
  • 2,655
  • 3
  • 24
  • 45
8
votes
1 answer

Where exactly is the "off-by-one" difficulty bug?

I read through How is difficulty calculated? and want to understand where the "off-by-one" bug is in calculating difficulty. Here is a Matlab snipet I wrote to calculate difficulty. What are the correct block step intervals that I should use? Note:…
5
votes
1 answer

Was the time warp attack the only reason it was not safe to compare chains by length?

One of the weaknesses of bitcoin listed on that wiki is that it was once vulnerable to the time warp attack. This attack lets a miner with >50% of the hash power to solve many more blocks in a short amount of time, essentially gaining a higher than…
morsecoder
  • 14,008
  • 2
  • 42
  • 92
5
votes
2 answers

How could a time warp attack be prevented?

jarpian explains what a time warp attack (AKA zeitgeist attack) is: This is a 51% attack where the attacker sets the block timestamps artificially to lower the difficulty, allowing him to profit more coins than his hash rate would warrant. It works…
Nick ODell
  • 29,184
  • 11
  • 69
  • 129
4
votes
1 answer

How does a time warp attack work?

I more or less understand how an attacker (with less than 50%+1 of the hashing power) can artificially lower the block difficulty by messing with timestamps. I also understand how such an attacker could, on his own chain, at one point "ramp up" the…
Cedric Martin
  • 316
  • 2
  • 3
  • 9
1
vote
0 answers

Is it feasible to prove the density of found hashes and could that be valuable?

Background When a miner claims a certain hash power and timestamps a block they solved, they are making a claim that a certain amount of time has passed since they received the previous block. Intentional shenanigans ("time-warp-attack") may exist…
Dave Scotese
  • 793
  • 5
  • 19