@exodus/bitcoin-api 2.3.11 → 2.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/fee/can-bump-tx.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/bitcoin-api",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.12",
|
|
4
4
|
"description": "Exodus bitcoin-api",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"@exodus/bitcoin-meta": "^1.0.1",
|
|
42
42
|
"jest-when": "^3.5.1"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "1fa02f677cba83cce320fd54be227a7a84411d93"
|
|
45
45
|
}
|
package/src/fee/can-bump-tx.js
CHANGED
|
@@ -38,7 +38,7 @@ const _canBumpTx = ({
|
|
|
38
38
|
// Or the tx fee is below nextBlockMinimumFee if exists
|
|
39
39
|
// Or the tx fee is below rbfBumpFeeThreshold * the current fee estimate
|
|
40
40
|
if (tx.data.blocksSeen < rbfBumpFeeBlocks) {
|
|
41
|
-
const feePerKB = asset.currency.baseUnit(tx.data.feePerKB)
|
|
41
|
+
const feePerKB = tx.data.feePerKB ? asset.currency.baseUnit(tx.data.feePerKB) : undefined
|
|
42
42
|
if (!feePerKB) {
|
|
43
43
|
return { errorMessage: 'fee rate is high enough' }
|
|
44
44
|
} else if (feeData.nextBlockMinimumFee) {
|