Skip to content

Commit

Permalink
Enable onchain verification in correctness tests. (#1221)
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Littley <[email protected]>
  • Loading branch information
cody-littley authored Feb 6, 2025
1 parent bb12306 commit c2f781d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/v2/client/test_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,13 @@ func (c *TestClient) VerifyBlobCertification(
percent, ok := signingPercents[quorum]
require.True(c.T, ok)
require.True(c.T, percent >= 0 && percent <= 100)
require.True(c.T, percent >= c.Config.MinimumSigningPercent)
require.True(c.T, percent >= c.Config.MinimumSigningPercent,
"quorum %d signed by only %d%%", quorum, percent)
}

// TODO This currently does not pass!
// On-chain verification
//err = c.CertVerifier.VerifyCertV2FromSignedBatch(context.Background(), signedBatch, inclusionInfo)
//require.NoError(c.T, err)
err = c.CertVerifier.VerifyCertV2FromSignedBatch(context.Background(), signedBatch, inclusionInfo)
require.NoError(c.T, err)
}

// ReadBlobFromRelays reads a blob from the relays and compares it to the given payload.
Expand Down

0 comments on commit c2f781d

Please sign in to comment.