Commit 826e3036 authored by Mark Tyneway's avatar Mark Tyneway Committed by Andreas Bigger

sdk: additional logging

Ensures that the L2 chain isn't running away from
the output proposer. There is a case where the submission
interval is too small such that the L2 chain builds
blocks at a faster rate than the proposer can
currently propose.
parent 4207a573
...@@ -325,6 +325,8 @@ task('deposit-erc20', 'Deposits WETH9 onto L2.') ...@@ -325,6 +325,8 @@ task('deposit-erc20', 'Deposits WETH9 onto L2.')
console.log( console.log(
`Latest L2OutputOracle commitment number: ${latest.toString()}` `Latest L2OutputOracle commitment number: ${latest.toString()}`
) )
const tip = await signer.provider!.getBlockNumber()
console.log(`L1 chain tip: ${tip.toString()}`)
}, 3000) }, 3000)
const now = Math.floor(Date.now() / 1000) const now = Math.floor(Date.now() / 1000)
......
...@@ -318,6 +318,8 @@ task('deposit-eth', 'Deposits ether to L2.') ...@@ -318,6 +318,8 @@ task('deposit-eth', 'Deposits ether to L2.')
console.log( console.log(
`Latest L2OutputOracle commitment number: ${latest.toString()}` `Latest L2OutputOracle commitment number: ${latest.toString()}`
) )
const tip = await signer.provider!.getBlockNumber()
console.log(`L1 chain tip: ${tip.toString()}`)
}, 3000) }, 3000)
try { try {
......
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