Added mempool request

I added `GetMempool` function that sends an 'mempool' request.
the answer will come in 'inv' message.
This commit is contained in:
Elichai Turkel 2015-01-11 13:35:44 +02:00
parent 8089b0c765
commit b827e36e13
1 changed files with 11 additions and 0 deletions

View File

@ -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) {