From dc14da47d7ba120a16c8010bdeaa1ff51b93e06d Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Tue, 16 Dec 2014 18:30:12 -0500 Subject: [PATCH] Block: Fixed naming, and removed internal use property from doc. --- docs/Block.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/Block.md b/docs/Block.md index 8ac1fc0..cb786bf 100644 --- a/docs/Block.md +++ b/docs/Block.md @@ -14,7 +14,6 @@ assert(block.validMerkleRoot()); assert(block.magicnum); assert(block.size); assert(block.header); // an instance of block header, more info below -assert(block.txsvi); assert(block.txs); // an array of transactions, more info below ``` @@ -49,8 +48,8 @@ For more information about the specific properties of a block header please visi The set of transactions in a block is an array of instances of [Transaction](Transaction.md) and can be explored by iterating on the block's `transactions` member. ```javascript -for (var i in block.transactions) { - var transaction = block.transactions[i]; +for (var i in block.txs) { + var transaction = block.txs[i]; } ```