Skip to content

Commit

Permalink
todo
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-seppia committed Jul 10, 2024
1 parent 1509ab9 commit 05b9ec9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions consensus/src/validation/step.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ impl<T: Operations + 'static> ValidationStep<T> {
// NB: Winning attestation is produced only on reaching consensus
match executor.verify_block_header(header, true).await {
Ok((_, voters, _)) => {
// TODO: Verify Block::Faults
// - check signature
// - check not double slash

// Call Verify State Transition to make sure transactions set is
// valid

Expand Down
5 changes: 5 additions & 0 deletions node/src/chain/acceptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,11 @@ impl<DB: database::DB, VM: vm::VMExecution, N: Network> Acceptor<N, DB, VM> {
)
.await?;

// TODO: Verify Block::Faults
// - check signature
// - check not double slash


// Elapsed time header verification
histogram!("dusk_block_header_elapsed")
.record(header_verification_start.elapsed());
Expand Down

0 comments on commit 05b9ec9

Please sign in to comment.