Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

fix(rpc): transactions generated by rpc build_dao_claim_transaction will cause random -14 dao script validation error #432

Merged
merged 4 commits into from
Jun 17, 2022

Conversation

EthanYuan
Copy link
Collaborator

What this PR does / why we need it:

  • Fixed a randomly failing integration test: test_dao_by_out_point

    • description: Sometimes a failure occurs when running test_dao_by_out_point, in this test case, the withdrawing cells are from different transactions.
    • reason: get_transactions_with_status returns the input_cells in the transaction but the order is not guaranteed to be in the order in the transaction. In this case, build_dao_claim_transaction relies on the assumption that the input_cells are in order to locate the deposit cells by withdrawing cells’ outpoint index.
  • refactored integration test test_simple_transfer_udt_from_provide_capacity:avoid the possibility of affecting other tests.

Which issue(s) this PR fixes:

Fixes #

Which docs this PR relation:

Ref #

Which toolchain this PR adaption:

No Breaking Change

Special notes for your reviewer:

@EthanYuan EthanYuan requested a review from quake June 16, 2022 17:09
@EthanYuan EthanYuan changed the title fix: randomly failing integration test test_dao_by_out_point fix(rpc): transactions generated by rpc build_dao_claim_transaction will cause random -14 dao script validation error Jun 17, 2022
@EthanYuan EthanYuan merged commit 6ca1a07 into nervosnetwork:dev-0.4 Jun 17, 2022
@EthanYuan EthanYuan deleted the dev-0.4-fix-dao-claim branch June 17, 2022 03:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants