mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-09-23 22:44:59 -04:00
fix npe on startup by caching non-pool txs if necessary (#1957)
This commit is contained in:
parent
9aca42578f
commit
deb92b71b2
1 changed files with 1 additions and 0 deletions
|
@ -2157,6 +2157,7 @@ public class XmrWalletService extends XmrWalletBase {
|
|||
BigInteger unlockedBalance = wallet.getUnlockedBalance();
|
||||
cachedSubaddresses = wallet.getSubaddresses(0);
|
||||
cachedOutputs = wallet.getOutputs();
|
||||
if (cachedTxs == null) cachedTxs = wallet.getTxs(new MoneroTxQuery().setIncludeOutputs(true).setInTxPool(false));
|
||||
|
||||
// cache and notify changes
|
||||
if (cachedHeight == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue