Skip to content

Commit

Permalink
Fix broken gettx api
Browse files Browse the repository at this point in the history
  • Loading branch information
joeuhren committed Dec 18, 2020
1 parent 2d2d0f4 commit 0f60227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ app.use('/ext/gettx/:txid', function(req, res) {
lib.get_rawtransaction(txid, function(rtx) {
if (rtx && rtx.txid) {
lib.prepare_vin(rtx, function(vin) {
lib.prepare_vout(rtx.vout, rtx.txid, vin, function(rvout, rvin) {
lib.prepare_vout(rtx.vout, rtx.txid, vin, ((typeof rtx.vjoinsplit === 'undefined' || rtx.vjoinsplit == null) ? [] : rtx.vjoinsplit), function(rvout, rvin) {
lib.calculate_total(rvout, function(total){
if (!rtx.confirmations > 0) {
var utx = {
Expand Down

0 comments on commit 0f60227

Please sign in to comment.