Skip to content

Add timestamp field to Block#3734

Open
nick-mobilecoin wants to merge 6 commits intomainfrom
nick/timestamp-on-block
Open

Add timestamp field to Block#3734
nick-mobilecoin wants to merge 6 commits intomainfrom
nick/timestamp-on-block

Conversation

@nick-mobilecoin
Copy link
Copy Markdown
Collaborator

@nick-mobilecoin nick-mobilecoin commented Nov 20, 2023

The Block now has a timestamp field. This field is meant to
represent a consensed timestamp for the block that all the nodes will
sign.

Currently the timestamp is not being populated. The logic to properly
set the timestamp is expected to come in a follow on PR.

@nick-mobilecoin
Copy link
Copy Markdown
Collaborator Author

nick-mobilecoin commented Nov 20, 2023

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @nick-mobilecoin and the rest of your teammates on Graphite Graphite

Comment thread consensus/service/src/byzantine_ledger/pending_values.rs
Comment thread ledger/db/src/ledger_db.rs Outdated
Comment thread ledger/db/src/test_utils/mod.rs Outdated
Comment thread api/src/convert/block.rs Outdated
Comment thread blockchain/types/src/block.rs Outdated
Comment thread blockchain/types/src/block.rs Outdated
Comment thread consensus/enclave/impl/src/lib.rs
The `Block` now has a `timestamp` field. This field is meant to
represent a consensed timestamp for the block that all the nodes will
sign.

Currently the timestamp is *not* being populated. The logic to properly
set the timestamp is expected to come in a follow on PR.
Previously one could set the `Block.timestamp` to something other than 0
when the block version didn't support timestamps. Now the timestamp will
be set to 0 if the block version doesn't support timestamps
Currently the logic to populate the timestamp has not been implemented
thus it's not practical to enforce the timestamp value at this time.
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