quantadex / distributed_quanta_bridge

The distributed version of the quanta bridge
1 stars 0 forks source link

investigate ways to avoid using full index #50

Open quocble opened 5 years ago

quocble commented 5 years ago

Full index takes enormous time to index in production and disk space... Can you investigate the tradeoff to not using it?

quocble commented 5 years ago

20G bitcoin-data/indexes/txindex

shahpoo415 commented 5 years ago

Transaction related queries require -txindex. Can't use getRawTransaction without the txindex option

quocble commented 5 years ago

What part of our code needs this? Is it okay to stop using it, and what are we sacrificing..?

shahpoo415 commented 5 years ago

Using it for getting the deposit information (toAddress, FromAddress, Amount, txHash) Can't get this information otherwise

quocble commented 5 years ago

If it's just to get from address, i don't think it's worth it...

I believe the bitcoin already indexes transactions that are associated with our imported addresses. Need to do some testign to verify exactly which command you can run.

shahpoo415 commented 5 years ago

Can use getTransaction to get amount and toAddress.

quocble commented 5 years ago

I think so, do a quick change, and see how it works.