Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
2 edited tags
| link
1
source | link

How to make Abe query MySQL instead of reading from the bitcoin block.dat for each request?

After getting abe set up and running, I tried querying it, eg: ...:2750/chain/Bitcoin .. but looking at the abe output, I notice every page load - abe was opening the blk00000.dat file rather than using MySQL [which I have configured abe to use].

My abe.conf looks like this;

dbtype MySQLdb
connect-args {"user":"test","db":"abe","passwd":"test"}
upgrade
port 2750
host localhost

I have checked the 'abe' MySQL database and the data is in there, I am just unable to figure out why abe isn't querying that and instead opening the blk00000.dat file. . . which is making every request I make to abe unbearably slow.

So my question is: How to make Abe query MySQL instead of reading from the bitcoin block.dat for each request ?