Skip to content

Commit

Permalink
Add reduced memory usage option.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Mar 31, 2024
1 parent 16cd2a8 commit 7a0ef9d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
dev:
- add proposal value and blinded status to trace
- add beaconblockproposer.builder-boost-factor
- add reduced memory mode for memory-constrained systems

1.9.0-alpha.2:
- allow Vouch to act as an MEV-boost client for non-Vouch validators
Expand Down
1 change: 1 addition & 0 deletions clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func fetchClient(ctx context.Context, monitor metrics.Service, address string) (
httpclient.WithExtraHeaders(map[string]string{
"User-Agent": fmt.Sprintf("Vouch/%s", ReleaseVersion),
}),
httpclient.WithReducedMemoryUsage(util.HierarchicalBool("reduced-memory-usage", fmt.Sprintf("eth2client.%s", address))),
)
if err != nil {
return nil, errors.Wrap(err, "failed to initiate consensus client")
Expand Down
3 changes: 3 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ beacon-node-addresses: ['localhost:4000', 'localhost:5051', 'localhost:5052']
# timeout is the timeout for all validating operations, for example fetching attesation data from beacon nodes.
timeout: '2s'

# reduced-memory-usage can be set on memory-constrained systems to reduce memory usage, at the cost of increased processing time.
reduced-memory-usage: false

eth2client:
# timeout is the timeout for all operations against beacon nodes that are not related to a specific validating
# operation, for example fetching the current list of active validators. These operations are not time-sensitive,
Expand Down

0 comments on commit 7a0ef9d

Please sign in to comment.