From 78098bcad57c3a2582ac6c21f7b1547b489617a8 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 21 Feb 2016 16:33:20 -0800 Subject: [PATCH] fix getheaders sync. --- lib/bcoin/peer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bcoin/peer.js b/lib/bcoin/peer.js index bcb557de..dfc3f33c 100644 --- a/lib/bcoin/peer.js +++ b/lib/bcoin/peer.js @@ -625,7 +625,7 @@ Peer.prototype._handleReject = function handleReject(payload) { entry.e.emit('reject', payload); }; -Peer.prototype.loadHeaders = function loadHeaders(hashes, stop) { +Peer.prototype.getHeaders = function getHeaders(hashes, stop) { utils.debug( 'Requesting headers packet from %s with getheaders', this.host);