Skip to content

Commit

Permalink
docs: small fix in payload doc (#12116)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger authored Oct 28, 2024
1 parent 0c51609 commit 1c36b71
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/payload/basic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ impl<Client, Pool, Tasks, Builder> BasicPayloadJobGenerator<Client, Pool, Tasks,
/// Returns the maximum duration a job should be allowed to run.
///
/// This adheres to the following specification:
// > Client software SHOULD stop the updating process when either a call to engine_getPayload
// > with the build process's payloadId is made or SECONDS_PER_SLOT (12s in the Mainnet
// > configuration) have passed since the point in time identified by the timestamp parameter.
// See also <https://github.com/ethereum/execution-apis/blob/431cf72fd3403d946ca3e3afc36b973fc87e0e89/src/engine/paris.md?plain=1#L137>
/// > Client software SHOULD stop the updating process when either a call to engine_getPayload
/// > with the build process's payloadId is made or SECONDS_PER_SLOT (12s in the Mainnet
/// > configuration) have passed since the point in time identified by the timestamp parameter.
///
/// See also <https://github.com/ethereum/execution-apis/blob/431cf72fd3403d946ca3e3afc36b973fc87e0e89/src/engine/paris.md?plain=1#L137>
#[inline]
fn max_job_duration(&self, unix_timestamp: u64) -> Duration {
let duration_until_timestamp = duration_until(unix_timestamp);
Expand Down

0 comments on commit 1c36b71

Please sign in to comment.