-
-
Notifications
You must be signed in to change notification settings - Fork 86
Fix escrow fee #859
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
base: develop
Are you sure you want to change the base?
Fix escrow fee #859
Conversation
7976797 to
9225b07
Compare
|
@damccull it's still a draft? |
|
@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 |
|
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) { |
There was a problem hiding this comment.
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)There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
@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