Updated on 2026-08-14

This commit is contained in:
Tangem 2019-08-08 14:08:10 +03:00
parent 0193926e46
commit 9f9c5db55e
14 changed files with 581 additions and 476 deletions

View file

@ -525,7 +525,7 @@ public class DucatusEngine extends BtcEngine {
String txHash = new String(BTCUtils.reverse(CryptoUtil.doubleSha256(BTCUtils.fromHex(raw)))); //TODO: check
for (BtcData.UnspentTransaction tx : coinData.getUnspentTransactions()) {
if (tx.txID.equals(txHash))
tx.Raw = raw;
tx.script = raw;
}
} catch (Exception e) {
e.printStackTrace();
@ -548,8 +548,8 @@ public class DucatusEngine extends BtcEngine {
for (InsightResponse utxo : utxoList) {
BtcData.UnspentTransaction trUnspent = new BtcData.UnspentTransaction();
trUnspent.txID = utxo.getTxid();
trUnspent.Amount = utxo.getSatoshis();
trUnspent.Height = utxo.getHeight();
trUnspent.amount = utxo.getSatoshis();
trUnspent.outputN = utxo.getHeight();
coinData.getUnspentTransactions().add(trUnspent);
}