Skip to content

Commit

Permalink
arbitrum test fix (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManojJiSharma authored Sep 3, 2024
1 parent ddb58a6 commit a8c6f5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ mod tests {

/// Account used to fund other testing accounts.
const FUNDING_ACCOUNT_PRIVATE_KEY: [u8; 32] =
hex!("8aab161e2a1e57367b60bd870861e3042c2513f8a856f9fee014e7b96e0a2a36");
hex!("b6b15c8cb491557369f3c7d2c287b053eb229daa9c22138887752191c9520659");

/// Account used exclusively to continuously sending tx to mine new blocks.
const BLOCK_INCREMENTER_PRIVATE_KEY: [u8; 32] =
Expand Down
5 changes: 5 additions & 0 deletions chains/ethereum/server/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ impl BlockFinalityStrategy {
// and polygon block interval is ~2 seconds, 30 minutes / 2 seconds == 900 blocks.
("polygon", false) => Self::Confirmations(900),
("polygon", true) => Self::Confirmations(6), // For local testnet use 6 confirmations
// TODO: ISSUE-242 Replace this hack by quering arbitrum checkpoints
// Arbitrum finalized blocks are stored on ethereum mainnet roughly every 15 minutes
// Arbitrum block interval is ~0.26 seconds, 15 minutes / 0.26 = ~3462
("arbitrum", false) => Self::Confirmations(3462),
("arbitrum", true) => Self::Confirmations(230),
_ => Self::Finalized,
}
}
Expand Down

0 comments on commit a8c6f5b

Please sign in to comment.