From 7ca60179866bd0bb3cabc7e55c6a3ed88f7ccdce Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Wed, 7 Dec 2016 16:29:04 -0500 Subject: [PATCH] Add lbry.getPeersForBlobHash() --- js/lbry.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/lbry.js b/js/lbry.js index dffb903be..4be044fb0 100644 --- a/js/lbry.js +++ b/js/lbry.js @@ -183,6 +183,10 @@ lbry.getCostEstimate = function(name, callback) { lbry.call('get_est_cost', { name: name }, callback); } +lbry.getPeersForBlobHash = function(blobHash, callback) { + lbry.call('get_peers_for_hash', { blob_hash: blobHash }, callback) +} + lbry.getFileStatus = function(name, callback) { lbry.call('get_lbry_file', { 'name': name }, callback); }