txRowStatusExplanation function

String txRowStatusExplanation(
  1. WalletLocalizations l10n,
  2. TxSummary tx
)

The explanation REFINED by the delivery reading, the sibling of txRowStatusLabel: the Pending sentence affirms "sent to the Zcash network", which is FALSE for a transaction the wallet is still retrying (no endpoint has taken it yet) and for one it is holding — those two get their own honest sentences; everything else falls through. An EXPIRED attempt the wallet will send again (S7 C1) says so, and says not to.

Implementation

String txRowStatusExplanation(WalletLocalizations l10n, TxSummary tx) =>
    switch (tx.delivery) {
      DeliveryState.retryPending =>
        tx.status is TxStatus_Expired
            ? l10n.walletTxExplainRetryingExpired
            : l10n.walletTxExplainRetrying,
      DeliveryState.persisted => l10n.walletTxExplainSaved,
      DeliveryState.accepted ||
      DeliveryState.confirmed ||
      DeliveryState.unknown ||
      null => txStatusExplanation(l10n, tx.status),
    };