Skip to content

Fix MULTI_PAYMENT balance check (NO_BALANCE validation)#306

Open
QuickMythril wants to merge 1 commit intoQortal:masterfrom
QuickMythril:patch-1
Open

Fix MULTI_PAYMENT balance check (NO_BALANCE validation)#306
QuickMythril wants to merge 1 commit intoQortal:masterfrom
QuickMythril:patch-1

Conversation

@QuickMythril
Copy link

The MULTI_PAYMENT validator currently returns NO_BALANCE when the sender’s confirmed QORT balance is greater than the fee. That comparison is reversed and causes all MULTI_PAYMENT transactions to be rejected even when the sender has sufficient funds.

This PR flips the check to ensure NO_BALANCE is only raised when balance is less than the required fee. This restores expected validation behavior and allows MULTI_PAYMENT transactions to pass when the sender can cover the fee and payment amounts.

The MULTI_PAYMENT validator currently returns NO_BALANCE when the sender’s confirmed QORT balance is greater than the fee. That comparison is reversed and causes all MULTI_PAYMENT transactions to be rejected even when the sender has sufficient funds.

This PR flips the check to ensure NO_BALANCE is only raised when balance is less than the required fee. This restores expected validation behavior and allows MULTI_PAYMENT transactions to pass when the sender can cover the fee and payment amounts.
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