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
287d317d
Commit
287d317d
authored
Jun 09, 2023
by
Maurelian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(cmon): fix time string formatting bug
parent
62c7f3b0
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 @
287d317d
---
'
@eth-optimism/chain-mon'
:
patch
---
Fixed an issue with logging the wrong timestamp.
packages/chain-mon/src/wd-mon/service.ts
View file @
287d317d
...
...
@@ -191,16 +191,14 @@ export class WithdrawalMonitor extends BaseServiceV2<Options, Metrics, State> {
await
this
.
state
.
messenger
.
contracts
.
l2
.
BedrockMessagePasser
.
sentMessages
(
proofEvent
.
args
.
withdrawalHash
)
const
provenAt
=
`
${
(
dateformat
(
new
Date
(
(
await
this
.
options
.
l1RpcProvider
.
getBlock
(
proofEvent
.
blockHash
))
.
timestamp
*
1000
)
),
const
block
=
await
proofEvent
.
getBlock
()
const
now
=
new
Date
(
block
.
timestamp
*
1000
)
const
dateString
=
dateformat
(
now
,
'
mmmm dS, yyyy, h:MM:ss TT
'
,
true
)
}
UTC`
true
// use UTC time
)
const
provenAt
=
`
${
dateString
}
UTC`
if
(
exists
)
{
this
.
metrics
.
withdrawalsValidated
.
inc
()
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