Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: crispweed on June 20, 2014, 01:11:05 PM



Title: Blog post: Fast blockchain scanning
Post by: crispweed on June 20, 2014, 01:11:05 PM
I just added a blog post about faster blockchain scanning through bitcoind RPC calls, by replacing gettransaction queries per transaction with getblock <blockhash> false and DIY block and transaction decoding.

The blog post is here:
http://upcoder.com/8/fast-blockchain-scanning/

Feedback welcome.

Thomas


Title: Re: Blog post: Fast blockchain scanning
Post by: phelix on June 20, 2014, 04:34:18 PM
Interesting, thanks!


Title: Re: Blog post: Fast blockchain scanning
Post by: kolinko on June 23, 2014, 09:48:06 AM
This is something that we'll be needing soon. Thanks :D


Title: Re: Blog post: Fast blockchain scanning
Post by: Sukrim on June 23, 2014, 05:35:05 PM
Well, if you query large chunks of raw data and process it yourself, no wonder that you get faster response times...

However in your example you end up with a raw encoded transaction, in the "obvious" case you have a nicely decoded transaction in JSON format... if I needed high speeds + python I'd rather use something like pynode or let Armory do the parsing for me, if I were just trying out stuff, the few GB or RAM or SSD space for the index are much cheaper than me writing a raw transaction decoder.