Skip to content

Conversation

@Her-Code
Copy link

@Her-Code Her-Code commented Jul 22, 2025

This PR introduces a small but meaningful refactor by computing txid once at the beginning of the method and reusing it throughout, instead of calling tx.compute_txid() multiple times.

Summary of Changes:

  • Added let txid = tx.compute_txid(); at the start of the method.
  • Replaced all subsequent calls to tx.compute_txid() with the local txid variable.
  • Improves code readability

…thod.

Replace subsequent calls to tx.compute_txid() with the local txid variable.
@Her-Code Her-Code changed the title Introduce a single let txid = tx.compute_txid(); at the top of the me… Precompute txid at method start Jul 24, 2025
@Her-Code Her-Code marked this pull request as ready for review July 24, 2025 19:02
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