mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
getConfirms fix
This commit is contained in:
parent
ed0089e94d
commit
c1e860ff52
1 changed files with 1 additions and 0 deletions
|
@ -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!);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue