Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aakilfernandes/eb3b484af25850438720a4208670d775 to your computer and use it in GitHub Desktop.
Save aakilfernandes/eb3b484af25850438720a4208670d775 to your computer and use it in GitHub Desktop.
Manager.prototype.sendGetBlockHeaders = function(startHeight, maxHeaders, skip, reverse, cb) {
var msg = [
startHeight,
maxHeaders || 255,
skip || 0,
reverse ? 1 : 0
];
this.send(OFFSETS.getBlockHeaders, msg, cb);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment