Skip to content

Conversation

mgrychow
Copy link

Yet another attempt to introduce UTxO index by script. Based on #9806 with review remarks and new index framework introduced in #13033 taken into account.

@mgrychow mgrychow force-pushed the utxoscriptindex branch 2 times, most recently from 0d539fb to bb9f28b Compare August 23, 2018 20:41
@DrahtBot
Copy link
Contributor

DrahtBot commented Aug 23, 2018

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #14942 (wallet: Return a ScanResult from CWallet::RescanFromTime by Empact)
  • #14384 (Resolve validationinterface circular dependencies by 251Labs)
  • #14121 (Index for BIP 157 block filters by jimpo)
  • #14111 (index: Create IndexRunner class for activing indexes. by jimpo)
  • #13949 (Introduce MempoolObserver interface to break "policy/fees -> txmempool -> policy/fees" circular dependency by Empact)
  • #13743 (refactor: Replace boost::bind with std::bind by ken2812221)
  • #13088 (Log early messages with -printtoconsole by ajtowns)
  • #10973 (Refactor: separate wallet from node by ryanofsky)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

ScriptPubKeyToUniv(coin.out.scriptPubKey, oScriptPubKey, true);

UniValue o(UniValue::VOBJ);
o.push_back(Pair("confirmations", nConfirmations));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: "push_back(Pair" is deprecated in favor of pushKV

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected

@instagibbs
Copy link
Member

Might be wortwhile to update it to using output descriptors, like scantxoutset: https://github.com/bitcoin/bitcoin/blob/master/src/rpc/blockchain.cpp#L2035

@mgrychow
Copy link
Author

@instagibbs Thanks for the remarks, how about adding support for descriptors in separate PR?

@marcinja
Copy link
Contributor

@mgrychow, I recently started working on an address-based index (not just for UTXOs) at #14053. I can improve my PR quite a bit using your changes to the ValidationInterface. If you separated that change (adding CBlockUndo's) into it's own commit this PR would be a bit cleaner, and I could use it for the address index :)

Anyway, will be reviewing this since it's pretty similar to the PR I just made.

@instagibbs
Copy link
Member

@mgrychow Not going to bikeshed this PR to death, just noting it in case you've missed it.

@mgrychow
Copy link
Author

Rebased

@DrahtBot
Copy link
Contributor

Needs rebase

marcinja added a commit to marcinja/bitcoin that referenced this pull request Jan 22, 2019
Changes cherry-picked from bitcoin#14035.

Co-authored-by: Maciej Grychowski <maciej.grychowski@onet.eu>
marcinja added a commit to marcinja/bitcoin that referenced this pull request Jan 22, 2019
Changes cherry-picked from bitcoin#14035.

Co-authored-by: Maciej Grychowski <maciej.grychowski@onet.eu>
marcinja added a commit to marcinja/bitcoin that referenced this pull request Jan 30, 2019
Changes cherry-picked from bitcoin#14035.

Co-authored-by: Maciej Grychowski <maciej.grychowski@onet.eu>
marcinja added a commit to marcinja/bitcoin that referenced this pull request Jan 30, 2019
Changes cherry-picked from bitcoin#14035.

Co-authored-by: Maciej Grychowski <maciej.grychowski@onet.eu>
marcinja added a commit to marcinja/bitcoin that referenced this pull request Mar 6, 2019
Changes cherry-picked from bitcoin#14035.

Co-authored-by: Maciej Grychowski <maciej.grychowski@onet.eu>
marcinja added a commit to marcinja/bitcoin that referenced this pull request Mar 20, 2019
Changes cherry-picked from bitcoin#14035.

Co-authored-by: Maciej Grychowski <maciej.grychowski@onet.eu>
marcinja added a commit to marcinja/bitcoin that referenced this pull request Mar 20, 2019
Changes cherry-picked from bitcoin#14035.

Co-authored-by: Maciej Grychowski <maciej.grychowski@onet.eu>
marcinja added a commit to marcinja/bitcoin that referenced this pull request Mar 20, 2019
Changes cherry-picked from bitcoin#14035.

Co-authored-by: Maciej Grychowski <maciej.grychowski@onet.eu>
marcinja added a commit to marcinja/bitcoin that referenced this pull request Mar 20, 2019
Changes cherry-picked from bitcoin#14035.

Co-authored-by: Maciej Grychowski <maciej.grychowski@onet.eu>
@maflcko
Copy link
Member

maflcko commented Apr 19, 2019

There hasn't been much activity lately and the patch still needs rebase, so I am closing this for now. Please let me know when you want to continue working on this, so the pull request can be re-opened.

@maflcko maflcko closed this Apr 19, 2019
marcinja added a commit to marcinja/bitcoin that referenced this pull request Aug 16, 2019
Changes cherry-picked from bitcoin#14035.

Co-authored-by: Maciej Grychowski <maciej.grychowski@onet.eu>
marcinja added a commit to marcinja/bitcoin that referenced this pull request Aug 16, 2019
Changes cherry-picked from bitcoin#14035.

Co-authored-by: Maciej Grychowski <maciej.grychowski@onet.eu>
marcinja added a commit to marcinja/bitcoin that referenced this pull request Aug 16, 2019
Changes cherry-picked from bitcoin#14035.

Co-authored-by: Maciej Grychowski <maciej.grychowski@onet.eu>
fjahr pushed a commit to fjahr/bitcoin that referenced this pull request Aug 26, 2019
Changes cherry-picked from bitcoin#14035.

Co-authored-by: Maciej Grychowski <maciej.grychowski@onet.eu>
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants