feat: expose fields of ResolveBestPayload for remote construction (#7947)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Alex Stokes
2024-04-29 10:09:16 -06:00
committed by GitHub
parent fd8fdcfd4b
commit 12873d515a

View File

@ -528,11 +528,11 @@ where
#[derive(Debug)]
pub struct ResolveBestPayload<Payload> {
/// Best payload so far.
best_payload: Option<Payload>,
pub best_payload: Option<Payload>,
/// Regular payload job that's currently running that might produce a better payload.
maybe_better: Option<PendingPayload<Payload>>,
pub maybe_better: Option<PendingPayload<Payload>>,
/// The empty payload building job in progress.
empty_payload: Option<oneshot::Receiver<Result<Payload, PayloadBuilderError>>>,
pub empty_payload: Option<oneshot::Receiver<Result<Payload, PayloadBuilderError>>>,
}
impl<Payload> Future for ResolveBestPayload<Payload>