disable pin limit caching

This commit is contained in:
ansuz 2017-07-04 15:50:52 +02:00
parent 9c1eaf9c1a
commit 3fe0baa956
1 changed files with 3 additions and 1 deletions

View File

@ -832,7 +832,9 @@ define([
if (!pinsReady()) { return void cb('RPC_NOT_READY'); }
var account = common.account;
if (typeof(account.limit) !== 'number' ||
var ALWAYS_REVALIDATE = true;
if (ALWAYS_REVALIDATE || typeof(account.limit) !== 'number' ||
typeof(account.plan) !== 'string' ||
typeof(account.note) !== 'string') {
return void rpc.getLimit(function (e, limit, plan, note) {