threefoldtecharchive / rivine

Blockchain technology for creating custom chains.
Apache License 2.0
22 stars 12 forks source link

Unencrypted wallets block api registration on startup #522

Open LeeSmet opened 5 years ago

LeeSmet commented 5 years ago

If a plain wallet is used (i.e. unencrypted) it is loaded immediatly when the daemon starts. This load however does a rescan of the cs, which blocks until its done. As a result, daemons currently running against testnet or standard net are still blocked for several minutes after starting

GlenDC commented 5 years ago

This could be resolved by using a db for the wallet, just as Sia does. Making a rescan at startup no longer required, as you could just pick up where you left off.

GlenDC commented 4 years ago

Why is this an issue by the way @LeeSmet, does it prevent another automated action from happening?