Testing proofofwork #2276

Open
PeterSurda wants to merge 8 commits from gitea-63 into v0.6

8 Commits

Author SHA1 Message Date
73119af407
Test singleWorker._doPOWDefaults(), make it a classmethod (closes: #1834) 2025-01-15 19:37:00 +02:00
338c006bb1
Inherit TestProofofworkBase from partial.TestPartialRun 2025-01-15 19:37:00 +02:00
822950e8f3
Add tests for python PoW and a check for StopIteration in the calculate() 2025-01-15 19:37:00 +02:00
a84168f273
Format proofofwork once again 2025-01-15 19:36:59 +02:00
3b6db99152
Skip TestProofofwork based on BITMESSAGE_TEST_POW (set for py36 currently),
a minimal test case TestProofofworkBase runs in all envs.
2025-01-15 19:36:59 +02:00
c6ae9f6843
Use proofofwork.calculate() everywhere 2025-01-15 19:36:58 +02:00
120b044e2e
Define a couple of functions in proofofwork for common calculations,
add a test checking the result of proofofwork.calculate(),
define common samples for the pow.
2025-01-15 19:36:58 +02:00
d5f8d84f78
Initial efforts for testing the proofofwork:
a test case, a test with data and python3 support.
2025-01-15 19:36:52 +02:00