add sync methods
This commit is contained in:
parent
1f211d183d
commit
4a6836108a
2 changed files with 14 additions and 0 deletions
10
dist/bundle.js
vendored
10
dist/bundle.js
vendored
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue