From 48ee8e096044d3cb562a0849765b7ccc99217283 Mon Sep 17 00:00:00 2001 From: Madhav Goyal <88841339+hydrogenbond007@users.noreply.github.com> Date: Sun, 25 Jun 2023 21:59:40 +0530 Subject: [PATCH] editing some code comments in the payload.rs (#3372) --- crates/payload/builder/src/payload.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/payload/builder/src/payload.rs b/crates/payload/builder/src/payload.rs index 8adc3c124..83cfe75ec 100644 --- a/crates/payload/builder/src/payload.rs +++ b/crates/payload/builder/src/payload.rs @@ -36,7 +36,7 @@ impl BuiltPayload { self.id } - /// Returns the identifier of the payload. + /// Returns the built block(sealed) pub fn block(&self) -> &SealedBlock { &self.block } @@ -148,7 +148,7 @@ impl PayloadBuilderAttributes { /// Generates the payload id for the configured payload /// -/// Returns an 8-byte identifier by hashing the payload components. +/// Returns an 8-byte identifier by hashing the payload components with sha256 hash. pub(crate) fn payload_id(parent: &H256, attributes: &PayloadAttributes) -> PayloadId { use sha2::Digest; let mut hasher = sha2::Sha256::new();