gui: Avoid wallet tryGetBalances calls before TransactionChanged or BlockTip notifications
gui: Avoid wallet tryGetBalances calls before TransactionChanged or BlockTip notifications

interfaces::Wallet::tryGetBalances was recently updated in
https://github.com/bitcoin/bitcoin/pull/18160 to avoid computing balances
internally, but this not efficient as it could be with #10102 because
tryGetBalances is an interprocess call.

Implementing the TransactionChanged / BlockTip check outside of tryGetBalances
also allows tryGetBalances to be simplified in next commit 'Revert "gui: Avoid
Wallet::GetBalance in WalletModel::pollBalanceChanged"'.

domob1812/bitcoin,andreaskern/bitcoin,domob1812/bitcoin,namecoin/namecoin-core,n1bor/bitcoin,bitcoinsSG/bitcoin,dscotese/bitcoin,MarcoFalke/bitcoin,midnightmagic/bitcoin,AkioNak/bitcoin,jamesob/bitcoin,jambolo/bitcoin,yenliangl/bitcoin,jlopp/statoshi,jonasschnelli/bitcoin,GroestlCoin/GroestlCoin,tecnovert/particl-core,AkioNak/bitcoin,bitcoin/bitcoin,namecoin/namecoin-core,alecalve/bitcoin,apoelstra/bitcoin,achow101/bitcoin,MeshCollider/bitcoin,prusnak/bitcoin,andreaskern/bitcoin,sipsorcery/bitcoin,JeremyRubin/bitcoin,GroestlCoin/GroestlCoin,lateminer/bitcoin,MarcoFalke/bitcoin,rnicoll/dogecoin,anditto/bitcoin,bitcoinsSG/bitcoin,lateminer/bitcoin,rnicoll/bitcoin,instagibbs/bitcoin,cdecker/bitcoin,midnightmagic/bitcoin,ajtowns/bitcoin,domob1812/bitcoin,namecoin/namecore,MeshCollider/bitcoin,achow101/bitcoin,ElementsProject/elements,fanquake/bitcoin,sstone/bitcoin,jamesob/bitcoin,anditto/bitcoin,pataquets/namecoin-core,bitcoin/bitcoin,ElementsProject/elements,ajtowns/bitcoin,sstone/bitcoin,fanquake/bitcoin,n1bor/bitcoin,jlopp/statoshi,cdecker/bitcoin,alecalve/bitcoin,Xekyo/bitcoin,mruddy/bitcoin,mruddy/bitcoin,GroestlCoin/bitcoin,jnewbery/bitcoin,ajtowns/bitcoin,alecalve/bitcoin,ajtowns/bitcoin,MeshCollider/bitcoin,yenliangl/bitcoin,ajtowns/bitcoin,EthanHeilman/bitcoin,litecoin-project/litecoin,qtumproject/qtum,practicalswift/bitcoin,dscotese/bitcoin,bitcoinknots/bitcoin,qtumproject/qtum,pataquets/namecoin-core,rnicoll/bitcoin,rnicoll/dogecoin,litecoin-project/litecoin,ElementsProject/elements,mruddy/bitcoin,domob1812/bitcoin,rnicoll/dogecoin,bitcoinsSG/bitcoin,jlopp/statoshi,cdecker/bitcoin,bitcoin/bitcoin,pataquets/namecoin-core,AkioNak/bitcoin,MarcoFalke/bitcoin,Xekyo/bitcoin,instagibbs/bitcoin,dscotese/bitcoin,GroestlCoin/bitcoin,qtumproject/qtum,bitcoinknots/bitcoin,dscotese/bitcoin,rnicoll/dogecoin,bitcoinsSG/bitcoin,dscotese/bitcoin,MeshCollider/bitcoin,prusnak/bitcoin,kallewoof/bitcoin,practicalswift/bitcoin,rnicoll/bitcoin,fujicoin/fujicoin,lateminer/bitcoin,jlopp/statoshi,JeremyRubin/bitcoin,namecoin/namecore,pataquets/namecoin-core,Sjors/bitcoin,bitcoin/bitcoin,practicalswift/bitcoin,andreaskern/bitcoin,cdecker/bitcoin,mruddy/bitcoin,achow101/bitcoin,mm-s/bitcoin,domob1812/namecore,fujicoin/fujicoin,ElementsProject/elements,pstratem/bitcoin,sipsorcery/bitcoin,achow101/bitcoin,namecoin/namecore,AkioNak/bitcoin,kallewoof/bitcoin,domob1812/namecore,domob1812/namecore,n1bor/bitcoin,fujicoin/fujicoin,MarcoFalke/bitcoin,pstratem/bitcoin,bitcoinknots/bitcoin,jnewbery/bitcoin,namecoin/namecoin-core,sipsorcery/bitcoin,MeshCollider/bitcoin,qtumproject/qtum,fujicoin/fujicoin,instagibbs/bitcoin,JeremyRubin/bitcoin,domob1812/namecore,n1bor/bitcoin,apoelstra/bitcoin,namecoin/namecore,sstone/bitcoin,jambolo/bitcoin,particl/particl-core,alecalve/bitcoin,mm-s/bitcoin,particl/particl-core,instagibbs/bitcoin,bitcoinsSG/bitcoin,sipsorcery/bitcoin,fanquake/bitcoin,EthanHeilman/bitcoin,jnewbery/bitcoin,tecnovert/particl-core,fanquake/bitcoin,GroestlCoin/bitcoin,GroestlCoin/bitcoin,jonasschnelli/bitcoin,fanquake/bitcoin,rnicoll/bitcoin,jambolo/bitcoin,rnicoll/bitcoin,domob1812/bitcoin,GroestlCoin/GroestlCoin,litecoin-project/litecoin,achow101/bitcoin,mm-s/bitcoin,Sjors/bitcoin,fujicoin/fujicoin,cdecker/bitcoin,andreaskern/bitcoin,pstratem/bitcoin,lateminer/bitcoin,jnewbery/bitcoin,JeremyRubin/bitcoin,midnightmagic/bitcoin,sipsorcery/bitcoin,jambolo/bitcoin,sstone/bitcoin,midnightmagic/bitcoin,litecoin-project/litecoin,JeremyRubin/bitcoin,namecoin/namecoin-core,kallewoof/bitcoin,ajtowns/bitcoin,pstratem/bitcoin,jamesob/bitcoin,Xekyo/bitcoin,GroestlCoin/GroestlCoin,mruddy/bitcoin,jonasschnelli/bitcoin,namecoin/namecoin-core,alecalve/bitcoin,sstone/bitcoin,practicalswift/bitcoin,n1bor/bitcoin,Xekyo/bitcoin,EthanHeilman/bitcoin,tecnovert/particl-core,jlopp/statoshi,rnicoll/bitcoin,MarcoFalke/bitcoin,practicalswift/bitcoin,apoelstra/bitcoin,pstratem/bitcoin,jambolo/bitcoin,anditto/bitcoin,yenliangl/bitcoin,apoelstra/bitcoin,jamesob/bitcoin,namecoin/namecore,lateminer/bitcoin,Xekyo/bitcoin,EthanHeilman/bitcoin,apoelstra/bitcoin,Sjors/bitcoin,namecoin/namecoin-core,prusnak/bitcoin,EthanHeilman/bitcoin,JeremyRubin/bitcoin,kallewoof/bitcoin,pataquets/namecoin-core,domob1812/namecore,bitcoinsSG/bitcoin,yenliangl/bitcoin,litecoin-project/litecoin,MeshCollider/bitcoin,AkioNak/bitcoin,bitcoinknots/bitcoin,rnicoll/dogecoin,MarcoFalke/bitcoin,fujicoin/fujicoin,domob1812/namecore,yenliangl/bitcoin,tecnovert/particl-core,anditto/bitcoin,prusnak/bitcoin,lateminer/bitcoin,tecnovert/particl-core,pataquets/namecoin-core,yenliangl/bitcoin,jlopp/statoshi,anditto/bitcoin,jonasschnelli/bitcoin,andreaskern/bitcoin,midnightmagic/bitcoin,jamesob/bitcoin,pstratem/bitcoin,Sjors/bitcoin,qtumproject/qtum,instagibbs/bitcoin,sstone/bitcoin,sipsorcery/bitcoin,bitcoin/bitcoin,domob1812/bitcoin,GroestlCoin/GroestlCoin,n1bor/bitcoin,jnewbery/bitcoin,anditto/bitcoin,andreaskern/bitcoin,Xekyo/bitcoin,jamesob/bitcoin,ElementsProject/elements,litecoin-project/litecoin,kallewoof/bitcoin,particl/particl-core,particl/particl-core,prusnak/bitcoin,kallewoof/bitcoin,tecnovert/particl-core,mm-s/bitcoin,GroestlCoin/bitcoin,achow101/bitcoin,particl/particl-core,midnightmagic/bitcoin,alecalve/bitcoin,EthanHeilman/bitcoin,mm-s/bitcoin,practicalswift/bitcoin,Sjors/bitcoin,mruddy/bitcoin,qtumproject/qtum,qtumproject/qtum,GroestlCoin/bitcoin,bitcoin/bitcoin,particl/particl-core,ElementsProject/elements,jonasschnelli/bitcoin,bitcoinknots/bitcoin,fanquake/bitcoin,namecoin/namecore,dscotese/bitcoin,apoelstra/bitcoin,jambolo/bitcoin,instagibbs/bitcoin,GroestlCoin/GroestlCoin,AkioNak/bitcoin,cdecker/bitcoin,mm-s/bitcoin,prusnak/bitcoin