From b34118a43f427a9e1fd7066172ba14536a80dcfb Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 29 Jan 2016 12:11:21 -0800 Subject: [PATCH] docs: document `loadMempool`. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 88418606..ae97cb62 100644 --- a/README.md +++ b/README.md @@ -1145,6 +1145,8 @@ Usage: `bcoin.peer(pool, createConnection, options)` - __updateWatch()__ - Resend `filterload` packet. Useful after adding data to the bloom filter (SPV-mode only). - __getData(items)__ - Request blocks or TXes. +- __loadMempool()__ - Send `mempool`. Requests `inv` packet full of mempool + transactions from peer. - __loadHeaders(hashes, stop)__ - Send `getheaders`. - __loadBlocks(hashes, stop)__ - Send `getblocks`. @@ -1272,6 +1274,7 @@ propogate data throughout the network. - __startSync()__ - Start downloading the blockchain. - __stopSync()__ - Pause the blockchain sync. - __isFull()__ - Whether the blockchain is full. Calls `chain.isFull()`. +- __loadMempool()__ - Request mempool transactions from all peers. - __watch(id)__ - Add a piece of data to "watch" for to the bloom filter. Send updated `filterload` to peers (SPV-only). - __unwatch(id)__ - Stop watching for `id` (SPV-only).