From a915545a1aafb9a2153a0e631bea7f1aefea4a44 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 20 Jul 2017 14:28:47 -0700 Subject: [PATCH] block: minor. --- lib/primitives/block.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/primitives/block.js b/lib/primitives/block.js index 9169d84c..5eb72153 100644 --- a/lib/primitives/block.js +++ b/lib/primitives/block.js @@ -616,8 +616,8 @@ Block.prototype.fromJSON = function fromJSON(json) { this.parseJSON(json); - for (let i = 0; i < json.txs.length; i++) - this.txs.push(TX.fromJSON(json.txs[i])); + for (let tx of json.txs) + this.txs.push(TX.fromJSON(tx)); return this; };