Skip to content
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

Merged
merged 1 commit into from
Jan 22, 2018

Conversation

abitmore
Copy link
Member

This PR changes a few assert() to FC_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.

Copy link
Contributor

@pmconrad pmconrad left a 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" );
}
Copy link
Contributor

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?

Copy link
Member Author

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.

@abitmore abitmore force-pushed the 511-assert-db-block branch from cc4bd2e to 68996fb Compare January 21, 2018 19:58
@abitmore
Copy link
Member Author

Reverted the code for #588. Please review again.

@abitmore abitmore requested a review from pmconrad January 21, 2018 20:03
Copy link
Member

@oxarbitrage oxarbitrage left a comment

Choose a reason for hiding this comment

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

looks good.

@oxarbitrage oxarbitrage merged commit 02a4499 into bitshares:develop Jan 22, 2018
xeroc pushed a commit to peerplays-network/peerplays that referenced this pull request Feb 11, 2019
@abitmore abitmore deleted the 511-assert-db-block branch June 28, 2021 21:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants