-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
If the transaction block is reorged, the previous block hash will be retrieved from the cache
bodhi.js/packages/eth-providers/src/base-provider.ts
Lines 1712 to 1726 in f2d786c
| _getReceipt = async (txHash: string): Promise<TransactionReceipt | null> => { | |
| const txFromCache = this.blockCache.getReceiptByHash(txHash); | |
| if ( | |
| txFromCache && | |
| await this._isBlockCanonical(txFromCache.blockHash, txFromCache.blockNumber) | |
| ) { | |
| delete txFromCache.byzantium; | |
| return txFromCache; | |
| } | |
| const txFromSubql = await this.subql?.getTxReceiptByHash(txHash); | |
| return txFromSubql | |
| ? subqlReceiptAdapter(txFromSubql) | |
| : null; | |
| }; |
Metadata
Metadata
Assignees
Labels
No labels