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
cd15c40a
Unverified
Commit
cd15c40a
authored
May 31, 2022
by
Matthew Slipper
Committed by
GitHub
May 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
teleportr: Limit to 10 confirmed deposits (#2637)
parent
dfab86ff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
moody-drinks-draw.md
.changeset/moody-drinks-draw.md
+5
-0
driver.go
teleportr/drivers/disburser/driver.go
+3
-2
No files found.
.changeset/moody-drinks-draw.md
0 → 100644
View file @
cd15c40a
---
'
@eth-optimism/teleportr'
:
patch
---
Only do 5 disbursements at a time
teleportr/drivers/disburser/driver.go
View file @
cd15c40a
...
@@ -4,7 +4,6 @@ import (
...
@@ -4,7 +4,6 @@ import (
"context"
"context"
"crypto/ecdsa"
"crypto/ecdsa"
"errors"
"errors"
"math"
"math/big"
"math/big"
"strings"
"strings"
"time"
"time"
...
@@ -34,6 +33,8 @@ var DisbursementFailedTopic = common.HexToHash(
...
@@ -34,6 +33,8 @@ var DisbursementFailedTopic = common.HexToHash(
"0x9b478c095979d3d3a7d602ffd9ee1f0843204d853558ae0882c8fcc0a5bc78cf"
,
"0x9b478c095979d3d3a7d602ffd9ee1f0843204d853558ae0882c8fcc0a5bc78cf"
,
)
)
const
MaxDisbursements
=
5
type
Config
struct
{
type
Config
struct
{
Name
string
Name
string
L1Client
*
ethclient
.
Client
L1Client
*
ethclient
.
Client
...
@@ -194,7 +195,7 @@ func (d *Driver) GetBatchBlockRange(
...
@@ -194,7 +195,7 @@ func (d *Driver) GetBatchBlockRange(
// After successfully ingesting deposits, check to see if there are any
// After successfully ingesting deposits, check to see if there are any
// now-confirmed deposits that we can attempt to disburse.
// now-confirmed deposits that we can attempt to disburse.
confirmedDeposits
,
err
:=
d
.
loadConfirmedDepositsInRange
(
confirmedDeposits
,
err
:=
d
.
loadConfirmedDepositsInRange
(
blockNumber
,
startID64
,
math
.
MaxUint64
,
blockNumber
,
startID64
,
startID64
+
MaxDisbursements
,
)
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
nil
,
err
return
nil
,
nil
,
err
...
...
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