Skip to content

Commit

Permalink
Label txid correctly in electrum send result
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltout committed Jul 8, 2023
1 parent f1b161f commit 3088d3d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions routes/api/electrum/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ module.exports = (api) => {
};

api.electrum.conditionalListunspent = (grainedControlUtxos, ecl, address, network, full, verify) => {
api.log(`verify ${verify}`, 'spv.listunspent');

return new Promise((resolve, reject) => {
if (grainedControlUtxos) {
resolve(grainedControlUtxos);
Expand Down Expand Up @@ -631,7 +629,7 @@ module.exports = (api) => {

const retObj = {
msg: "success",
result: { ...preflightRes, broadcastRes }
result: { ...preflightRes, txid: broadcastRes }
};

res.send(JSON.stringify(retObj));
Expand Down

0 comments on commit 3088d3d

Please sign in to comment.