Skip to content

Commit

Permalink
Fix the case when backing returns NULL;
Browse files Browse the repository at this point in the history
Remove the inconsistency beetween Colu server and WAPI server when a transaction is expired
  • Loading branch information
itserg committed Jan 2, 2018
1 parent e0f7aab commit 1e89952
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ private List<TransactionSummary> getTransactionSummaries() {

if (extendedInfo == null) {
Log.d(TAG, "Extended info for hash " + hash + " not found !");
continue;
}

// is it a BTC transaction or an asset transaction ?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,9 @@ public NetworkParameters getNetwork() {
public static final int COLU_MAX_DUST_OUTPUT_SIZE_MAINNET = 6000;

private boolean isColuTransaction(Transaction tx) {
if (tx == null) {
return false;
}
for(int i = 0 ; i < tx.outputs.length;i++) {
TransactionOutput curOutput = tx.outputs[i];
byte[] scriptBytes = curOutput.script.getScriptBytes();
Expand Down

0 comments on commit 1e89952

Please sign in to comment.