Skip to content
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

Vet timestamp source from contract, not leader #563

Merged
merged 3 commits into from
Jul 9, 2018

Conversation

garious
Copy link
Contributor

@garious garious commented Jul 9, 2018

Fixes #405 @carllin, can you please review?

garious added 3 commits July 8, 2018 20:26
I wrote this, but per
https://github.com/solana-labs/solana#code-coverage, if it doesn't
break a test, it's fair game to delete.
We had a test for this, but without `Bank::time_sources` (removed in the last
commit), there's no last_time that can be trusted.
Per @aeyakovenko, contracts shouldn't trust the network for
timestamps. Instead, pass the verified public key to the
contract and let it decide if that's a public key it wants
to trust the timestamp from.

Fixes solana-labs#405
@garious garious requested a review from aeyakovenko July 9, 2018 03:10
Copy link
Member

@aeyakovenko aeyakovenko left a comment

Choose a reason for hiding this comment

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

thats awesome!

@garious garious merged commit 71f05cb into solana-labs:master Jul 9, 2018
vkomenda pushed a commit to vkomenda/solana that referenced this pull request Aug 29, 2021
* Move interactions PublicKey to User constructor

* Permit incremental interaction submissions

* Split InitializePoliciesAccount into two instructions

* Clean up BPF instruction count output

* Update Themis program

* Get submit_interactions() working on testnet

* Fix build
carllin pushed a commit to carllin/solana that referenced this pull request Apr 3, 2024
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