Closed isocolsky closed 9 years ago
Ok, I'm catching the InvalidArgument
error. It works but it is not perfect because of this code in Bitcore.Transaction
:
if (!txId || !JSUtil.isHexaString(txId) || txId.length > 64) {
// TODO: Use the errors library
throw new Error('Invalid TXID in object', data);
}
var outputIndex = _.isUndefined(data.vout) ? data.outputIndex : data.vout;
if (!_.isNumber(outputIndex)) {
throw new Error('Invalid outputIndex, received ' + outputIndex);
}
@isocolsky i'll open an issue to fix those error types. https://github.com/bitpay/bitcore/issues/1178
This PR adds robustness to the interaction with the Insight server.