Skip to content

Develop#255

Open
Super-Genius wants to merge 98 commits intomainfrom
develop
Open

Develop#255
Super-Genius wants to merge 98 commits intomainfrom
develop

Conversation

@Super-Genius
Copy link
Copy Markdown
Contributor

No description provided.

itsafuu and others added 30 commits February 5, 2026 20:52
…ring data, this becomes model specific. Could consider for future though
…rger source in smaller batches, perfect for our system
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f19e71ec59

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

for ( std::uint32_t i = 0; i < outputs.size(); ++i )
{
GeniusUTXO new_utxo( hash, i, outputs[i].encrypted_amount, outputs[i].token_id );
utxo_manager_.PutUTXO( new_utxo, outputs[i].dest_address );
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Propagate mint-v2 UTXO update failures

The mint-v2 parse path drops the UTXOManager return values and always reports success. PutUTXO/ConsumeUTXOs now return outcome::result because persistence can fail (StoreUTXOs), but this branch ignores those errors; if the backing store write fails (e.g., I/O error), the transaction is treated as parsed while the UTXO state is not durably updated, which can desynchronize balances after restart.

Useful? React with 👍 / 👎.

Comment on lines +170 to +175
if ( !dag.previous_hash().empty() )
{
auto maybe_hash = base::Hash256::fromReadableString( dag.previous_hash() );
if ( maybe_hash )
{
mint_inputs.push_back( { maybe_hash.value(), 0, {} } );
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Stop deriving mint inputs from DAG previous hash

MintTransactionV2::New treats dag.previous_hash() as a spend input (output_idx = 0), but mint requests pass external transaction references through previous_hash. This makes minting unexpectedly mutate UTXO spend state: a parseable hash can consume a local UTXO if it matches an existing tx hash, even though minting should be creation-only. At minimum this couples mint validity to an unrelated DAG field and can lead to accidental fund consumption/state corruption.

Useful? React with 👍 / 👎.

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.

4 participants