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(engine): finalize errors (e.g. dangling bucket) reject the main transaction only #1109

Merged
merged 5 commits into from
Aug 6, 2024

Conversation

mrnaveira
Copy link
Collaborator

Description

Extracted the validate_finalized check invocation from the StateTracker into the TransactionProcessor, to be done automatically at the end of all instructions and fee_instructions.

Motivation and Context

Currently, when the main instruction set has a dangling bucket (or another finalizing error), the whole transaction is rejected. What we want instead is only the main transaction being rejected, and the fees are still paid (AcceptFeeRejectRest)

How Has This Been Tested?

New unit test (dangling_bucket_pay_fees) in the engine to reproduce this scenario

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

Reproduce a dangling bucket error and check that the fees are paid

Breaking Changes

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

Copy link

github-actions bot commented Aug 5, 2024

Test Results (CI)

556 tests  +1   556 ✅ +1   1h 42m 28s ⏱️ + 13m 23s
 65 suites ±0     0 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit 3b7d734. ± Comparison against base commit e1c94f1.

Copy link
Member

@sdbondi sdbondi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Nice!

@sdbondi sdbondi added this pull request to the merge queue Aug 6, 2024
@sdbondi sdbondi changed the title fix(engine): finalize errors (e.g. dangling bucket) reject the entire transaction fix(engine): finalize errors (e.g. dangling bucket) reject the main transaction Aug 6, 2024
@sdbondi sdbondi changed the title fix(engine): finalize errors (e.g. dangling bucket) reject the main transaction fix(engine): finalize errors (e.g. dangling bucket) reject the main transaction only Aug 6, 2024
Merged via the queue into tari-project:development with commit 847682e Aug 6, 2024
14 checks passed
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.

3 participants