Skip to content

Commit 7ae5d06

Browse files
committed
Lower batch sizes to avoid out of gas errors after Fusaka
1 parent 2874396 commit 7ae5d06

File tree

3 files changed

+3
-28
lines changed

3 files changed

+3
-28
lines changed

bindings/dao/protocol/verify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
)
1919

2020
const (
21-
challengeStateBatchSize uint64 = 500
21+
challengeStateBatchSize uint64 = 50
2222
)
2323

2424
// Structure of the RootSubmitted event

bindings/network/voting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
)
1616

1717
const (
18-
nodeVotingDetailsBatchSize uint64 = 250
18+
nodeVotingDetailsBatchSize uint64 = 50
1919
)
2020

2121
// Get the version of the Rocket Network Voting Contract

bindings/node/node.go

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ import (
2020

2121
// Settings
2222
const (
23-
nodeAddressFastBatchSize int = 1000
23+
nodeAddressFastBatchSize int = 500
2424
NodeAddressBatchSize = 50
2525
NodeDetailsBatchSize = 20
2626
SmoothingPoolCountBatchSize uint64 = 2000
27-
NativeNodeDetailsBatchSize = 10000
2827
)
2928

3029
// Node details
@@ -863,27 +862,3 @@ func getRocketNodeManager(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*rock
863862
defer rocketNodeManagerLock.Unlock()
864863
return rp.GetContract("rocketNodeManager", opts)
865864
}
866-
867-
var rocketNetworkPricesLock sync.Mutex
868-
869-
func getRocketNetworkPrices(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*rocketpool.Contract, error) {
870-
rocketNetworkPricesLock.Lock()
871-
defer rocketNetworkPricesLock.Unlock()
872-
return rp.GetContract("rocketNetworkPrices", opts)
873-
}
874-
875-
var rocketNetworkBalancesLock sync.Mutex
876-
877-
func getRocketNetworkBalances(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*rocketpool.Contract, error) {
878-
rocketNetworkBalancesLock.Lock()
879-
defer rocketNetworkBalancesLock.Unlock()
880-
return rp.GetContract("rocketNetworkBalances", opts)
881-
}
882-
883-
var rocketDAONodeTrustedActionsLock sync.Mutex
884-
885-
func getRocketDAONodeTrustedActions(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*rocketpool.Contract, error) {
886-
rocketDAONodeTrustedActionsLock.Lock()
887-
defer rocketDAONodeTrustedActionsLock.Unlock()
888-
return rp.GetContract("rocketDAONodeTrustedActions", opts)
889-
}

0 commit comments

Comments
 (0)