Shares and Uncles have been swapped in JSON API #5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Seems like the "uncle_of" field has disappeared, which is causing the confusion.
(The above issue was handled via IRC, posting here for posterity)
This was introduced on
42d570a167
(and became effective after010a2a0d03
). Like other fields markedomitempty
these are not included in the result if the type is Zero. You can see the list https://git.gammaspectra.live/P2Pool/p2pool-observer/src/branch/master/cmd/index/side_block.go#L30-L80 and for example, other fields likeuncles
ormined_main_at_height
followed this behavior.if
uncle_of
is not present in the SideBlock output this is not an Uncle share. This is equivalent as assuming a non-existent field is its native Zero value.Additionally recently I have been trying to deprecate a few sections of the API to be able to mark that as
1.0
and not do changes in a backwards incompatible way, and also add a protobuf option for even better compatibility.