Improve Bitcoin Core importpubkey
behavior on ION Bitcoin initialization
#277
Labels
improvement
Improvement to an existing feature that does not require a fork
Currently on fresh setup of ION Bitcoin service initialization, the
importpubkey
RPC is made to scan the entire blockchain from genesis for transactions associated with the wallet address specified. There are a few problems with this:getwalletinfo
to obtain the scanning status asynchronously.There might be an opportunity to improve this behavior. Upon reviewing the code, it appears that this call is important because all writes (by both ION Core &
LockMonitor
) will subsequently depend onlistunspent
RPC to get the unspent coins to spend. But maybe we don't have to block initialization onimportpubkey
and let it occur in the background asynchronously. Two possible choices for writes:listunspent
occurs by callinggetwalletinfo
to make sure scanning is complete.The text was updated successfully, but these errors were encountered: