Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address indexing #89

Closed

Commits on Jun 20, 2018

  1. tests: Make proxy_test work on travis servers without IPv6

    Github-Pull: #7489
    Rebased-From: 7539f1aae3b41279dc5d49e09f448a78a071e114
    Cherry-picked-From: 9ca957bcd401de69c4c03904b9ee8b8b41052905
    laanwj authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    f06670c View commit details
    Browse the repository at this point in the history
  2. main: start of address index

    Adds a configuration option for addressindex to search for txids by address. Includes
    an additional rpc method for getting the txids for an address.
    
    Zcash: Backport to previous txdb format
    braydonf authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    28c1399 View commit details
    Browse the repository at this point in the history
  3. test: added unit tests for CScript.IsPayToPublicKeyHash

    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    8fd50e6 View commit details
    Browse the repository at this point in the history
  4. qa: started test for addressindex rpc getaddresstxids

    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    effedcc View commit details
    Browse the repository at this point in the history
  5. main: index address index sorted by height

    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    5ebc1ef View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    56396a9 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    c1fb28d View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    0be8215 View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    34bee59 View commit details
    Browse the repository at this point in the history
  10. main: serialize height in BE for address index key

    fixes a sorting issue when iterating over keys
    braydonf authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    825560d View commit details
    Browse the repository at this point in the history
  11. rpc: only sort when combining multiple results

    It's only necessary to sort when combining results for several addresses
    as the results are already in order from the database.
    braydonf authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    c9c3db8 View commit details
    Browse the repository at this point in the history
  12. Copy the full SHA
    d34bd42 View commit details
    Browse the repository at this point in the history
  13. rpc: add receieved to balance

    braydonf authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    f6ce35c View commit details
    Browse the repository at this point in the history
  14. Copy the full SHA
    520a0a7 View commit details
    Browse the repository at this point in the history
  15. main: add block timestamp index

    Zcash: Backport to previous txdb format
    braydonf authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    6f01ee5 View commit details
    Browse the repository at this point in the history
  16. Copy the full SHA
    d7f49e7 View commit details
    Browse the repository at this point in the history
  17. main: fixed bug with overlapping address index keys

    There was a bug where the spending address index could have the same key
    as the receiving address index if the input and output indexes matched. This lead
    to the output always overwriting the input index leading to incorrect balances
    with missing spent amounts. This patch separates the two so that they have unique
    keys so balances will be correctly calculated.
    braydonf authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    cd0c3b4 View commit details
    Browse the repository at this point in the history
  18. Copy the full SHA
    0e43b9f View commit details
    Browse the repository at this point in the history
  19. rpc: optimize address txid queries

    braydonf authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    085bbd3 View commit details
    Browse the repository at this point in the history
  20. Copy the full SHA
    9932342 View commit details
    Browse the repository at this point in the history
  21. Copy the full SHA
    8ab503d View commit details
    Browse the repository at this point in the history
  22. main: index unspent outputs by address

    Zcash: Backport to previous txdb format
    braydonf authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    7964fa6 View commit details
    Browse the repository at this point in the history
  23. Copy the full SHA
    69fb35d View commit details
    Browse the repository at this point in the history
  24. Copy the full SHA
    f6eed6c View commit details
    Browse the repository at this point in the history
  25. Copy the full SHA
    d0e1e8b View commit details
    Browse the repository at this point in the history
  26. Copy the full SHA
    da3a85a View commit details
    Browse the repository at this point in the history
  27. Copy the full SHA
    64bb5b7 View commit details
    Browse the repository at this point in the history
  28. main: mempool address index

    Zcash: Integrated into older mempool code
    braydonf authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    ba33138 View commit details
    Browse the repository at this point in the history
  29. Copy the full SHA
    5865838 View commit details
    Browse the repository at this point in the history
  30. main: include timestampindex in help

    braydonf authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    53f75d2 View commit details
    Browse the repository at this point in the history
  31. main: add spentindex option

    Zcash: Backport to old txdb code
    braydonf authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    9d204c0 View commit details
    Browse the repository at this point in the history
  32. build: add addressindex.h to make

    braydonf authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    ded6c12 View commit details
    Browse the repository at this point in the history
  33. rpc: cast indexes to ints

    braydonf authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    40a6450 View commit details
    Browse the repository at this point in the history
  34. Copy the full SHA
    0f26779 View commit details
    Browse the repository at this point in the history
  35. rpc: include height in spentinfo

    braydonf authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    3c3aea5 View commit details
    Browse the repository at this point in the history
  36. Copy the full SHA
    c1f707d View commit details
    Browse the repository at this point in the history
  37. Copy the full SHA
    605486d View commit details
    Browse the repository at this point in the history
  38. build: fix darwin build

    braydonf authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    d3cf13c View commit details
    Browse the repository at this point in the history
  39. Copy the full SHA
    da8adb3 View commit details
    Browse the repository at this point in the history
  40. Copy the full SHA
    69c8aee View commit details
    Browse the repository at this point in the history
  41. Copy the full SHA
    6662eb8 View commit details
    Browse the repository at this point in the history
  42. Copy the full SHA
    c7e7ac0 View commit details
    Browse the repository at this point in the history
  43. Copy the full SHA
    2f0cda3 View commit details
    Browse the repository at this point in the history
  44. rpc: add blockindex to getaddressdeltas method

    for the purposes of secondary sorting by block order
    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    3ca238f View commit details
    Browse the repository at this point in the history
  45. rpcclient: add params to be parsed as JSON

    There was an issue where getblockhashes wouldn't work from bitcoin-cli
    as the two params would be strings instead of integers. This fixes that
    issue, and will parse the first param as JSON for other addressindex
    related rpc methods.
    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    1888335 View commit details
    Browse the repository at this point in the history
  46. rpc: include help text for addressindex and related commands

    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    5afa803 View commit details
    Browse the repository at this point in the history
  47. rpc: include satoshis in verbose raw transaction

    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    9445e90 View commit details
    Browse the repository at this point in the history
  48. main: add amount and address to spentindex value

    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    7682386 View commit details
    Browse the repository at this point in the history
  49. rpc: add input value and address to getrawtransaction if spentindex e…

    …nabled
    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    18deeca View commit details
    Browse the repository at this point in the history
  50. main: spentindex for the mempool

    Zcash: Adapted to older mempool code
    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    f88924c View commit details
    Browse the repository at this point in the history
  51. rpc: add input confirmations to getrawtransaction

    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    9edf7f7 View commit details
    Browse the repository at this point in the history
  52. main: do not log error when spent info not found

    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    21745e1 View commit details
    Browse the repository at this point in the history
  53. tests: expanded address index mempool testing

    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    b2a03d6 View commit details
    Browse the repository at this point in the history
  54. mempool: fix bug with mempool address index iteration

    fixes a minor bug where iteration would not end when there are matching
    hashes for a p2sh and p2pkh address, and would return results for
    both addresses
    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    cc9d6c0 View commit details
    Browse the repository at this point in the history
  55. mempool: same address and index for an input and output bug

    fixes a bug that would happen when an output would match an input with
    the same address and index, and would lead to the outputs not appearing
    in results.
    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    d9475cf View commit details
    Browse the repository at this point in the history
  56. Copy the full SHA
    6fbb94c View commit details
    Browse the repository at this point in the history
  57. wallet-utility: extract addresses and private keys

    usage: ./wallet-utility -datadir=<directory>
    help: ./wallet-utility -h
    
    Zcash: Backported to older chainparams code, added Zcash libs to LDADD
    Chethan Krishna authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    a3d6080 View commit details
    Browse the repository at this point in the history
  58. Add method to get address deltas from a block

    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    be0efaa View commit details
    Browse the repository at this point in the history
  59. rpc: minimize locking in getrawtransaction

    since there is i/o that can happen when retrieving extended input
    and output information, limiting the duration of the lock in getrawtransaction
    can help improve concurrency
    
    Zcash: Use older script ASM function
    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    cf17d23 View commit details
    Browse the repository at this point in the history
  60. db: add options to configure block index database

    There was a previous assumption that blockindex would be quite small. With addressindex
    and spentindex enabled the blockindex is much larger and the amount of cache allocated for
    it should also increase. Furthermore, enabling compression should decrease the amount of
    disk space required and less data to write/read. The default leveldb max_open_files is set to
    1000, for the blockindex the default is set to 1000 with compression. The 64 value that is
    current is kept for the utxo database and does not enable compression. Two additional options
    are added here to be able to configure the values for leveldb and the block index:
    
    - `-dbmaxopenfiles` A number of files for leveldb to keep open
    - `-dbcompression` Boolean 0 or 1 to enable snappy leveldb compression
    
    Zcash: Migrated to the older leveldbwrapper.*
    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    5d79a60 View commit details
    Browse the repository at this point in the history
  61. test: wallet utility python test

    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    965f113 View commit details
    Browse the repository at this point in the history
  62. Remove cpp test for wallet-utility

    Chethan Krishna authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    62d47bd View commit details
    Browse the repository at this point in the history
  63. logical timestamp indexing of block hashes

    Zcash: Migrated to old txdb code
    Chethan Krishna authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    e7f88aa View commit details
    Browse the repository at this point in the history
  64. test: fix determinism of address index test

    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    2792605 View commit details
    Browse the repository at this point in the history
  65. Add a new line to print

    Chethan Krishna authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    418028a View commit details
    Browse the repository at this point in the history
  66. rpc: option to include chain info in address index results

    Braydon Fuller authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    432cc9a View commit details
    Browse the repository at this point in the history
  67. Add vpub_old and vpub_new Zatoshi amounts

    str4d authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    df7f038 View commit details
    Browse the repository at this point in the history
  68. Update clientversion.cpp

    Procrastinator authored and psyraxaus committed Jun 20, 2018
    Copy the full SHA
    ac32005 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2018

  1. Added missing commenting for wallet utility that was missed during th…

    …e previous commit import
    psyraxaus committed Jun 21, 2018
    Copy the full SHA
    51c0cbf View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2018

  1. Copy the full SHA
    0dc06eb View commit details
    Browse the repository at this point in the history