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

[chain] Charge Write Fee on Allocate + Remove Cold/Warm #608

Merged
merged 33 commits into from
Nov 9, 2023

Conversation

patrick-ogrady
Copy link
Contributor

@patrick-ogrady patrick-ogrady commented Nov 7, 2023

Resolves: #460

TODO

  • Fix rollback handling for modifications
  • Creation->Allocate, Modification -> Write
  • Remove cold/warm distinction
  • Reach 100% coverage in tstate

@patrick-ogrady patrick-ogrady added bug Something isn't working enhancement New feature or request labels Nov 7, 2023
@patrick-ogrady patrick-ogrady changed the title [chain] Charge Modify Fee on Create [chain] Charge Write Fee on Allocate + Remove Cold/Warm Nov 9, 2023
@patrick-ogrady patrick-ogrady marked this pull request as ready for review November 9, 2023 00:38
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops

} else {
ts.pendingChangedKeys[op.k] = maybe.Some(op.pastV)

switch op.t {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

New switch statement here is much easier to reason about IMO

@patrick-ogrady patrick-ogrady merged commit 77b2026 into main Nov 9, 2023
20 of 21 checks passed
@patrick-ogrady patrick-ogrady deleted the cold-modify-on-create branch November 9, 2023 00:55
@patrick-ogrady patrick-ogrady self-assigned this Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[chain/fees] Ensure Creation is Never Cheaper than a Modify
1 participant