Fix price feed expiration check, fix #540

This commit is contained in:
abitmore 2016-03-09 14:37:33 +01:00
parent 529f0bef0e
commit 3c6f4ce223

View file

@ -212,7 +212,7 @@ namespace graphene { namespace chain {
time_point_sec feed_expiration_time()const
{ return current_feed_publication_time + options.feed_lifetime_sec; }
bool feed_is_expired(time_point_sec current_time)const
{ return feed_expiration_time() >= current_time; }
{ return feed_expiration_time() <= current_time; }
void update_median_feeds(time_point_sec current_time);
};