mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: allow awaiting payload in progress (#11823)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -3,6 +3,7 @@ use reth::{
|
||||
providers::StateProviderFactory, tasks::TaskSpawner, transaction_pool::TransactionPool,
|
||||
};
|
||||
use reth_basic_payload_builder::{PayloadBuilder, PayloadConfig};
|
||||
use reth_node_api::PayloadKind;
|
||||
use reth_payload_builder::{KeepPayloadJobAlive, PayloadBuilderError, PayloadJob};
|
||||
|
||||
use std::{
|
||||
@ -52,7 +53,10 @@ where
|
||||
Ok(self.config.attributes.clone())
|
||||
}
|
||||
|
||||
fn resolve(&mut self) -> (Self::ResolvePayloadFuture, KeepPayloadJobAlive) {
|
||||
fn resolve_kind(
|
||||
&mut self,
|
||||
_kind: PayloadKind,
|
||||
) -> (Self::ResolvePayloadFuture, KeepPayloadJobAlive) {
|
||||
let payload = self.best_payload();
|
||||
(futures_util::future::ready(payload), KeepPayloadJobAlive::No)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user