tari-project / tari-launchpad

A node, wallet and miner for Tari focusing on ease of use
BSD 3-Clause "New" or "Revised" License
8 stars 15 forks source link

fix: improve task delta format #197

Closed therustmonk closed 1 year ago

therustmonk commented 1 year ago

Description

Uses fields in TaskDelta instead of tuple-like types.

Motivation and Context

Tuple variants are serialized as arrays (serde behavior):

{"TaskDelta":["Base Node",{"UpdateStatus":{data}}]}

But access by keys is preferred for the UI:

{"TaskDelta":{"id: "Base Node", "delta: {"UpdateStatus":{data}}}}

How Has This Been Tested?

Manually

shanimal08 commented 1 year ago

ACK