Link getdata to inv
This commit is contained in:
parent
73d2ad393a
commit
51974d4666
|
@ -41,7 +41,7 @@ API documentation is available [here](https://bitchan.github.io/bitmessage/docs/
|
|||
- [x] verack
|
||||
- [x] addr
|
||||
- [x] inv
|
||||
- [ ] getdata
|
||||
- [x] getdata
|
||||
- [ ] error
|
||||
- [ ] object
|
||||
- [ ] Object types
|
||||
|
@ -58,10 +58,10 @@ API documentation is available [here](https://bitchan.github.io/bitmessage/docs/
|
|||
- [x] getRipe
|
||||
- [x] fromRandom
|
||||
- [ ] fromPassphrase
|
||||
- [x] UserAgent
|
||||
- [ ] Message
|
||||
- [ ] encrypt
|
||||
- [ ] decrypt
|
||||
- [x] UserAgent
|
||||
- [ ] Parse PyBitmessage configs
|
||||
- [ ] keys.dat
|
||||
- [ ] knownnodes.dat
|
||||
|
|
|
@ -144,8 +144,9 @@ exports.addr = {
|
|||
* more objects.
|
||||
* @see {@link https://bitmessage.org/wiki/Protocol_specification#inv}
|
||||
* @namespace
|
||||
* @static
|
||||
*/
|
||||
exports.inv = {
|
||||
var inv = exports.inv = {
|
||||
/**
|
||||
* Decode `inv` payload.
|
||||
* @param {Buffer} buf - Buffer that starts with encoded `inv` payload
|
||||
|
@ -180,3 +181,12 @@ exports.inv = {
|
|||
return Buffer.concat([structs.var_int.encode(inventory.length), invBuf]);
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* `getdata` message. `getdata` is used in response to an `inv` message
|
||||
* to retrieve the content of a specific object after filtering known
|
||||
* elements.
|
||||
* @see {@link https://bitmessage.org/wiki/Protocol_specification#getdata}
|
||||
* @namespace
|
||||
*/
|
||||
exports.getdata = inv;
|
||||
|
|
Loading…
Reference in New Issue
Block a user