bitcoincore-indexd icon indicating copy to clipboard operation
bitcoincore-indexd copied to clipboard

Motives unclear

Open bitcoinhodler opened this issue 7 years ago • 3 comments

Please add to the README.md something about the purpose and motivations of this project. I am pretty confused as to:

  1. Who would benefit from this project and how?
  2. Advantages/disadvantages of this vs bitcoind -txindex=1?

bitcoinhodler avatar May 12 '18 15:05 bitcoinhodler

This is an experiment right now. It's unclear where it will lead to.

I personally see this as an architectural improvement. It makes little sense to have all sorts of indexes in Bitcoin Core internally.

I hope with this project, that developers interested in indexing the blockchain, will fine a common ground (this project) to work on extending and adding indexes.

Background:

  • https://github.com/bitcoin/bitcoin/pull/10370
  • https://github.com/bitcoin/bitcoin/pull/13014
  • https://github.com/bitcoin/bitcoin/issues/12651

jonasschnelli avatar May 12 '18 18:05 jonasschnelli

There are a number of things that bitcoin explorers can do that bitcoind even with —txindex cannot. For instance I’d like to know if a specific address has any UTXO funds on it.

ChristopherA avatar May 12 '18 19:05 ChristopherA

@ChristopherA:

There is a pull request that can do that (even for pruned peers): https://github.com/bitcoin/bitcoin/pull/12196

It scans the utxo set based on addresses (eventually deriven from keys or xpubs). A scan may take about 30seconds.

jonasschnelli avatar May 12 '18 20:05 jonasschnelli