Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4779 from golemfactory/b0.21-fix-rct-serialization
Browse files Browse the repository at this point in the history
explicitly pass the stats dict as `ProviderStats`
  • Loading branch information
shadeofblue authored Oct 1, 2019
2 parents 3650fc2 + 46f6fd5 commit a08148c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion golem/task/server/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import typing

from golem_messages import message
from golem_messages.datastructures.stats import ProviderStats
from golem_messages import helpers as msg_helpers
from golem_messages import utils as msg_utils

Expand Down Expand Up @@ -145,7 +146,7 @@ def send_report_computed_task(
multihash=waiting_task_result.result_hash,
secret=waiting_task_result.result_secret,
options=client_options.__dict__,
stats=waiting_task_result.stats,
stats=ProviderStats(**waiting_task_result.stats),
)

signed_report_computed_task = msg_utils.copy_and_sign(
Expand Down

0 comments on commit a08148c

Please sign in to comment.