message: [Model] TransactionRecord, using GetColdStakingDebit and GetStakeDelegationDebit methods instead of direct access to the amount cache.
diff: @@ -350,12 +350,12 @@ void TransactionRecord::loadHotOrColdStakeOrContract(const CWallet* wallet, cons
  if (isSpendable) {
  // Wallet delegating balance
  record.type = TransactionRecord::P2CSDelegationSent;
  - record.debit = wtx.nDelegatedDebitCached;
  + record.debit = wtx.GetStakeDelegationDebit();
  record.credit = wtx.GetStakeDelegationCredit();
  } else {
  // Wallet receiving a delegation
  record.type = TransactionRecord::P2CSDelegation;
  - record.debit = wtx.nColdDebitCached;
  + record.debit = wtx.GetColdStakingDebit();
  record.credit = wtx.GetColdStakingCredit();
  }
  } else {
  @@ -363,13 +363,13 @@ void TransactionRecord::loadHotOrColdStakeOrContract(const CWallet* wallet, cons
  if (isSpendable) {
  // Offline wallet receiving an stake due a delegation
  record.type = TransactionRecord::StakeDelegated;
  - record.debit = wtx.nDelegatedDebitCached;
  + record.debit = wtx.GetStakeDelegationDebit();
  record.credit = wtx.GetStakeDelegationCredit();
  } else {
  // Online wallet receiving an stake due a received utxo delegation that won a block.
  record.type = TransactionRecord::StakeHot;
  record.credit = wtx.GetColdStakingCredit();
  - record.debit = wtx.nColdDebitCached;
  + record.debit = wtx.GetColdStakingDebit();
  }
  }
  