Updated on 2026-08-14
This commit is contained in:
parent
2550dff2f4
commit
69a01a632b
6 changed files with 28 additions and 22 deletions
|
|
@ -42,7 +42,7 @@ public class BalanceValidator {
|
|||
firstLine = "Verification failed";
|
||||
secondLine = "";
|
||||
|
||||
if (card.getBlockchain() == Blockchain.Bitcoin) {
|
||||
if (card.getBlockchain() == Blockchain.Bitcoin || card.getBlockchain() == Blockchain.BitcoinTestNet) {
|
||||
|
||||
if (((card.getOfflineBalance() == null) && !card.isBalanceReceived()) || (!card.isBalanceReceived() && (card.getRemainingSignatures() != card.getMaxSignatures()))) {
|
||||
score = 0;
|
||||
|
|
@ -61,8 +61,8 @@ public class BalanceValidator {
|
|||
|
||||
if (card.getBalanceUnconfirmed() != 0) {
|
||||
score = 0;
|
||||
firstLine = "Unguaranted balance";
|
||||
secondLine = "Loading in progress. Wait for full confirmation in blockchain. ";
|
||||
firstLine = "Transaction in progress";
|
||||
secondLine = "Wait for full confirmation in blockchain. ";
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,10 +27,6 @@ import java.util.Random;
|
|||
|
||||
import static com.tangem.util.FormatUtil.stringToBigDecimal;
|
||||
|
||||
/**
|
||||
* Created by Ilia on 15.02.2018.
|
||||
*/
|
||||
|
||||
public class BtcEngine extends CoinEngine {
|
||||
|
||||
private static String[] getBitcoinServiceHosts() {
|
||||
|
|
|
|||
|
|
@ -1376,7 +1376,7 @@ public class TangemCard {
|
|||
return balanceReceived;
|
||||
}
|
||||
|
||||
private boolean balanceReceived;
|
||||
private boolean balanceReceived = false;
|
||||
|
||||
public void setBalanceReceived(boolean value) {
|
||||
balanceReceived = value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue