Added mempool request
I added `GetMempool` function that sends an 'mempool' request. the answer will come in 'inv' message.
This commit is contained in:
parent
8089b0c765
commit
b827e36e13
|
@ -584,6 +584,17 @@ function GetHeaders(starts, stop) {
|
|||
util.inherits(GetHeaders, GetBlocks);
|
||||
module.exports.GetHeaders = Message.COMMANDS.getheaders = GetHeaders;
|
||||
|
||||
/**
|
||||
* GetMempool Message
|
||||
*
|
||||
* @name Transport.Message.GetMempool
|
||||
*/
|
||||
function GetMempool() {
|
||||
this.command = 'mempool';
|
||||
}
|
||||
|
||||
util.inherits(GetMempool, Message);
|
||||
module.exports.GetMempool = Message.COMMANDS.mempool = GetMempool;
|
||||
|
||||
// TODO: Remove this PATCH (yemel)
|
||||
Buffers.prototype.skip = function (i) {
|
||||
|
|
Loading…
Reference in New Issue