Be more explicit about GRAPHENE_COMMITTEE_ACCOUNT

This commit is contained in:
theoreticalbts 2015-08-26 15:31:05 -04:00
parent 0ae94f88d4
commit 143c1395c2
2 changed files with 2 additions and 2 deletions

View file

@ -457,7 +457,7 @@ void_result asset_publish_feeds_evaluator::do_evaluate(const asset_publish_feed_
FC_ASSERT( !bitasset.has_settlement(), "No further feeds may be published after a settlement event" );
FC_ASSERT(o.feed.settlement_price.quote.asset_id == bitasset.options.short_backing_asset);
//Verify that the publisher is authoritative to publish a feed
if( base.issuer == account_id_type() )
if( base.issuer == GRAPHENE_COMMITTEE_ACCOUNT )
{
//It's a committee_member-fed asset. Verify that publisher is an active committee_member or witness.
FC_ASSERT(d.get(GRAPHENE_COMMITTEE_ACCOUNT).active.account_auths.count(o.publisher) ||

View file

@ -47,7 +47,7 @@ void_result proposal_create_evaluator::do_evaluate(const proposal_create_operati
FC_ASSERT( other.size() == 0 ); // TODO: what about other???
if( auths.find(account_id_type()) != auths.end() )
if( auths.find(GRAPHENE_COMMITTEE_ACCOUNT) != auths.end() )
{
GRAPHENE_ASSERT(
o.review_period_seconds.valid(),