Skip to content

Commit

Permalink
Add IssuanceBlockHeaderResponse::latest_parent_block_issuing_time (#1752
Browse files Browse the repository at this point in the history
)

* Add IssuanceBlockHeaderResponse::latest_parent_block_issuing_time

* Add TODO
  • Loading branch information
thibault-martinez committed Dec 6, 2023
1 parent fa0bcc9 commit 0738cfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions sdk/src/client/api/block_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ impl ClientInner {
pub async fn build_basic_block(&self, issuer_id: AccountId, payload: Option<Payload>) -> Result<UnsignedBlock> {
let issuance = self.get_issuance().await?;

// TODO https://github.com/iotaledger/iota-sdk/issues/1753
let issuing_time = {
#[cfg(feature = "std")]
let issuing_time = std::time::SystemTime::now()
Expand Down
3 changes: 3 additions & 0 deletions sdk/src/types/api/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ pub struct IssuanceBlockHeaderResponse {
/// Blocks that are directly referenced to adjust opinion.
#[serde(default, skip_serializing_if = "BTreeSet::is_empty")]
pub shallow_like_parents: BTreeSet<BlockId>,
// Latest issuing time of the returned parents.
#[serde(with = "string")]
pub latest_parent_block_issuing_time: u64,
/// The slot index of the latest finalized slot.
pub latest_finalized_slot: SlotIndex,
/// The latest slot commitment.
Expand Down

0 comments on commit 0738cfc

Please sign in to comment.