Skip to content

Commit

Permalink
improve(retryProvider): Skip quorum on pending blocks (#811)
Browse files Browse the repository at this point in the history
The relayer is currently using the pending block to determine the 
current base fee. This is inherently incompatible with quorum because
some chains will typically not return a consistent pending block.
  • Loading branch information
pxrl authored Dec 31, 2024
1 parent 1249377 commit 0c71440
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@across-protocol/sdk",
"author": "UMA Team",
"version": "3.3.30",
"version": "3.3.31",
"license": "AGPL-3.0",
"homepage": "https://docs.across.to/reference/sdk",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/providers/retryProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export class RetryProvider extends ethers.providers.StaticJsonRpcProvider {
}

// getBlockByNumber should only use the quorum if it's not asking for the latest block.
if (method === "eth_getBlockByNumber" && params[0] !== "latest") {
if (method === "eth_getBlockByNumber" && params[0] !== "latest" && params[0] !== "pending") {
return this.nodeQuorumThreshold;
}

Expand Down

0 comments on commit 0c71440

Please sign in to comment.