Skip to content

Conversation

@jon4hz
Copy link

@jon4hz jon4hz commented Aug 15, 2022

Hi!
I added a field extraData to the TX struct to display a transactions extra data in plain text.
Currently the user has to throw the payload manually in a hex decoder to see the extra data which is a bit annoying.

@cbytensky
Copy link
Owner

Can’t get it.
Why payload from 120’s byte have to be a string? Is it some sort of standard?
And surely additional payload shouldn’t take up extra storage.

@jon4hz
Copy link
Author

jon4hz commented Sep 30, 2022

The extra data is often used to add some context for miners and pools. E.g. which miner mined a particular block. This additional data is plain text and should be displayed as string.

I agree on the storage though, not sure why I initially implemented it like this.

@jon4hz
Copy link
Author

jon4hz commented Oct 1, 2022

Example of the extra data set by acc-pool:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants