forked from near/nearcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
state_witness: do not include new transactions with each state witness (
near#12270) First and foremost this PR introduces an integration test that attempts to push through a chunk that has a few invalid transactions. Previously this would fail and make the entire chunk invalid. A new protocol feature is introduced that adjusts the code in few strategic places to remove the requirement for all transactions within a chunk to be valid, instead delegating the responsibility of checking all aspects of transaction validity to the moment when transactions get converted to receipts. Any transactions that are found to be invalid are simply ignored. At this point all validators should agree equally as to which transactions should be converted and which ones should be discarded.
- Loading branch information
Showing
24 changed files
with
638 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
pub mod bandwidth_scheduler_protocol_upgrade; | ||
mod bandwidth_scheduler_protocol_upgrade; | ||
mod chunk_validator_kickout; | ||
pub mod congestion_control; | ||
pub mod congestion_control_genesis_bootstrap; | ||
pub mod contract_distribution_cross_shard; | ||
pub mod contract_distribution_simple; | ||
mod congestion_control; | ||
mod congestion_control_genesis_bootstrap; | ||
mod contract_distribution_cross_shard; | ||
mod contract_distribution_simple; | ||
mod create_delete_account; | ||
pub mod epoch_sync; | ||
pub mod fix_min_stake_ratio; | ||
pub mod in_memory_tries; | ||
pub mod max_receipt_size; | ||
pub mod multinode_stateless_validators; | ||
pub mod multinode_test_loop_example; | ||
pub mod protocol_upgrade; | ||
mod epoch_sync; | ||
mod fix_min_stake_ratio; | ||
mod in_memory_tries; | ||
mod max_receipt_size; | ||
mod multinode_stateless_validators; | ||
mod multinode_test_loop_example; | ||
mod protocol_upgrade; | ||
mod resharding_v3; | ||
pub mod simple_test_loop_example; | ||
pub mod state_sync; | ||
pub mod syncing; | ||
pub mod view_requests_to_archival_node; | ||
mod simple_test_loop_example; | ||
mod state_sync; | ||
mod syncing; | ||
mod view_requests_to_archival_node; |
Oops, something went wrong.