Testing proofofwork #2276

Merged
PeterSurda merged 10 commits from gitea-63 into v0.6 2025-01-21 04:03:38 +01:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 00d9afb96b - Show all commits

View File

@ -343,7 +343,7 @@ def resetPoW():
def init():
"""Initialise PoW"""
# pylint: disable=broad-exception-caught,disable=global-statement
# pylint: disable=broad-exception-caught,global-statement
global bitmsglib, bmpow
openclpow.initCL()

View File

@ -76,6 +76,7 @@ class TestProofofwork(TestProofofworkBase):
# pylint: disable=import-outside-toplevel
from class_singleWorker import singleWorker
# pylint: disable=no-member
with self.assertLogs('default') as cm:
self.assertTrue(protocol.isProofOfWorkSufficient(
singleWorker._doPOWDefaults(payload, TTL, log_prefix='+')))