LearnBitcoin

Bitcoin Dev Archive 2012

Protocol changes for SPV clients: mempool, getdata commands

2 messages, 13 to 14 Aug 2012. Started by Jeff Garzik.

Jeff Garzik, Wladimir J. van der Laan

Permalink Original thread on gnusha.org

Jeff Garzik permalink original

A small change to the protocol is proposed for satoshi client v0.7 (upcoming release):

    Add 'mempool' P2P command, and extend 'getdata' behavior
    https://github.com/bitcoin/bitcoin/pull/1641

The genesis of this command is to permit SPV clients to access the memory pool, but secondary uses include diagnostics and miner download (so that miners won't miss lucrative TX's due to node restart). "getdata" behavior is extended to include any memory pool transaction, relaxing a previous "getdata" restriction.

Didn't feel this warranted a BIP, but can write one if people really want one.

Wladimir J. van der Laan in reply to Jeff Garzik permalink original

On Mon, Aug 13, 2012 at 5:57 PM, Jeff Garzik <jgarzik@exmulti•com> wrote:

Quoted text (5 lines)
> A small change to the protocol is proposed for satoshi client v0.7
> (upcoming release):
>
>     Add 'mempool' P2P command, and extend 'getdata' behavior
>     https://github.com/bitcoin/bitcoin/pull/1641

Fully agree with the changes, but I think there should be a small BIP, for consistency, and to make it documented for other client developers.

Wladimir