From 12300579701f65eb0ccc3ad33049435690dfdf6a Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 12 Mar 2020 11:31:08 -0400 Subject: [PATCH] disable IS_PAD_PINNED --- lib/commands/pin-rpc.js | 1 + lib/rpc.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/commands/pin-rpc.js b/lib/commands/pin-rpc.js index 2888f1e61..11648fced 100644 --- a/lib/commands/pin-rpc.js +++ b/lib/commands/pin-rpc.js @@ -546,6 +546,7 @@ const deferResponse = function (Env, channel, cb) { }; Pinning.isChannelPinned = function (Env, channel, cb) { + return void cb(void 0, true); // XXX // if the pins are fully loaded then you can answer yes/no definitively if (Env.pinsLoaded) { return void cb(void 0, !isEmpty(Env.pinnedPads[channel])); diff --git a/lib/rpc.js b/lib/rpc.js index c54edf31d..241f77d41 100644 --- a/lib/rpc.js +++ b/lib/rpc.js @@ -198,7 +198,7 @@ RPC.create = function (Env, cb) { updateLimitDaily(); Env.intervals.dailyLimitUpdate = setInterval(updateLimitDaily, 24*3600*1000); - Pinning.loadChannelPins(Env); + //Pinning.loadChannelPins(Env); // XXX // expire old sessions once per minute Env.intervals.sessionExpirationInterval = setInterval(function () {