-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add payload builder example #3545
Conversation
18ce723
to
ce05451
Compare
Codecov Report
... and 21 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gg
crates/payload/builder/src/lib.rs
Outdated
//! fn best_payload(&self) -> Result<Arc<BuiltPayload>, PayloadBuilderError> { | ||
//! // NOTE: some fields are omitted here for brevity | ||
//! let payload = Block { | ||
//! header: Header { | ||
//! parent_hash: self.attributes.parent, | ||
//! timestamp: self.attributes.timestamp, | ||
//! beneficiary: self.attributes.suggested_fee_recipient, | ||
//! ..Default::default() | ||
//! }, | ||
//! ..Default::default() | ||
//! }; | ||
//! let payload = BuiltPayload::new(self.attributes.id,payload.seal_slow(), U256::ZERO); | ||
//! Ok(Arc::new(payload)) | ||
//! } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fmt nit
closes #3401
add more docs and example