Skip to content

Instantly share code, notes, and snippets.

@obscuren

obscuren/bug.md Secret

Last active February 28, 2021 12:33
Show Gist options
  • Save obscuren/87ca82e1193548330a39 to your computer and use it in GitHub Desktop.
Save obscuren/87ca82e1193548330a39 to your computer and use it in GitHub Desktop.
  +--x1--x2--x3   IN_DB
 /
o
 \
  +--y1--y2--y3  PROCESSING

y2 & x2 contains EVM exec with BLOCKHASH(N - 1). Returned hash in both y and x chain refer to x1 hash instead of respective on chain parent.

This gives the following stack result:

Bugged X & Y

0: HASH_OF_X1

While it should have been

Fixed X

0: HASH_OF_X1

Fixed Y

0: HASH_OF_Y1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment