Skip to content

Conversation

sdaftuar
Copy link
Member

This is a small refactor to how we use the boost multi_index in CTxMemPool -- rather than have to use fixed index numbers in our code, I added some tags so that we can use logical names instead, so that e.g. nth_index<2> becomes index<entry_time>.

This was motivated by me rebasing some old work on to master, and I realized that the usage of fixed indices was error prone.

I didn't bother with a tag name for the zero-th index (txid), since nothing seems to explicitly use it, but I can add one if people think that'd be better.

@sipa
Copy link
Member

sipa commented Feb 16, 2016

utACK

@dcousens
Copy link
Contributor

utACK 086da92

@sdaftuar
Copy link
Member Author

ping. If this looks fine to everyone it would be nice to have this merged, as it'll make some work I hope to PR soon on top of this somewhat cleaner.

@luke-jr
Copy link
Member

luke-jr commented Feb 25, 2016

Concept ACK

@sipa sipa merged commit 086da92 into bitcoin:master Mar 5, 2016
sipa added a commit that referenced this pull request Mar 5, 2016
086da92 Add tags to mempool's mapTx indices (Suhas Daftuar)
codablock pushed a commit to codablock/dash that referenced this pull request Dec 19, 2017
086da92 Add tags to mempool's mapTx indices (Suhas Daftuar)
furszy added a commit to PIVX-Project/PIVX that referenced this pull request Oct 22, 2020
67f701c Add tags to mempool's mapTx indices (Suhas Daftuar)

Pull request description:

  Straightforward back port bitcoin#7539

ACKs for top commit:
  random-zebra:
    utACK 67f701c
  Fuzzbawls:
    utACK 67f701c

Tree-SHA512: 339e9252f68b4de89bdfa66c397e243170ca85b0721b81f66002b0059e2af6fcab3a7bb2e00fbaa4d568de1bf79389d762baa5d490649cc173c3fc8e93d53e11
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants