Skip to content

Commit

Permalink
[refactor] #2974: Prevent block spoofing without full revalidation
Browse files Browse the repository at this point in the history
Signed-off-by: Shanin Roman <shanin1000@yandex.ru>
  • Loading branch information
Erigara authored and SamHSmith committed Dec 9, 2022
1 parent 283eb56 commit 795d91a
Show file tree
Hide file tree
Showing 13 changed files with 673 additions and 476 deletions.
2 changes: 1 addition & 1 deletion core/benches/kura.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async fn measure_block_size_for_n_validators(n_validators: u32) {
.sign(KeyPair::generate().expect("Failed to generate KeyPair."))
.unwrap();
}
let block: VersionedCommittedBlock = block.commit().into();
let block: VersionedCommittedBlock = block.commit_unchecked().into();
let mut block_store = StdFileBlockStore::new(dir.path());
block_store.create_files_if_they_do_not_exist().unwrap();

Expand Down
Loading

0 comments on commit 795d91a

Please sign in to comment.