node: pass options from getTXByAddress to getMetaByAddress

This commit is contained in:
Braydon Fuller 2019-05-16 10:26:54 -07:00
parent 34e8f22b9b
commit 7e9d00a665
No known key found for this signature in database
GPG Key ID: F24F232D108B3AD4

View File

@ -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)