bitpay / bitcoin

Bitcore Bitcoin build with address indexes
https://bitcore.io/bitcoin
MIT License
61 stars 40 forks source link

mempool address index bug fixes #18

Closed braydonf closed 8 years ago

braydonf commented 8 years ago

Fixes two bugs for the mempool address index:

  1. Iteration would return results of both p2sh and p2pkh if they had the same hash. Iteration now checks the type of address.
  2. An input and output with matching address and index within the same transaction would be missing the output index. The comparator now distinguishes between input and output indexes. Discovered at https://forum.bitcore.io/t/bitcore-explorers-getunspentutxos-returns-empty-result/919/10