Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #8 from ethereumjs/kumavis-patch-1
Browse files Browse the repository at this point in the history
readme - update addBlock to putBlock
  • Loading branch information
wanderer committed Apr 21, 2016
2 parents d1e0607 + 9767cbd commit e217369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ A module to store and interact with blocks
- [`BlockChain` Properties](#blockchain-properties)
- [`BlockChain` methods](#blockchain-methods)
- [`blockchain.init(cb)`](#blockchaininitcb)
- [`blockchain.addBlock(block, [callback])`](#blockchainaddblockblock-callback)
- [`blockchain.putBlock(block, [callback])`](#blockchainputblockblock-callback)
- [`blockchain.getBlock(hash, [callback])`](#blockchaingetblockhash-callback)
- [`blockchain.getBlockInfo(hash, cb)`](#blockchaingetblockinfohash-cb)
- [`blockchain.getBlockHashes(parentHash, count, cb)`](#blockchaingetblockhashesparenthash-count-cb)
Expand Down Expand Up @@ -49,7 +49,7 @@ Initializes the blockchain. This must be done before you can use the `blockchain

--------------------------------------------------------

#### `blockchain.addBlock(block, [callback])`
#### `blockchain.putBlock(block, [callback])`
Adds a block to the blockchain.
- `block` - the block to be added to the blockchain
- `callback` - the callback. It is given two parameters `err` and the saved `block`
Expand Down

0 comments on commit e217369

Please sign in to comment.