-
Notifications
You must be signed in to change notification settings - Fork 650
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Partially fix #511 assert() issue #591
Conversation
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.
Looks good. Built + replayed ok.
@@ -229,7 +229,7 @@ namespace graphene { namespace chain { | |||
|
|||
account_id_type fee_payer()const { return account; } | |||
void validate()const { | |||
FC_ASSERT( amount.amount > 0, "Must settle at least 1 unit" ); | |||
FC_ASSERT( !"virtual operation" ); | |||
} |
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.
Hm, perhaps this requires a hardfork after all? What if the op turns up in a proposal?
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.
Yes, you're correct. I'll revert this change. Let's fix it more carefully in another PR.
cc4bd2e
to
68996fb
Compare
Reverted the code for #588. Please review again. |
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.
looks good.
This PR changes a few
assert()
toFC_ASSERT()
which is described in #511 and also some other code related.bitshares/bitshares-fc#9 need to be merged and appended to this PR.