Commit 411aa8a2 authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub

Merge branch 'develop' into cleanup/indexer-cruft

parents 22c2b130 2c1ae54b
---
'@eth-optimism/chain-mon': patch
---
Fixed an issue with logging the wrong timestamp.
...@@ -82,7 +82,6 @@ jobs: ...@@ -82,7 +82,6 @@ jobs:
- "packages/chain-mon/node_modules" - "packages/chain-mon/node_modules"
- "packages/common-ts/node_modules" - "packages/common-ts/node_modules"
- "packages/contracts-bedrock/node_modules" - "packages/contracts-bedrock/node_modules"
- "packages/contracts-governance/node_modules"
- "packages/contracts-periphery/node_modules" - "packages/contracts-periphery/node_modules"
- "packages/core-utils/node_modules" - "packages/core-utils/node_modules"
- "packages/drippie-mon/node_modules" - "packages/drippie-mon/node_modules"
...@@ -584,7 +583,6 @@ jobs: ...@@ -584,7 +583,6 @@ jobs:
VITE_E2E_RPC_URL_L1: http://localhost:8545 VITE_E2E_RPC_URL_L1: http://localhost:8545
VITE_E2E_RPC_URL_L2: http://localhost:9545 VITE_E2E_RPC_URL_L2: http://localhost:9545
bedrock-markdown: bedrock-markdown:
machine: machine:
image: ubuntu-2204:2022.07.1 image: ubuntu-2204:2022.07.1
...@@ -1070,13 +1068,6 @@ workflows: ...@@ -1070,13 +1068,6 @@ workflows:
package_name: common-ts package_name: common-ts
requires: requires:
- yarn-monorepo - yarn-monorepo
- js-lint-test:
name: contracts-tests
coverage_flag: contracts-tests
package_name: contracts
dependencies: hardhat-deploy-config
requires:
- yarn-monorepo
- js-lint-test: - js-lint-test:
name: core-utils-tests name: core-utils-tests
coverage_flag: core-utils-tests coverage_flag: core-utils-tests
......
...@@ -191,16 +191,14 @@ export class WithdrawalMonitor extends BaseServiceV2<Options, Metrics, State> { ...@@ -191,16 +191,14 @@ export class WithdrawalMonitor extends BaseServiceV2<Options, Metrics, State> {
await this.state.messenger.contracts.l2.BedrockMessagePasser.sentMessages( await this.state.messenger.contracts.l2.BedrockMessagePasser.sentMessages(
proofEvent.args.withdrawalHash proofEvent.args.withdrawalHash
) )
const provenAt = `${ const block = await proofEvent.getBlock()
(dateformat( const now = new Date(block.timestamp * 1000)
new Date( const dateString = dateformat(
(await this.options.l1RpcProvider.getBlock(proofEvent.blockHash)) now,
.timestamp * 1000
)
),
'mmmm dS, yyyy, h:MM:ss TT', 'mmmm dS, yyyy, h:MM:ss TT',
true) true // use UTC time
} UTC` )
const provenAt = `${dateString} UTC`
if (exists) { if (exists) {
this.metrics.withdrawalsValidated.inc() this.metrics.withdrawalsValidated.inc()
this.logger.info(`valid withdrawal`, { this.logger.info(`valid withdrawal`, {
......
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