Skip to content

Adversary being able to produce new blocks after an invalid block #777

New issue

Have a question about this project? Sign up for a free account to open an issue and contact its maintainers and the community.

By clicking “Sign up for ”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on ? Sign in to your account

Merged
merged 11 commits into from
Jul 1, 2022
PrevPrevious commit
Next Next commit
fix: test only one challenge
  • Loading branch information
@daveroga
daveroga committedJun 30, 2022
commit 1c7de259d4d647d86575a2494b251debb7fd652c
4 changes: 2 additions & 2 deletions test/adversary/adversary-code/block.mjs
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,7 +8,7 @@ const error = [
'IncorrectTreeRoot', // Needs two prior blocks
'ValidBlock',
'ValidBlock',
'ValidBlock',
/* 'ValidBlock',
'ValidBlock',
'ValidBlock',
'ValidBlock',
Expand All@@ -23,7 +23,7 @@ const error = [
'HistoricRootError',
'ValidBlock',
'IncorrectProof',
'ValidBlock',
'ValidBlock', */
];

// eslint-disable-next-line no-unused-vars
Expand Down
4 changes: 2 additions & 2 deletions test/adversary/adversary-code/database.mjs
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,7 +12,7 @@ const error = [
'IncorrectTreeRoot',
'ValidTransaction',
'ValidTransaction',
'ValidTransaction',
/* 'ValidTransaction',
'ValidTransaction',
'ValidTransaction',
'ValidTransaction',
Expand All@@ -27,7 +27,7 @@ const error = [
'HistoricRootError',
'ValidTransaction',
'IncorrectProof',
'ValidTransaction',
'ValidTransaction', */
];

const duplicateNullifier = async number => {
Expand Down