Skip to content

add miner diagnostic to block proposal data#6989

Open
benjamin-stacks wants to merge 5 commits intostacks-network:developfrom
benjamin-stacks:feat/miner-diagnostic-proposal-data
Open

add miner diagnostic to block proposal data#6989
benjamin-stacks wants to merge 5 commits intostacks-network:developfrom
benjamin-stacks:feat/miner-diagnostic-proposal-data

Conversation

@benjamin-stacks
Copy link
Copy Markdown
Contributor

@benjamin-stacks benjamin-stacks commented Mar 13, 2026

The exact list of things that should be included in the diagnostics data is up for debate -- please opine on what things might be useful.

https://github.com/stx-labs/core-epics/issues/194

This doesn't actually add a lot of useful things yet; at this point it's
just a skeleton implementation of the approach I'm thinking about.
@hstove-stacks
Copy link
Copy Markdown
Contributor

hstove-stacks commented Mar 13, 2026

This plan makes sense to me! My main request is to add unit tests with existing block proposal fixtures (ie hex serialized versions) and do simple round-trip serialization tests. That's helped catch footguns in the past with these kinds of things.

Edit: I'm sure you've seen this, but for one change I just copy/pasted the old implementation into our tests, as a simple way of testing backwards compatibility.

@benjamin-stacks
Copy link
Copy Markdown
Contributor Author

My main request is to add unit tests with existing block proposal fixtures (ie hex serialized versions) and do simple round-trip serialization tests.

I already added some such tests for the BlockProposalData specifically. I can also add some more tests to the wrapping type, although I think it wouldn't add any new practical coverage. I may be wrong.

@hstove-stacks
Copy link
Copy Markdown
Contributor

Ah yes I do now see that we already have that kind of test, so you wouldn't be adding new coverage. Great!

@benjamin-stacks benjamin-stacks marked this pull request as ready for review March 18, 2026 13:37
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