@exodus/ethereum-api 10.2.2 → 10.2.3
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/CHANGELOG.md +9 -0
- package/package.json +2 -2
- package/src/tx-create.js +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [10.2.3](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@10.2.2...@exodus/ethereum-api@10.2.3) (2026-10-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ethereum-api:** allow accelerating a tx parked below the base fee ([#9049](https://github.com/ExodusMovement/assets/issues/9049)) ([2dac03f](https://github.com/ExodusMovement/assets/commit/2dac03f68d1de7cc56a191e82e4e217ad8a5bf07))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [10.2.2](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@10.2.1...@exodus/ethereum-api@10.2.2) (2026-10-22)
|
|
7
16
|
|
|
8
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.3",
|
|
4
4
|
"description": "Transaction monitors, fee monitors, RPC with the blockchain node, and other networking code for Ethereum and EVM-based blockchains",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"type": "git",
|
|
66
66
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "1fc0966a5723988e8151f3f93486d31cd95ede4f"
|
|
69
69
|
}
|
package/src/tx-create.js
CHANGED
|
@@ -291,10 +291,11 @@ async function verifyBumpTxCanReplace({ baseAsset, bumpTxId, fromAddress, nonce
|
|
|
291
291
|
// [0][1][2][3]{4}{5}{6}...
|
|
292
292
|
// ^--- next empty slot (pendingNonce)
|
|
293
293
|
//
|
|
294
|
-
// Nonce to replace must be
|
|
295
|
-
//
|
|
294
|
+
// Nonce to replace must be <= pendingNonce. At pendingNonce the node holds the tx
|
|
295
|
+
// without counting it, e.g. its fee cap is below the base fee, and it is the next
|
|
296
|
+
// executable slot. If nonce > pendingNonce, the slots below it are gapped — not safe to replace.
|
|
296
297
|
const pendingNonce = parseInt(pendingNonceHex, 16)
|
|
297
|
-
if (pendingNonce
|
|
298
|
+
if (pendingNonce < nonce) {
|
|
298
299
|
// A predecessor tx was dropped by the node, leaving a gap below this tx.
|
|
299
300
|
// The tx itself is still in the node's queued pool but can't execute until
|
|
300
301
|
// the missing nonce slot is filled.
|
|
@@ -304,7 +305,7 @@ async function verifyBumpTxCanReplace({ baseAsset, bumpTxId, fromAddress, nonce
|
|
|
304
305
|
// first, then you'll be able to accelerate this one."
|
|
305
306
|
throw new Error(
|
|
306
307
|
`ERR_BUMP_TX_NONCE_GAP: Cannot bump transaction ${bumpTxId}: nonce gap detected — ` +
|
|
307
|
-
`node's pending nonce (${pendingNonce})
|
|
308
|
+
`node's pending nonce (${pendingNonce}) < tx nonce (${nonce}), ` +
|
|
308
309
|
`broadcasting would produce ErrFutureReplacePending`
|
|
309
310
|
)
|
|
310
311
|
}
|