Skip to content

Surface block timestamp in confirmationUpdateResult - #226

Merged
Chengxuan merged 2 commits into
hyperledger-firefly:mainfrom
davecrighton:feat/confirmation-block-timestamp
Sep 2, 2026
Merged

Surface block timestamp in confirmationUpdateResult#226
Chengxuan merged 2 commits into
hyperledger-firefly:mainfrom
davecrighton:feat/confirmation-block-timestamp

Conversation

@davecrighton

Copy link
Copy Markdown
Contributor

Surface the block timestamp in the ConfirmationUpdateResult. Scope to full mode only since we do not get the block info in light mode.

Signed-off-by: Dave Crighton <dave.crighton@kaleido.io>
@davecrighton
davecrighton requested a review from a team as a code owner September 2, 2026 14:09
Comment thread pkg/ethblocklistener/blocklistener.go Outdated
Confirmed bool `json:"confirmed,omitempty"` // when true, it means the confirmation list is complete and the transaction is confirmed
TargetConfirmationCount uint64 `json:"targetConfirmationCount"` // the target number of confirmations for this reconcile request
CurrentConfirmationCount uint64 `json:"currentConfirmationCount"` // the current number of confirmations for this reconcile request
Timestamp *ethtypes.HexUint64 `json:"timestamp,omitempty"` // the on-chain timestamp of the transaction's block - only populated in "full" chain tracking mode, since "light" mode never fetches a block

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @davecrighton , the naming of the variable will need to be tightened up if it's being put at the top level.

As per my understanding, this is not when the transaction is confirmed, it's when the transaction is included in a block and subject to change if the chain forks etc.

TxnBlockTimestamp / ReceiptBlockTimestamp/ ReceiptTimestamp could be options for the name. ReceiptTimestamp would be my pick.

Another solution could be extending Confirmations []*ethrpc.MinimalBlockInfo to include the timestamps for each block to provide more detailed information.

Signed-off-by: Dave Crighton <dave.crighton@kaleido.io>

@Chengxuan Chengxuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Chengxuan
Chengxuan merged commit 2fc4b8b into hyperledger-firefly:main Sep 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants