Browse Source

Block: Fixed naming, and removed internal use property from doc.

patch-2
Braydon Fuller 10 years ago
parent
commit
dc14da47d7
  1. 5
      docs/Block.md

5
docs/Block.md

@ -14,7 +14,6 @@ assert(block.validMerkleRoot());
assert(block.magicnum); assert(block.magicnum);
assert(block.size); assert(block.size);
assert(block.header); // an instance of block header, more info below assert(block.header); // an instance of block header, more info below
assert(block.txsvi);
assert(block.txs); // an array of transactions, more info below 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. 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 ```javascript
for (var i in block.transactions) { for (var i in block.txs) {
var transaction = block.transactions[i]; var transaction = block.txs[i];
} }
``` ```

Loading…
Cancel
Save