message: [Wallet] Fix staking balance calculation
  exclude delegated balance and locked coins (if any)
diff: @@ -1731,7 +1731,16 @@ CAmount CWallet::GetColdStakingBalance() const
  CAmount CWallet::GetStakingBalance(const bool fIncludeColdStaking) const
  {
  - return GetBalance() + (fIncludeColdStaking ? GetColdStakingBalance() : 0);
  + return std::max(CAmount(0), loopTxsBalance(
  + [fIncludeColdStaking](const uint256& id, const CWalletTx& pcoin, CAmount& nTotal) {
  + if (pcoin.IsTrusted() && pcoin.GetDepthInMainChain() >= Params().GetConsensus().nStakeMinDepth) {
  + nTotal += pcoin.GetAvailableCredit(); // available coins
  + nTotal -= pcoin.GetStakeDelegationCredit(); // minus delegated coins, if any
  + nTotal -= pcoin.GetLockedCredit(); // minus locked coins, if any
  + if (fIncludeColdStaking)
  + nTotal += pcoin.GetColdStakingCredit(); // plus cold coins, if any and if requested
  + }
  + }));
  }
  CAmount CWallet::GetDelegatedBalance() const
  