add sync methods

This commit is contained in:
Akinwale Ariwodola 2019-03-29 06:05:37 +01:00
parent 1f211d183d
commit 4a6836108a
2 changed files with 14 additions and 0 deletions

10
dist/bundle.js vendored
View file

@ -2347,6 +2347,16 @@ Lbry.utxo_release = function () {
return daemonCallWithResult('utxo_release', params); return daemonCallWithResult('utxo_release', params);
}; };
// sync
Lbry.sync_hash = function () {
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return daemonCallWithResult('sync_hash', params);
};
Lbry.sync_apply = function () {
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return daemonCallWithResult('sync_apply', params);
};
Lbry.connectPromise = null; Lbry.connectPromise = null;
Lbry.connect = function () { Lbry.connect = function () {
if (Lbry.connectPromise === null) { if (Lbry.connectPromise === null) {

View file

@ -93,6 +93,10 @@ Lbry.claim_tip = (params = {}) => daemonCallWithResult('claim_tip', params);
Lbry.transaction_list = (params = {}) => daemonCallWithResult('transaction_list', params); Lbry.transaction_list = (params = {}) => daemonCallWithResult('transaction_list', params);
Lbry.utxo_release = (params = {}) => daemonCallWithResult('utxo_release', params); Lbry.utxo_release = (params = {}) => daemonCallWithResult('utxo_release', params);
// sync
Lbry.sync_hash = (params = {}) => daemonCallWithResult('sync_hash', params);
Lbry.sync_apply = (params = {}) => daemonCallWithResult('sync_apply', params);
Lbry.connectPromise = null; Lbry.connectPromise = null;
Lbry.connect = () => { Lbry.connect = () => {
if (Lbry.connectPromise === null) { if (Lbry.connectPromise === null) {