helium / blockchain-core

Apache License 2.0
213 stars 85 forks source link

refine receipt validation test #1362

Open jeffgrunewald opened 2 years ago

jeffgrunewald commented 2 years ago

Refine the common tests that assert when validation of receipts_v2 during witnesses is both enabled and disabled via the chain variable poc_receipt_witness_validation.

This new version of the test asserts that when validation is enabled, one witness successfully passes validation while the other witness fails (with an invalid frequency for its asserted region). When the validation is disabled in the other test, both witnesses are successfully counted as "valid".