Skip to content

Order CTxMemPool::queryHashes result by feerate including descendents.#7629

Closed
pstratem wants to merge 1 commit intobitcoin:masterfrom
pstratem:2016-03-01-queryhashes
Closed

Order CTxMemPool::queryHashes result by feerate including descendents.#7629
pstratem wants to merge 1 commit intobitcoin:masterfrom
pstratem:2016-03-01-queryhashes

Conversation

@pstratem
Copy link
Copy Markdown
Contributor

@pstratem pstratem commented Mar 1, 2016

No description provided.

@pstratem pstratem force-pushed the 2016-03-01-queryhashes branch from a7b04fc to a6cf596 Compare March 1, 2016 22:11
@sdaftuar
Copy link
Copy Markdown
Member

sdaftuar commented Mar 1, 2016

Motivation? Curious whether whatever you're using this for should be using descendant fee rate or ancestor fee rate (see #7594)...

@pstratem pstratem force-pushed the 2016-03-01-queryhashes branch from a6cf596 to 0a94cf6 Compare March 1, 2016 22:16
@pstratem
Copy link
Copy Markdown
Contributor Author

pstratem commented Mar 1, 2016

@sdaftuar the motivation is two part

first to ensure mempool walks are in an order which avoids any orphans

second to make the feefilter command more efficient in combination with the mempool p2p command

@pstratem
Copy link
Copy Markdown
Contributor Author

pstratem commented Mar 1, 2016

@sdaftuar is right this should be using ancestor indexing

@laanwj laanwj added the Mempool label Mar 3, 2016
@sipa
Copy link
Copy Markdown
Member

sipa commented Mar 5, 2016

@pstratem Can you elaborate? How does this guarantee the avoidance of orphans? Transaction descendants can have both higher or lower feerate than the parent.

@pstratem
Copy link
Copy Markdown
Contributor Author

pstratem commented Mar 5, 2016

@sipa it doesn't i mis understood what was being indexed.

i'll fix this properly later

@pstratem pstratem closed this Mar 5, 2016
@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.

4 participants