-
Notifications
You must be signed in to change notification settings - Fork 103
Validator chain invariants #1774
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
Changes from 1 commit
e2dee35
6876c19
d3de2c2
1283c2c
e60ebcd
fcc4aa4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,3 +13,8 @@ CREATE TABLE validated_transactions ( | |
|
|
||
| CREATE INDEX idx_validated_transactions_account_id ON validated_transactions(account_id); | ||
| CREATE INDEX idx_validated_transactions_block_num ON validated_transactions(block_num); | ||
|
|
||
| CREATE TABLE block_headers ( | ||
| block_num INTEGER PRIMARY KEY, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we also store
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That depends on whether we want to do any additional checks on top of the block number + commitment ones I have now. @bobbinth may have had some ideas on that point - whether there is more to compare with a new / proposed chain tip (not signed) against the previous signed chain tip beyond just block number and commitment continuity. |
||
| block_header BLOB NOT NULL | ||
| ) WITHOUT ROWID; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| mod block_validation; | ||
| mod db; | ||
| pub mod db; | ||
| mod server; | ||
| mod signers; | ||
| mod tx_validation; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.