poolgold / coinbin

Javascript Bitcoin Wallet. Supports Multisig, Stealth, HD, Time Locked Addresses, RBF and more!
https://btgwallet.online
MIT License
11 stars 28 forks source link

Incorrect inputs' transaction hashes handling #5

Open lnovy opened 6 years ago

lnovy commented 6 years ago

TXIDs of input transactions are loaded from API in an incorrect byte order.

ghost commented 6 years ago

utxo txid's are in reverse order in case of https://coinb.in/api/, whereas https://explorer.bitcoingold.org they are not. so ,
@line 959 of coinbin.js

var txid = ((tx).match(/.{1,2}/g).reverse()).join("")+''; should be replaced by var txid = tx;

lnovy commented 6 years ago

6 Please test.