Enable wallet key imports without rescan in pruned mode.
commit77c60724733a98af5248fb95625046a5a3f82dc3
authorGregory Maxwell <greg@xiph.org>
Mon, 7 Sep 2015 01:28:32 +0000 (7 01:28 +0000)
committerGregory Maxwell <greg@xiph.org>
Mon, 7 Sep 2015 01:28:32 +0000 (7 01:28 +0000)
tree23f819c8ac6eab24266e72edc4767c2af836630f
parent536207f3167daad1fa3d60a1de7d9cb55db28ac9
Enable wallet key imports without rescan in pruned mode.

Complete rescan is incompatible with pruning, but rescan is optional on
 our wallet key import RPCs.  Import on use is very useful in some common
 situations in conjunction with pruning, e.g. merchant payment tracking.

This reenables importprivkey/importaddress/importpubkey when rescan
 is not used.

In the future we should consider changing the rescan argument to allow depth
 or date to allow limited rescanning when compatible with the retained
 block depth.
src/wallet/rpcdump.cpp