Page MenuHomePhabricator

Save watch only key timestamps when reimporting keys
ClosedPublic

Authored by deadalnix on Jan 17 2018, 22:45.

Details

Summary

Previously if an existing watch only key was reimported with a new timestamp,
the new timestamp would not be saved in the key metadata, and would not be used
to update the wallet nTimeFirstKey value (which could cause rescanning to start
at the wrong point and miss transactions).

Issue was pointed out by Jonas Schnelli <dev@jonasschnelli.ch> in
https://github.com/bitcoin/bitcoin/pull/9108#issuecomment-279715550

Backport core's PR9818 and PR11483

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable