Updated on 2026-08-14
This commit is contained in:
parent
8013392219
commit
92d3780a82
7 changed files with 150 additions and 55 deletions
|
|
@ -75,9 +75,7 @@ public abstract class CoinData {
|
|||
B.putBoolean("balanceReceived", balanceReceived);
|
||||
B.putString("validationNodeDescription", validationNodeDescription);
|
||||
|
||||
if (sentTransactionsCount != null) {
|
||||
B.putInt("sentTransactionsCount", sentTransactionsCount);
|
||||
}
|
||||
B.putInt("sentTransactionsCount", sentTransactionsCount);
|
||||
} catch (Exception e) {
|
||||
Log.e("Can't save to bundle ", e.getMessage());
|
||||
}
|
||||
|
|
@ -91,8 +89,8 @@ public abstract class CoinData {
|
|||
}
|
||||
|
||||
public static CoinData fromBundle(Blockchain blockchain, Bundle bundle) {
|
||||
CoinEngine engine= CoinEngineFactory.INSTANCE.create(blockchain);
|
||||
if( engine==null ) return null;
|
||||
CoinEngine engine = CoinEngineFactory.INSTANCE.create(blockchain);
|
||||
if (engine == null) return null;
|
||||
CoinData result = engine.createCoinData();
|
||||
result.loadFromBundle(bundle);
|
||||
return result;
|
||||
|
|
@ -151,12 +149,12 @@ public abstract class CoinData {
|
|||
setIsBalanceEqual(false);
|
||||
setBalanceReceived(false);
|
||||
setValidationNodeDescription("");
|
||||
minFee=null;
|
||||
maxFee=null;
|
||||
normalFee=null;
|
||||
rate=0f;
|
||||
rateAlter=0f;
|
||||
sentTransactionsCount = null;
|
||||
minFee = null;
|
||||
maxFee = null;
|
||||
normalFee = null;
|
||||
rate = 0f;
|
||||
rateAlter = 0f;
|
||||
sentTransactionsCount = 0;
|
||||
}
|
||||
|
||||
// private AtomicInteger failedBalanceRequestCounter;
|
||||
|
|
@ -201,13 +199,13 @@ public abstract class CoinData {
|
|||
public CoinEngine.Amount normalFee = null;
|
||||
public CoinEngine.Amount maxFee = null;
|
||||
|
||||
private Integer sentTransactionsCount = null;
|
||||
private int sentTransactionsCount = 0;
|
||||
|
||||
public Integer getSentTransactionsCount() {
|
||||
public int getSentTransactionsCount() {
|
||||
return sentTransactionsCount;
|
||||
}
|
||||
|
||||
public void setSentTransactionsCount(Integer sentTransactionsCount) {
|
||||
this.sentTransactionsCount = sentTransactionsCount;
|
||||
public void incSentTransactionsCount() {
|
||||
sentTransactionsCount++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue