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
f8b3e028
Commit
f8b3e028
authored
Aug 25, 2023
by
Hamdi Allam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indexer routine management
parent
96562692
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
l1_bridge_processor.go
indexer/processors/bridge/l1_bridge_processor.go
+4
-4
l2_bridge_processor.go
indexer/processors/bridge/l2_bridge_processor.go
+2
-2
No files found.
indexer/processors/bridge/l1_bridge_processor.go
View file @
f8b3e028
...
@@ -136,7 +136,7 @@ func L1ProcessFinalizedBridgeEvents(log log.Logger, db *database.DB, chainConfig
...
@@ -136,7 +136,7 @@ func L1ProcessFinalizedBridgeEvents(log log.Logger, db *database.DB, chainConfig
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
else
if
withdrawal
==
nil
{
}
else
if
withdrawal
==
nil
{
log
.
Crit
(
"missing indexed withdrawal on prove event!"
,
"withdrawal_hash"
,
proven
.
WithdrawalHash
,
"tx_hash"
,
proven
.
Event
.
TransactionHash
)
log
.
Error
(
"missing indexed withdrawal on prove event!"
,
"withdrawal_hash"
,
proven
.
WithdrawalHash
,
"tx_hash"
,
proven
.
Event
.
TransactionHash
)
return
errors
.
New
(
"missing indexed withdrawal"
)
return
errors
.
New
(
"missing indexed withdrawal"
)
}
}
...
@@ -161,7 +161,7 @@ func L1ProcessFinalizedBridgeEvents(log log.Logger, db *database.DB, chainConfig
...
@@ -161,7 +161,7 @@ func L1ProcessFinalizedBridgeEvents(log log.Logger, db *database.DB, chainConfig
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
else
if
withdrawal
==
nil
{
}
else
if
withdrawal
==
nil
{
log
.
Crit
(
"missing indexed withdrawal on finalization event!"
,
"withdrawal_hash"
,
finalized
.
WithdrawalHash
,
"tx_hash"
,
finalized
.
Event
.
TransactionHash
)
log
.
Error
(
"missing indexed withdrawal on finalization event!"
,
"withdrawal_hash"
,
finalized
.
WithdrawalHash
,
"tx_hash"
,
finalized
.
Event
.
TransactionHash
)
return
errors
.
New
(
"missing indexed withdrawal"
)
return
errors
.
New
(
"missing indexed withdrawal"
)
}
}
...
@@ -188,7 +188,7 @@ func L1ProcessFinalizedBridgeEvents(log log.Logger, db *database.DB, chainConfig
...
@@ -188,7 +188,7 @@ func L1ProcessFinalizedBridgeEvents(log log.Logger, db *database.DB, chainConfig
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
else
if
message
==
nil
{
}
else
if
message
==
nil
{
log
.
Crit
(
"missing indexed L2CrossDomainMessenger message"
,
"message_hash"
,
relayed
.
MessageHash
,
"tx_hash"
,
relayed
.
Event
.
TransactionHash
)
log
.
Error
(
"missing indexed L2CrossDomainMessenger message"
,
"message_hash"
,
relayed
.
MessageHash
,
"tx_hash"
,
relayed
.
Event
.
TransactionHash
)
return
fmt
.
Errorf
(
"missing indexed L2CrossDomainMessager message"
)
return
fmt
.
Errorf
(
"missing indexed L2CrossDomainMessager message"
)
}
}
...
@@ -225,7 +225,7 @@ func L1ProcessFinalizedBridgeEvents(log log.Logger, db *database.DB, chainConfig
...
@@ -225,7 +225,7 @@ func L1ProcessFinalizedBridgeEvents(log log.Logger, db *database.DB, chainConfig
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
else
if
withdrawal
==
nil
{
}
else
if
withdrawal
==
nil
{
log
.
Crit
(
"missing L2StandardBridge withdrawal on L1 finalization"
,
"tx_hash"
,
finalizedBridge
.
Event
.
TransactionHash
)
log
.
Error
(
"missing L2StandardBridge withdrawal on L1 finalization"
,
"tx_hash"
,
finalizedBridge
.
Event
.
TransactionHash
)
return
errors
.
New
(
"missing L2StandardBridge withdrawal on L1 finalization"
)
return
errors
.
New
(
"missing L2StandardBridge withdrawal on L1 finalization"
)
}
}
}
}
...
...
indexer/processors/bridge/l2_bridge_processor.go
View file @
f8b3e028
...
@@ -137,7 +137,7 @@ func L2ProcessFinalizedBridgeEvents(log log.Logger, db *database.DB, fromHeight
...
@@ -137,7 +137,7 @@ func L2ProcessFinalizedBridgeEvents(log log.Logger, db *database.DB, fromHeight
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
else
if
message
==
nil
{
}
else
if
message
==
nil
{
log
.
Crit
(
"missing indexed L1CrossDomainMessenger message"
,
"message_hash"
,
relayed
.
MessageHash
,
"tx_hash"
,
relayed
.
Event
.
TransactionHash
)
log
.
Error
(
"missing indexed L1CrossDomainMessenger message"
,
"message_hash"
,
relayed
.
MessageHash
,
"tx_hash"
,
relayed
.
Event
.
TransactionHash
)
return
fmt
.
Errorf
(
"missing indexed L1CrossDomainMessager message"
)
return
fmt
.
Errorf
(
"missing indexed L1CrossDomainMessager message"
)
}
}
...
@@ -174,7 +174,7 @@ func L2ProcessFinalizedBridgeEvents(log log.Logger, db *database.DB, fromHeight
...
@@ -174,7 +174,7 @@ func L2ProcessFinalizedBridgeEvents(log log.Logger, db *database.DB, fromHeight
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
else
if
deposit
==
nil
{
}
else
if
deposit
==
nil
{
log
.
Crit
(
"missing L1StandardBridge deposit on L2 finalization"
,
"tx_hash"
,
finalizedBridge
.
Event
.
TransactionHash
)
log
.
Error
(
"missing L1StandardBridge deposit on L2 finalization"
,
"tx_hash"
,
finalizedBridge
.
Event
.
TransactionHash
)
return
errors
.
New
(
"missing L1StandardBridge deposit on L2 finalization"
)
return
errors
.
New
(
"missing L1StandardBridge deposit on L2 finalization"
)
}
}
}
}
...
...
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