mirror of
https://github.com/Retropex/mempool.git
synced 2025-05-13 02:30:41 +02:00
Handle error from bitcoin client when querying prevouts
This commit is contained in:
parent
5b331c144b
commit
af0c78be81
@ -960,6 +960,7 @@ class BitcoinRoutes {
|
||||
unconfirmed = true;
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
const rawPrevout = await bitcoinClient.getTxOut(outpoint.txid, outpoint.vout, false);
|
||||
if (rawPrevout) {
|
||||
prevout = {
|
||||
@ -971,6 +972,9 @@ class BitcoinRoutes {
|
||||
};
|
||||
unconfirmed = false;
|
||||
}
|
||||
} catch (e) {
|
||||
// Ignore bitcoin client errors, just leave prevout as null
|
||||
}
|
||||
}
|
||||
|
||||
if (prevout) {
|
||||
|
Loading…
Reference in New Issue
Block a user