Commit 8500cb4a authored by Mark Tyneway's avatar Mark Tyneway Committed by Kelvin Fichter

message-relayer: use `StaticJsonRpcProvider`

Reduce the number of requests sent by the message-relayer
in the docker setup to make the logs better
parent ff0719a6
......@@ -81,8 +81,8 @@ const main = async () => {
throw new Error('Must pass L2_NODE_WEB3_URL')
}
const l2Provider = new providers.JsonRpcProvider(L2_NODE_WEB3_URL)
const l1Provider = new providers.JsonRpcProvider(L1_NODE_WEB3_URL)
const l2Provider = new providers.StaticJsonRpcProvider(L2_NODE_WEB3_URL)
const l1Provider = new providers.StaticJsonRpcProvider(L1_NODE_WEB3_URL)
let wallet: Wallet
if (L1_WALLET_KEY) {
......
......@@ -16,8 +16,8 @@ import { StateRootBatchHeader, SentMessage, SentMessageProof } from './types'
interface MessageRelayerOptions {
// Providers for interacting with L1 and L2.
l1RpcProvider: providers.JsonRpcProvider
l2RpcProvider: providers.JsonRpcProvider
l1RpcProvider: providers.StaticJsonRpcProvider
l2RpcProvider: providers.StaticJsonRpcProvider
// Address of the AddressManager contract, used to resolve the various addresses we'll need
// within this service.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment