Add tg.Add to exported wallet methods
Created by: ChrisSchinnerl
Exported methods of top-level modules that are called by the API directly should always call tg.Add
. Especially if those methods access closable resources.
e.g. wallet.ConfirmedBalance
can currently be called during a shutdown which results in a error since ConfirmedBalance
calls syncDB
on a closed database.