Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contrib: add OP_RETURN message capability to signet miner #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

torkelrogstad
Copy link

@torkelrogstad torkelrogstad commented Oct 9, 2024

Adds a new --op-return-vout argument to the miner. This can be passed multiple times. The argument expects a hex-
encoded byte value. The decoded bytes is added as an OP_RETURN output to the generated coinbase.

Used to mine this block: https://mempool.drivechain.live/block/00000334053962788aef8d9a89c724cbf33deab8a5e58de4c36bf3b50ed2123e

@torkelrogstad
Copy link
Author

I see now that it might make more sense to make the --op-return-vout flag more generic, and let it specify a totally raw output

@torkelrogstad
Copy link
Author

Update: I've now changed this from being OP_RETURN based to instead taking in the raw vout. It was used to mine this block:

https://mempool.drivechain.live/tx/4a12bc5fd6f97e9b7258ea99236b247accb1e95c635cf8693f02eafd1d2b52e1

@octobocto
Copy link

@torkelrogstad If you rebase on master, CI should pass

@torkelrogstad
Copy link
Author

CI did not pass :p

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