Fix crash issues related to new unconfirmed transactions in bitcoind mode.

fixes #391
This commit is contained in:
softsimon committed 2021-04-27 02:13:48 +04:00
1 parent 628906f172
commit 885be5579b
3 files changed
+47 -20

No files matched your search

+3
View File
@@ -147,6 +147,9 @@ class BitcoinApi implements AbstractBitcoinApi {
esploraTransaction = await this.$calculateFeeFromInputs(esploraTransaction, addPrevout);
} else {
esploraTransaction = await this.$appendMempoolFeeData(esploraTransaction);
if (addPrevout) {
esploraTransaction = await this.$calculateFeeFromInputs(esploraTransaction, addPrevout);
}
}
return esploraTransaction;