Skip to content

compute commit, mass calculation and generator fixes - #1074

Open
IzioDev wants to merge 8 commits into
kaspanet:masterfrom
IzioDev:tmp/generator-changes
Open

compute commit, mass calculation and generator fixes#1074
IzioDev wants to merge 8 commits into
kaspanet:masterfrom
IzioDev:tmp/generator-changes

Conversation

@IzioDev

@IzioDev IzioDev commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Shifts transaction generation and WASM bindings toward the new compute_commit model, while updating mass calculations and covenant handling across consensus, wallet core, and WASM examples:

  • add wasm wrapper for ComputeCommit.
  • wallet generator settings now accepts compute_commit and tx version, instead of plain sig_op_count.
  • wallet mass calculation now uses consensus mass primitives from consensus.
  • wasm tx fee and mass getters now return correct values.
  • covenant support in wasm create transaction.
  • guard: generator will not pick utxos having a covenant_id.

Ok(settings)
}

#[allow(clippy::too_many_arguments)]

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

to remove

@IzioDev IzioDev changed the title Tmp/generator changes compute commit, mass calculation and generator fixes Jul 9, 2026
Fees::None => unreachable!("Fees::None can not occur for final transaction"),
};

let max_tx_mass_for_additional_inputs = TRANSACTION_MASS_BOUNDARY_FOR_ADDITIONAL_INPUT_ACCUMULATION;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

remove and use const directly

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.

1 participant