horizontalsystems / bitcoin-kit-android

Comprehensive Bitcoin development library for Android, implemented on Kotlin. SPV wallet implementation for Bitcoin, Bitcoin Cash, Litecoin and Dash blockchains. Fully compliant with existing standards and BIPs.

Home Page:https://unstoppable.money

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Potential issue with BlockValidatorHelper::getPrevious() when there is a fork

abdrasulov opened this issue · comments

If there is a fork in the chain, the method BlockValidatorHelper::getPrevious() may return incorrect block. The reason is that the block is retrieved by its height. And when there is a fork there maybe 2 blocks with the same height.