Skip to content

Conversation

@damccull
Copy link
Collaborator

@damccull damccull commented Apr 9, 2025

@deleterium, can you build this version and test it out on the test network, see if it is working as you expect now and let me know if there's any issued?

@ohager there's a lot of formatting changes, but the key changes are in the final commit.

Resolves #677

@damccull damccull requested a review from ohager April 9, 2025 00:48
@damccull damccull linked an issue Apr 9, 2025 that may be closed by this pull request
@damccull damccull added codebase Issues relating to the BRS codebase backend labels Apr 9, 2025
@ohager
Copy link
Member

ohager commented May 1, 2025

@damccull it's still a draft?

@damccull
Copy link
Collaborator Author

damccull commented May 1, 2025

@ohager yeah I need someone who knows the escrow system to test it for correct behavior.

@ohager
Copy link
Member

ohager commented May 4, 2025

@ohager yeah I need someone who knows the escrow system to test it for correct behavior.

hmm... then I'm the wrong person... hahaha - I think we need to reengineer

@damccull
Copy link
Collaborator Author

damccull commented May 6, 2025

I really think this is probably fine. I just removed the bits that check for the fee directly in the escrow API instead of letting the dynamic fee thing work. I just wanted someone more familiar with how to execute these transactions to verify them before we merge.

@Override
protected void validateAttachment(Transaction transaction) throws SignumException.ValidationException {
Attachment.AdvancedPaymentEscrowSign attachment = (Attachment.AdvancedPaymentEscrowSign) transaction.getAttachment();
if (transaction.getAmountNqt() != 0 || transaction.getFeeNqt() != Constants.ONE_SIGNA) {

Choose a reason for hiding this comment

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

I think the minimum excrow transaction fee is supposed to be hard set to a minimum of 1 so this probably should be <= or just <

if (transaction.getAmountNqt() != 0 || transaction.getFeeNqt() <= Constants.ONE_SIGNA)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmm. The point of this PR is to /remove/ the hardcoded minimum so the dynamic minimums can be used like every other transaction. Don't remember who was mentioning it, but someone complained about it. Should we leave it at 1, like it already is? What's the justification for a higher 1-signum fee?

Choose a reason for hiding this comment

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

I honestly don't know much about the escrow system. Asking why it's hard set to 1 is a mystery to me. We can go dynamic, but this would be a full team decision. @ohager @frankTheTank72

@damccull damccull added the 🔱 fork-hard Fixing this will require a hard fork. label May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend codebase Issues relating to the BRS codebase 🔱 fork-hard Fixing this will require a hard fork.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong minimum fee for sendMoneyEscrow and escrowSign

3 participants