add clear channel rpc

This commit is contained in:
ansuz
2017-07-12 18:54:08 +02:00
parent 89af8e4472
commit eeb2ee2d17
4 changed files with 108 additions and 0 deletions

View File

@@ -945,6 +945,11 @@ define([
common.getPinnedUsage(todo);
};
common.clearOwnedChannel = function (channel, cb) {
if (!pinsReady()) { return void cb('RPC_NOT_READY'); }
rpc.clearOwnedChannel(channel, cb);
};
common.uploadComplete = function (cb) {
if (!pinsReady()) { return void cb('RPC_NOT_READY'); }
rpc.uploadComplete(cb);