From 9058e7d78a7138d1301b372e246e6de835962745 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 16 Jun 2017 16:08:15 -0700 Subject: [PATCH] gcs: rename fromData. --- lib/utils/gcs.js | 10 +++++----- test/gcs-test.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/utils/gcs.js b/lib/utils/gcs.js index 93a9baef..9dc0e873 100644 --- a/lib/utils/gcs.js +++ b/lib/utils/gcs.js @@ -153,7 +153,7 @@ GCSFilter.prototype.toNPBytes = function toNPBytes() { return data; }; -GCSFilter.prototype.fromData = function fromData(P, key, items) { +GCSFilter.prototype.fromItems = function fromItems(P, key, items) { var values = []; var last = Int64(0); var i, bw, item, hash, value, rem; @@ -276,7 +276,7 @@ GCSFilter.prototype.fromBlock = function fromBlock(block) { } } - return this.fromData(20, key, items); + return this.fromItems(20, key, items); }; GCSFilter.prototype.fromExtended = function fromExtended(block) { @@ -299,11 +299,11 @@ GCSFilter.prototype.fromExtended = function fromExtended(block) { } } - return this.fromData(20, key, items); + return this.fromItems(20, key, items); }; -GCSFilter.fromData = function fromData(P, key, items) { - return new GCSFilter().fromData(P, key, items); +GCSFilter.fromItems = function fromItems(P, key, items) { + return new GCSFilter().fromItems(P, key, items); }; GCSFilter.fromBytes = function fromBytes(N, P, data) { diff --git a/test/gcs-test.js b/test/gcs-test.js index 1c2d38c3..02717af6 100644 --- a/test/gcs-test.js +++ b/test/gcs-test.js @@ -80,7 +80,7 @@ describe('GCS', function() { addr2 = new Address('bc1q4645ycu0l9pnvxaxnhemushv0w4cd9flkqh95j'); it('should test GCS filter build', function() { - filter1 = GCSFilter.fromData(P, key, contents1); + filter1 = GCSFilter.fromItems(P, key, contents1); assert(filter1); });