Skip to content

fix: we should await mark utxos with proposal id to prevent a race condition#250

Merged
andreabadesso merged 1 commit into
release-candidatefrom
fix/mark-utxos-on-tx-proposal
Apr 15, 2025
Merged

fix: we should await mark utxos with proposal id to prevent a race condition#250
andreabadesso merged 1 commit into
release-candidatefrom
fix/mark-utxos-on-tx-proposal

Conversation

@andreabadesso
Copy link
Copy Markdown
Collaborator

Motivation

We should wait until the utxos are marked as spent before returning a success in the tx proposal creation. This was most likely creating a race condition where we were attempting to clear the tx proposal from utxos but they weren't even marked yet and another potential issue where the lambda would kill the connection before the query even runs.

Acceptance Criteria

  • We should await the utxo marking in the createTxProposal lambda

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged
  • Make sure either the unit tests and/or the QA tests are capable of testing the new features
  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

@andreabadesso andreabadesso self-assigned this Apr 15, 2025
@andreabadesso andreabadesso added the bug Something isn't working label Apr 15, 2025
@andreabadesso andreabadesso moved this from Todo to In Progress (Done) in Hathor Network Apr 15, 2025
@github-project-automation github-project-automation Bot moved this from In Progress (Done) to In Review (WIP) in Hathor Network Apr 15, 2025
@andreabadesso andreabadesso changed the base branch from master to release-candidate April 15, 2025 14:34
@andreabadesso andreabadesso merged commit b709318 into release-candidate Apr 15, 2025
1 check passed
@github-project-automation github-project-automation Bot moved this from In Review (WIP) to Waiting to be deployed in Hathor Network Apr 15, 2025
@andreabadesso andreabadesso deleted the fix/mark-utxos-on-tx-proposal branch April 15, 2025 14:34
@andreabadesso andreabadesso moved this from Waiting to be deployed to Done in Hathor Network May 9, 2025
r4mmer added a commit that referenced this pull request Jul 3, 2025
…-lib-v2.1.1

* origin/master:
  chore: bumped to v1.9.0 (#259)
  chore: nano-testnet-hackaton (#243)
  fix: address invalid parameter (#235)
  chore: added htr token seed (#256)
  fix: invalid assert in release tx proposal utxos (#251)
  fix: we should await mark utxos with proposal id to prevent a race condition (#250)
  Merge pull request #248 from HathorNetwork/feat/version-camel-case
  fix: v1.8.2-rc.3 qa issues (#246)
  fix: firebase env variables should be optional (#245)
  chore: remove error handler middleware from authorization lambda (#242)
  feat: version data validation (#241)
  fix: Mainnet release script (#203)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants