From 4a6836108a803fd1dea8620c91db44fb5b820214 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 29 Mar 2019 06:05:37 +0100 Subject: [PATCH] add sync methods --- dist/bundle.js | 10 ++++++++++ src/lbry.js | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/dist/bundle.js b/dist/bundle.js index 297ffc4..3b60adc 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -2347,6 +2347,16 @@ Lbry.utxo_release = function () { 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.connect = function () { if (Lbry.connectPromise === null) { diff --git a/src/lbry.js b/src/lbry.js index 765ac27..3554362 100644 --- a/src/lbry.js +++ b/src/lbry.js @@ -93,6 +93,10 @@ Lbry.claim_tip = (params = {}) => daemonCallWithResult('claim_tip', params); Lbry.transaction_list = (params = {}) => daemonCallWithResult('transaction_list', 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.connect = () => { if (Lbry.connectPromise === null) {