@exodus/ethereum-api 10.1.3 → 10.1.4
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
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.1.4](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@10.1.3...@exodus/ethereum-api@10.1.4) (2026-10-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ethereum-api:** keep no-history pending txs when the batch RPC fails ([#8992](https://github.com/ExodusMovement/assets/issues/8992)) ([4cfeb8c](https://github.com/ExodusMovement/assets/commit/4cfeb8c67c81d4e00eff5e22e4ed52da939030b5))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [10.1.3](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@10.1.2...@exodus/ethereum-api@10.1.3) (2026-10-17)
|
|
7
16
|
|
|
8
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.4",
|
|
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": "c2422cdc47034c6b0e497e95546a8b18885a792b"
|
|
69
69
|
}
|
|
@@ -105,12 +105,12 @@ export class EthereumNoHistoryMonitor extends BaseMonitor {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
try {
|
|
108
|
-
const responses = await this.server.sendBatchRequest(batch)
|
|
108
|
+
const responses = await this.server.sendBatchRequest(batch, { tolerant: true })
|
|
109
109
|
const txIds = transactions.map(({ tx }) => tx.txId)
|
|
110
110
|
return zipObject(txIds, responses)
|
|
111
111
|
} catch (error) {
|
|
112
|
-
|
|
113
|
-
return
|
|
112
|
+
this.logger.warn('Batch RPC request failed, skipping pending tx checks', error)
|
|
113
|
+
return null
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -119,12 +119,15 @@ export class EthereumNoHistoryMonitor extends BaseMonitor {
|
|
|
119
119
|
const txsToRemove = []
|
|
120
120
|
const now = SynchronizedTime.now()
|
|
121
121
|
|
|
122
|
-
if (isEmpty(pendingTransactions)) return { txsToUpdate, txsToRemove }
|
|
122
|
+
if (isEmpty(pendingTransactions) || !pendingTxsFromNode) return { txsToUpdate, txsToRemove }
|
|
123
123
|
|
|
124
124
|
for (const { tx, assetName } of pendingTransactions) {
|
|
125
125
|
const txFromNode = pendingTxsFromNode[tx.txId]
|
|
126
126
|
const isConfirmed = Boolean(txFromNode?.blockHash)
|
|
127
|
-
|
|
127
|
+
// Only `null` is the node's "unknown tx" verdict. `undefined` is a per-hash RPC error entry
|
|
128
|
+
// (no verdict), and without an indexer nothing would restore a tx removed on it.
|
|
129
|
+
const isUnknownToNode = txFromNode === null && now - tx.date.getTime() > UNCONFIRMED_TX_LIMIT
|
|
130
|
+
if (isUnknownToNode) {
|
|
128
131
|
txsToRemove.push({
|
|
129
132
|
tx,
|
|
130
133
|
assetSource: { asset: assetName, walletAccount },
|