Skip to content

Allow validated credit creation transactions#5

Merged
webbananaunite merged 1 commit into
mainfrom
fix/credit-creation-validation
May 24, 2026
Merged

Allow validated credit creation transactions#5
webbananaunite merged 1 commit into
mainfrom
fix/credit-creation-validation

Conversation

@webbananaunite

@webbananaunite webbananaunite commented May 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Treat transactions whose withdrawal account is the money-supply account (-) as credit creation and skip the normal maker balance check for them.
  • Restrict credit creation validation to allowed issuance claims: booker fee, basic income, and born.
  • Build block booker-fee transactions as balanced credit-creation transactions with the booker as the deposit account.
  • Add regression tests for booker-fee credit creation and ordinary no-balance transactions.

Verification

  • swift test --build-path /Users/yoichi/appOutput/blocks
  • /Users/yoichi/.swiftly/bin/swift build -v --swift-sdk x86_64-swift-linux-musl --build-path /Users/yoichi/appOutput/blocks-linux-musl

@webbananaunite webbananaunite merged commit 1c96b0b into main May 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant