diff --git a/chains/arbitrum/testing/rosetta-testing-arbitrum/src/lib.rs b/chains/arbitrum/testing/rosetta-testing-arbitrum/src/lib.rs index 628d9a63..ccadfae9 100644 --- a/chains/arbitrum/testing/rosetta-testing-arbitrum/src/lib.rs +++ b/chains/arbitrum/testing/rosetta-testing-arbitrum/src/lib.rs @@ -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] = diff --git a/chains/ethereum/server/src/client.rs b/chains/ethereum/server/src/client.rs index 79844a2d..f4f64144 100644 --- a/chains/ethereum/server/src/client.rs +++ b/chains/ethereum/server/src/client.rs @@ -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, } }