File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
backend/coins/btc/transactions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ func (transactions *Transactions) getTransactionCached(
330
330
}
331
331
tx , err := transactions .blockchain .TransactionGet (txHash )
332
332
if err != nil {
333
- panic (err )
333
+ transactions . log . WithError (err ). Panic ( "TransactionGet failed" )
334
334
}
335
335
return tx
336
336
}
@@ -385,7 +385,7 @@ func (transactions *Transactions) txInfo(
385
385
spentOut , err := dbTx .Output (txIn .PreviousOutPoint )
386
386
if err != nil {
387
387
// TODO
388
- panic (err )
388
+ transactions . log . WithError (err ). Panic ( "Output() failed" )
389
389
}
390
390
if spentOut != nil {
391
391
sumOurInputs += btcutil .Amount (spentOut .Value )
@@ -405,7 +405,7 @@ func (transactions *Transactions) txInfo(
405
405
})
406
406
if err != nil {
407
407
// TODO
408
- panic (err )
408
+ transactions . log . WithError (err ). Panic ( "Output() failed" )
409
409
}
410
410
addressAndAmount := accounts.AddressAndAmount {
411
411
Address : transactions .outputToAddress (txOut .PkScript ),
You can’t perform that action at this time.
0 commit comments