Skip to content

Commit

Permalink
Ensure pending operations don't get marked as failed in currency conv…
Browse files Browse the repository at this point in the history
…ersion overview
  • Loading branch information
michaeltout authored and Asherda committed Jul 13, 2023
1 parent b996051 commit 56a2c77
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions routes/api/native/reservetransfers.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ module.exports = (api) => {
let tx = null;

try {
tx = await api.native.callDaemon(chainTicker, "getrawtransaction", [
z_operation.result.txid,
1,
]);
if (z_operation.result.txid) {
tx = await api.native.callDaemon(chainTicker, "getrawtransaction", [
z_operation.result.txid,
1,
]);
}
} catch (e) {}

transfers.push({
Expand Down

0 comments on commit 56a2c77

Please sign in to comment.