mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 03:31:45 +00:00
Builder profit threshold flag (#3534)
## Issue Addressed Resolves https://github.com/sigp/lighthouse/issues/3517 ## Proposed Changes Adds a `--builder-profit-threshold <wei value>` flag to the BN. If an external payload's value field is less than this value, the local payload will be used. The value of the local payload will not be checked (it can't really be checked until the engine API is updated to support this). Co-authored-by: realbigsean <sean@sigmaprime.io>
This commit is contained in:
@@ -777,6 +777,21 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
|
||||
conditions.")
|
||||
.takes_value(false)
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("builder-profit-threshold")
|
||||
.long("builder-profit-threshold")
|
||||
.value_name("WEI_VALUE")
|
||||
.help("The minimum reward in wei provided to the proposer by a block builder for \
|
||||
an external payload to be considered for inclusion in a proposal. If this \
|
||||
threshold is not met, the local EE's payload will be used. This is currently \
|
||||
*NOT* in comparison to the value of the local EE's payload. It simply checks \
|
||||
whether the total proposer reward from an external payload is equal to or \
|
||||
greater than this value. In the future, a comparison to a local payload is \
|
||||
likely to be added. Example: Use 250000000000000000 to set the threshold to \
|
||||
0.25 ETH.")
|
||||
.default_value("0")
|
||||
.takes_value(true)
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("count-unrealized")
|
||||
.long("count-unrealized")
|
||||
|
||||
Reference in New Issue
Block a user