Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
a9afb6c3
Unverified
Commit
a9afb6c3
authored
Jun 12, 2023
by
mergify[bot]
Committed by
GitHub
Jun 12, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into cleanup/delete-dead-ci-job
parents
4e16801b
03dd3e9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
smooth-bulldogs-hear.md
.changeset/smooth-bulldogs-hear.md
+5
-0
service.ts
packages/chain-mon/src/wd-mon/service.ts
+7
-9
No files found.
.changeset/smooth-bulldogs-hear.md
0 → 100644
View file @
a9afb6c3
---
'
@eth-optimism/chain-mon'
:
patch
---
Fixed an issue with logging the wrong timestamp.
packages/chain-mon/src/wd-mon/service.ts
View file @
a9afb6c3
...
@@ -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`
,
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment