Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(consensus): reject transactions that DOWN substates pledged as input refs #954

Closed

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Mar 5, 2024

Description

fix(consensus): reject substates that are DOWNed as input refs

Motivation and Context

When checking substate locked, we use the diff to determine which inputs were written and attempt to lock those.
We can determine which inputs should have been input refs from this. We should consider removing input_refs because (1) these are difficult to determine by the user, and (2) the validator node can determine which inputs are never written from the transaction result which it always has by the time we vote on proposals.

How Has This Been Tested?

Manually tested that create account and create nft still work. Other manual tests that check this specific case are difficult because the indexer (autofiller) will always fill the inputs (unless the version matches exactly). Since some of this code will change when we can submit transactions to validator nodes without autofilling, no fixes for this are in this PR.

What process can a PR reviewer use to test or verify this change?

Submit a transaction that has an input ref including the correct version that is not written to

Breaking Changes

  • None
  • Requires data directory to be deleted
  • Other - Please specify

Copy link

github-actions bot commented Mar 5, 2024

Test Results (CI)

501 tests  ±0   501 ✅ ±0   2h 39m 32s ⏱️ + 21m 13s
 60 suites ±0     0 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit 4f54d4a. ± Comparison against base commit eb159a2.

♻️ This comment has been updated with latest results.

@sdbondi sdbondi changed the title fix(consensus): reject substates that are DOWNed as input refs fix(consensus): reject transactions that DOWN substates pledged as input refs Mar 6, 2024
* development:
  fix(wallet): preserve parent when recording substate addresses (tari-project#955)
  refactor(engine)!: store NFT data as CBOR value (tari-project#957)
  fix(vn/webui): fix template table (tari-project#962)
  fix(walletd): fix query for NonFungible (tari-project#950)
  refactor(tx-builder): allow building unsigned transactions (tari-project#939)
* development:
  fix(consensus)!: add exhaust burn per transaction, fix block fee malleability (tari-project#942)
@sdbondi
Copy link
Member Author

sdbondi commented May 1, 2024

Closing as this issue has been addressed in #1023

@sdbondi sdbondi closed this May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants