getConfirms fix

This commit is contained in:
julian 2023-01-13 16:45:20 -06:00
parent ed0089e94d
commit c1e860ff52

View file

@ -31,6 +31,7 @@ class UTXO {
late int? blockTime;
int getConfirmations(int currentChainHeight) {
if (blockTime == null || blockHash == null) return 0;
if (blockHeight == null) return 0;
return max(0, currentChainHeight - blockHeight!);
}