Docs: Updated bitcoind event docs to be less ambiguous

This commit is contained in:
Braydon Fuller 2015-11-02 18:02:00 -05:00
parent 826114b575
commit fccd6197c6

View File

@ -104,7 +104,7 @@ node.services.bitcoind.on('tx', function(txInfo) {
// a new transaction has entered the mempool
});
node.services.bitcoind.on('txleave', function(txInfo) {
node.services.bitcoind.on('txleave', function(txLeaveInfo) {
// a new transaction has left the mempool
});
```
@ -118,3 +118,12 @@ The `txInfo` object will have the format:
hash: '7426c707d0e9705bdd8158e60983e37d0f5d63529086d6672b07d9238d5aa623'
}
```
The `txLeaveInfo` object will have the format:
```js
{
buffer: <Buffer...>,
hash: '7426c707d0e9705bdd8158e60983e37d0f5d63529086d6672b07d9238d5aa623'
}
```