bisq-network/bitcoinj

Rebase to upstream v0.16.3

alvasw opened this issue · 1 comments

The Bisq wallet is built on top BitcoinJ, and BitcoinJ stored the total chainwork in a 12-byte field. Unfortunately, the 12-byte field was exhausted and caused BitcoinJ to fail processing blocks above chain height 849,137. The BitcoinJ developers converted the field to an unsigned 12-byte field as a hotfix 1 and we cherry-pick that change into our fork.

Later the BitcoinJ developers released a proper fix in v0.16.3 2, but our fork is based on v0.15.10. I migrated our fork to v0.16.3 3. We can't use the migrated library yet because Bisq uses removed APIs. I'm working on it.

Footnotes

  1. StoredBlock: use Utils.bigIntegerToBytes to convert chainWork (Backport)

  2. Version 0.16.3 - Release Notes

  3. https://github.com/alvasw/bitcoinj/tree/bisq_0.16.3

The following commits were dropped during the rebase: