Fix price feed expiration check, fix #540
This commit is contained in:
parent
529f0bef0e
commit
3c6f4ce223
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ namespace graphene { namespace chain {
|
||||||
time_point_sec feed_expiration_time()const
|
time_point_sec feed_expiration_time()const
|
||||||
{ return current_feed_publication_time + options.feed_lifetime_sec; }
|
{ return current_feed_publication_time + options.feed_lifetime_sec; }
|
||||||
bool feed_is_expired(time_point_sec current_time)const
|
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);
|
void update_median_feeds(time_point_sec current_time);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue