From 7e9d00a6655fad20ff9ba7eadff129bfdfdbaa49 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Thu, 16 May 2019 10:26:54 -0700 Subject: [PATCH] node: pass options from `getTXByAddress` to `getMetaByAddress` --- lib/node/fullnode.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/node/fullnode.js b/lib/node/fullnode.js index 0dff21d3..1c0642b9 100644 --- a/lib/node/fullnode.js +++ b/lib/node/fullnode.js @@ -556,11 +556,15 @@ class FullNode extends Node { * Retrieve transactions pertaining to an * address from the mempool or chain database. * @param {Address} addr + * @param {Object} options + * @param {Number} options.limit + * @param {Number} options.reverse + * @param {Buffer} options.after * @returns {Promise} - Returns {@link TX}[]. */ - async getTXByAddress(addr) { - const mtxs = await this.getMetaByAddress(addr); + async getTXByAddress(addr, options = {}) { + const mtxs = await this.getMetaByAddress(addr, options); const out = []; for (const mtx of mtxs)