From 56a2c775ba59ed622b7626d34f88bd01919c092e Mon Sep 17 00:00:00 2001 From: michaeltout Date: Thu, 13 Jul 2023 23:58:25 +0200 Subject: [PATCH] Ensure pending operations don't get marked as failed in currency conversion overview --- routes/api/native/reservetransfers.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/routes/api/native/reservetransfers.js b/routes/api/native/reservetransfers.js index 3fc9b654..e1747219 100644 --- a/routes/api/native/reservetransfers.js +++ b/routes/api/native/reservetransfers.js @@ -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({