Change mapRelay to store CTransactions#7877
Conversation
|
@sipa Should this also be marked as backport for 0.12? |
|
I think with segwit we're getting at the point we're going to need so many backports for 0.12.2 we'd better just release 0.13 early... utACK 38c3102 |
|
I'd agree with backporting this "early" (as soon as it is merged into master) to avoid confusion and cherry-pick conflicts due to "out-of-order" cherry-picks, but it seems this is already conflicting on 0.12, so better leave such conflicting cherry-picks to a separate pull request with review before merge. |
|
@MarcoFalke My segwit-base branch is 0.12-based, and includes backports from master and other pull requests needed already. |
That would rule out merging this for now - there is a release in progress on the 0.12 branch, so only things that are critical enough to warrant a rc3 should be merged there right now. But I'd prefer to backport this as part of other segwit changes, also to have the context clear. |
|
ACK 38c3102 In case anyone else has the same thought: I was wondering what the memory usage ratio was between a |
|
utACK 38c3102 |
|
nice, I had the same change locally for a different reason. Freebie :) utACK. |
Thanks for checking this, it was in the back of my mind as well. |
38c3102 Change mapRelay to store CTransactions (Pieter Wuille)
38c3102 Change mapRelay to store CTransactions (Pieter Wuille)
Bitcoin bitcoin#7877 changed mapRelay to be indexed by hash instead of inv. This means that we may end up with a false-positive match here and send out an instant transaction as normal transaction.
38c3102 Change mapRelay to store CTransactions (Pieter Wuille)
Bitcoin bitcoin#7877 changed mapRelay to be indexed by hash instead of inv. This means that we may end up with a false-positive match here and send out an instant transaction as normal transaction.
ZIP 239 preparations 1 This is the first of several backports to prepare for ZIP 239. The primary change is altering `mapRelay` to store `CTransaction`s, which we need because ZIP 239 requires changing `Inv` messages based on transaction versions. The other changes are mainly for conflict removal but are also independently useful. Backports the following upstream PRs: - bitcoin/bitcoin#6889 - bitcoin/bitcoin#7125 - bitcoin/bitcoin#7862 - bitcoin/bitcoin#7877
ZIP 239 preparations 1 This is the first of several backports to prepare for ZIP 239. The primary change is altering `mapRelay` to store `CTransaction`s, which we need because ZIP 239 requires changing `Inv` messages based on transaction versions. The other changes are mainly for conflict removal but are also independently useful. Backports the following upstream PRs: - bitcoin/bitcoin#6889 - bitcoin/bitcoin#7125 - bitcoin/bitcoin#7862 - bitcoin/bitcoin#7877
ZIP 239 preparations 1 This is the first of several backports to prepare for ZIP 239. The primary change is altering `mapRelay` to store `CTransaction`s, which we need because ZIP 239 requires changing `Inv` messages based on transaction versions. The other changes are mainly for conflict removal but are also independently useful. Backports the following upstream PRs: - bitcoin/bitcoin#6889 - bitcoin/bitcoin#7125 - bitcoin/bitcoin#7862 - bitcoin/bitcoin#7877
This is a preparation commit for segwit, but won't hurt to include ahead of time.
It is necessary as the relayed serialization will depend on what the peer requests.