Page MenuHomePhabricator

Fix importwallet edge case rescan bug
ClosedPublic

Authored by deadalnix on Jan 13 2018, 02:00.

Details

Summary

Start importwallet rescans at the first block with timestamp greater or equal
to the wallet birthday instead of the last block with timestamp less or equal.
This fixes an edge case bug where importwallet could fail to start the rescan
early enough if there are blocks with decreasing timestamps or multiple blocks
with the same timestamp.

Backport of core's PR10410

Test Plan
make check
./test/functional/test_runner.py

Diff Detail

Repository
rABC Bitcoin ABC
Branch
importwalletrescan
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 1594
Build 1594: arc lint + arc unit