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

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

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;