Skip to content

Allow ProduceBlockFromStake utxos#9

Merged
ImplOfAnImpl merged 1 commit into
mintlayer-masterfrom
allow_produce_block_from_stake_utxo
Jul 2, 2025
Merged

Allow ProduceBlockFromStake utxos#9
ImplOfAnImpl merged 1 commit into
mintlayer-masterfrom
allow_produce_block_from_stake_utxo

Conversation

@ImplOfAnImpl

Copy link
Copy Markdown
Collaborator

Currently _sanitize_tx_output raises an exception on ProduceBlockFromStake tx outputs, on the assumption that such outputs are useless, but the function is called for UTXOs too, preventing us from signing ProduceBlockFromStake inputs.
In general, I don't see why we should prohibit ProduceBlockFromStake even if it's in the outputs, so I've just removed the raise statement.

P.S. the newly added test in mintlayer/mintlayer-core#1931 fails without this fix.

@ImplOfAnImpl ImplOfAnImpl requested a review from OBorce June 26, 2025 16:05
@ImplOfAnImpl ImplOfAnImpl merged commit 8214307 into mintlayer-master Jul 2, 2025
16 of 18 checks passed
@ImplOfAnImpl ImplOfAnImpl deleted the allow_produce_block_from_stake_utxo branch July 2, 2025 13:58
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