Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bindings/dao/protocol/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

const (
challengeStateBatchSize uint64 = 500
challengeStateBatchSize uint64 = 200
)

// Structure of the RootSubmitted event
Expand Down
2 changes: 1 addition & 1 deletion bindings/network/voting.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

const (
nodeVotingDetailsBatchSize uint64 = 250
nodeVotingDetailsBatchSize uint64 = 100
)

// Get the version of the Rocket Network Voting Contract
Expand Down
27 changes: 1 addition & 26 deletions bindings/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ import (

// Settings
const (
nodeAddressFastBatchSize int = 1000
nodeAddressFastBatchSize int = 500
NodeAddressBatchSize = 50
NodeDetailsBatchSize = 20
SmoothingPoolCountBatchSize uint64 = 2000
NativeNodeDetailsBatchSize = 10000
)

// Node details
Expand Down Expand Up @@ -863,27 +862,3 @@ func getRocketNodeManager(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*rock
defer rocketNodeManagerLock.Unlock()
return rp.GetContract("rocketNodeManager", opts)
}

var rocketNetworkPricesLock sync.Mutex

func getRocketNetworkPrices(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*rocketpool.Contract, error) {
rocketNetworkPricesLock.Lock()
defer rocketNetworkPricesLock.Unlock()
return rp.GetContract("rocketNetworkPrices", opts)
}

var rocketNetworkBalancesLock sync.Mutex

func getRocketNetworkBalances(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*rocketpool.Contract, error) {
rocketNetworkBalancesLock.Lock()
defer rocketNetworkBalancesLock.Unlock()
return rp.GetContract("rocketNetworkBalances", opts)
}

var rocketDAONodeTrustedActionsLock sync.Mutex

func getRocketDAONodeTrustedActions(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*rocketpool.Contract, error) {
rocketDAONodeTrustedActionsLock.Lock()
defer rocketDAONodeTrustedActionsLock.Unlock()
return rp.GetContract("rocketDAONodeTrustedActions", opts)
}
Loading