Re: [Bitcoin-development] on CDB::Rewrite()

2013-10-04 Thread Olivier Langlois
Upon looking at the 0.8.5 earlier code for CDB:Rewrite(), in the files db.h and db.cpp, you will notice that in db.h it is declared bool static, but in db.cpp it isn't. Is this a problem? Or a feature? Or nothing at all? It is perfect C++ code. Furthermore, it is called only in wallet.cpp

Re: [Bitcoin-development] bitcoind stops responding

2013-10-03 Thread Olivier Langlois
1380610633.387730: POST / HTTP/1.1^M ThreadRPCServer method=getinfo CTxMemPool::accept() : accepted dc2941dd69b2f9fa2754f741dfba76489abef706bd237e3bd715181950723e4d (poolsz 1283) keypool reserve 15 keypool return 15 locktime : 5.996820 calltime : 0.000328 totaltime : 5.997148 I have

Re: [Bitcoin-development] bitcoind stops responding

2013-10-01 Thread Olivier Langlois
Not sure yet exactly where the problem is but my current #1 suspect is: LOCK2(cs_main, pwalletMain-cs_wallet); with some kind of lock contention with the other threads. I was right. It took more than 6 seconds to acquire the locks I did modify bitcoinrpc.cpp: namespace { struct

Re: [Bitcoin-development] bitcoind stops responding

2013-10-01 Thread Olivier Langlois
On Tue, 2013-10-01 at 16:17 +0200, Jeff Garzik wrote: Olivier, What network activity was going on, during this test? i.e. during the call with 5.99 locktime, was bitcoind processing a block or sending a large transaction? There are plenty of valid reasons -- sadly -- that the locks are

Re: [Bitcoin-development] bitcoind stops responding

2013-09-30 Thread Olivier Langlois
On Mon, 2013-09-30 at 22:44 +0200, slush wrote: Hi, during several weeks I'm observing more and more frequent issues with bitcoind. The problem is that bitcoind stops responding to RPC calls, but there's no other suspicious activity in bitcoind log, CPU usage is low, disk I/O is standard