Skip to content

fix: handle tx with no inputs and outputs#178

Merged
andreabadesso merged 4 commits into
masterfrom
fix/handle-tx-with-no-io
Jun 25, 2024
Merged

fix: handle tx with no inputs and outputs#178
andreabadesso merged 4 commits into
masterfrom
fix/handle-tx-with-no-io

Conversation

@andreabadesso
Copy link
Copy Markdown
Collaborator

@andreabadesso andreabadesso commented Jun 20, 2024

Motivation

This should fix https://github.com/HathorNetwork/on-call-incidents/issues/179

Acceptance Criteria

  • We should add NODE_ENV to the test_integration script so that it runs locally without having to manually export it
  • We should fix an issue when a transaction has no inputs and outputs, like PoA blocks from PoA side-dags

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 Jun 20, 2024
@andreabadesso andreabadesso added the bug Something isn't working label Jun 20, 2024
Comment thread packages/daemon/src/db/index.ts
@andreabadesso andreabadesso changed the title fix: handle tx with no io fix: handle tx with no inputs and outputs Jun 21, 2024
@andreabadesso andreabadesso requested review from glevco and r4mmer June 21, 2024 00:58
r4mmer
r4mmer previously approved these changes Jun 21, 2024
Comment thread packages/daemon/package.json
glevco
glevco previously approved these changes Jun 25, 2024
Comment thread packages/daemon/package.json Outdated
@andreabadesso andreabadesso dismissed stale reviews from glevco and r4mmer via c7bf8ea June 25, 2024 14:19
@andreabadesso andreabadesso merged commit da561b5 into master Jun 25, 2024
@andreabadesso andreabadesso deleted the fix/handle-tx-with-no-io branch June 25, 2024 15:57
@andreabadesso andreabadesso mentioned this pull request Dec 9, 2024
2 tasks
andreabadesso added a commit that referenced this pull request Dec 9, 2024
* chore: deploy Nano Testnet (#168)

* fix: fetchMinRewardBlocks fails when reward_min_blocks is 0 (#177)

* fix: handle tx with no inputs and outputs (#178)

* chore: added NODE_ENV to integration tests

* fix: stop failing when there are no address balance on a transaction

* tests: added tests for the voidTransaction method

* chore: re-add test_images_down

* feat: allow sending alerts to another account (#179)

* fix: handle tx with no inputs (#181)

* tests: added tests for the voidTransaction method

* chore: re-add test_images_down

* fix: markUtxosAsVoided should not throw when inputs are empty

* fix: returning empty object on db utils and added test for services including db

* tests: fix invalid order of calls

* tests: missing tests [part 1/2] (#183)

* tests: added missing tests

* tests: added missing tests for nft push

* chore: added docker-compose to flake

* tests: ts-ignore -> ts-expect-error

* feat: handling the vertex_removed event (#182)

* feat: handling the vertex_removed event

* fix: handling empty arrays on IN conditions

* feat: handling VERTEX_REMOVED event

* tests: fix last event

* feat: voiding and removing transaction on vertex_removed event

* tests: added tests for empty array errors

* chore: using port 8085

* chore: actually using 8085

* refactor: removed misleading comment

* ci: support sub-accounts (#184)

* fix: non-standard scripts (#185)

* fix: handling utxos with empty scripts being spent

* refactor: helper to roll until an event

* chore: using latest :stable on custom and empty script docker compose

* refactor: removed unused logs

* chore: using fixed dependencies for all projects (#186)

* fix: updated balances and network name (#196)

* fix: updated throttling lib causing deploy to fail (#195)

* fix: updated firebase-admin lib version and deprecated sendMulticast (#194)

* fix: updated firebase-admin lib version and deprecated sendMulticast

* fix: tests mocking sendMulticast instead of the correct method

* fix: slow address generation (#199)

* chore: bumped to v1.6.3 (#200)

---------

Co-authored-by: Luis Helder <luislhl@gmail.com>
@andreabadesso andreabadesso mentioned this pull request Dec 11, 2024
2 tasks
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