Bitcoin Forum
May 07, 2024, 03:21:20 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blog post: Fast blockchain scanning  (Read 823 times)
crispweed (OP)
Newbie
*
Offline Offline

Activity: 27
Merit: 0


View Profile
June 20, 2014, 01:11:05 PM
 #1

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
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715095280
Hero Member
*
Offline Offline

Posts: 1715095280

View Profile Personal Message (Offline)

Ignore
1715095280
Reply with quote  #2

1715095280
Report to moderator
phelix
Legendary
*
Offline Offline

Activity: 1708
Merit: 1020



View Profile
June 20, 2014, 04:34:18 PM
 #2

Interesting, thanks!
kolinko
Full Member
***
Offline Offline

Activity: 518
Merit: 101



View Profile
June 23, 2014, 09:48:06 AM
 #3

This is something that we'll be needing soon. Thanks Cheesy
Sukrim
Legendary
*
Offline Offline

Activity: 2618
Merit: 1006


View Profile
June 23, 2014, 05:35:05 PM
 #4

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.

https://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!