You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It produces the wrong hash for block 100: 7644500d651d8db203d8dfdb7053da2cffe8dffcb9a1bc115da63e047dfb7c17
The reason is that it tries to serialize a prefork Bitcoin block in the BTG block header manner. It will produce wrong hash and thus can't pass the target check as well.
Note that explorer.bitcoingold.org also has the same problem (so don't see it as the ground truth).
Solution: check the block height before doing serialization just like how BTG Core handles it.
Test vector: block 100
Hash: 000000007bc154e0fa7ea32218a72fe2c1bb9f86cf8c9ebf9a715ed27fdb229a
Height: 100
Hex:
It produces the wrong hash for block 100:
7644500d651d8db203d8dfdb7053da2cffe8dffcb9a1bc115da63e047dfb7c17
The reason is that it tries to serialize a prefork Bitcoin block in the BTG block header manner. It will produce wrong hash and thus can't pass the target check as well.
Note that explorer.bitcoingold.org also has the same problem (so don't see it as the ground truth).
Solution: check the block height before doing serialization just like how BTG Core handles it.
Test vector: block 100
Hash:
000000007bc154e0fa7ea32218a72fe2c1bb9f86cf8c9ebf9a715ed27fdb229a
Height:
100
Hex:
The text was updated successfully, but these errors were encountered: