Seed Support #56

Closed
ocnios wants to merge 173 commits from master into build
2 changed files with 4 additions and 5 deletions
Showing only changes of commit ea5d85954f - Show all commits

View file

@ -641,8 +641,8 @@ lbry.claim_list_mine = function(params={}) {
}
lbry.resolve = function(params={}) {
const claimCacheKey = 'resolve_claim_cache3',
claimCache = getLocal(claimCacheKey, {})
const claimCacheKey = 'resolve_claim_cache',
claimCache = getSession(claimCacheKey, {})
return new Promise((resolve, reject) => {
if (!params.uri) {
throw "Resolve has hacked cache on top of it that requires a URI"
@ -652,7 +652,7 @@ lbry.resolve = function(params={}) {
} else {
lbry.call('resolve', params, function(data) {
claimCache[params.uri] = data;
setLocal(claimCacheKey, claimCache)
setSession(claimCacheKey, claimCache)
resolve(data)
}, reject)
}

View file

@ -10,8 +10,7 @@ const lbryio = {
enabled: false
};
// const CONNECTION_STRING = process.env.LBRY_APP_API_URL ? process.env.LBRY_APP_API_URL : 'https://api.lbry.io/';
const CONNECTION_STRING = 'https://api.lbry.io/';
const CONNECTION_STRING = process.env.LBRY_APP_API_URL ? process.env.LBRY_APP_API_URL : 'https://api.lbry.io/';
const EXCHANGE_RATE_TIMEOUT = 20 * 60 * 1000;
lbryio.getExchangeRates = function() {