Bitcoin Forum
June 15, 2024, 05:38:31 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoinqt slow - possible solution  (Read 830 times)
nicehashdev (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
June 18, 2014, 05:26:12 PM
 #1

Bitcoinqt is processing all RPC calls very slowly. My guess is due to many transactions. Idea to speed it up is following; move all coins from the wallet to another address which would merge all current transactions into one big input for next transactions.

I want to keep bitcoinqt accounting intact (all account balances there must be intact), so the idea is to do following:
1. create new receiving address with account name: "blabla"
2. send all bitcoins to that receiving address (payment to self)
3. issue rpc command: move blabla "" [btcamount]

I need input from bitcoin experts whether this would have any impact on speed of rpc calls. Rpc calls that are used are: sendfrom, move and getbalance.

Thank you for your help.
nicehashdev (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
June 19, 2014, 09:21:17 AM
 #2

Is there no one?  Huh
Justin00
Legendary
*
Offline Offline

Activity: 910
Merit: 1000


★YoBit.Net★ 350+ Coins Exchange & Dice


View Profile
June 19, 2014, 10:56:17 AM
 #3

i'm not expert but if your wallet has heaaaaps of transactions perhaps that is causing the slowness as you have suggested ?
is rpc connecting to localhost/127.0.0.1 or is over a network ? ( assuming network is obviously working perfectly)

nicehashdev (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
June 19, 2014, 11:58:47 AM
 #4

i'm not expert but if your wallet has heaaaaps of transactions perhaps that is causing the slowness as you have suggested ?
is rpc connecting to localhost/127.0.0.1 or is over a network ? ( assuming network is obviously working perfectly)

Localhost. What I don't understand is why rpc command getbalance of account takes long time, because that one should be fast regardless of number of transactions. So I am missing a point somewhere... I don't want to perform this big transaction to self if there would be no effect, because it would only cause service to be offline for some time, nothing more.
nicehashdev (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
June 22, 2014, 05:59:09 PM
 #5

0.1 BTC to the man who can help out with a solution to speed it up!
GoldenWings91
Full Member
***
Offline Offline

Activity: 141
Merit: 100


View Profile
June 22, 2014, 06:39:11 PM
 #6

If your wallet has a lot of addresses it will have a significant impact on performance as the Bitcoin client will be scanning new inputs and checking them against each "address" you own.

Support The Bitcoin Network By Running A Full Node
Node Stats     GPG Key-ID: 0x445DF2D8     Monetary Freedom Is A Basic Human Right
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
June 22, 2014, 06:53:26 PM
 #7

You really shouldn't be merging your inputs. Doing so impacts your ability to do multiple transactions (because you need to wait for the previous transaction to confim) and it provides no benefit in terms of transaction priority or transaction fees. Also, using bitcoin core's accounts feature is highly not recommended.

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
June 23, 2014, 10:40:44 PM
 #8

The advice you don't want to hear is don't use accounts in bitcoin core.  It is the advice I have been giving for more than a year now.  You are just painting yourself into a corner and then trying to come up with elaborate ways to workaround the problem.  It is very possible support for accounts will be completely removed from a future version of Bitcoin because it is bad and probably never should have been included.

However my guess is you will ignore that so, yes temporarily reducing the number of unspent outputs will marginally improve account performance but in time as you receive new outputs it will get worse again.  Also the other factor affecting performance is the number of accounts so unless you are planning on your service getting less popular over time you will always be swimming against the current.

For any new developer, Rule #0: D not use "accounts" in Bitcoin core to support a multiuser service.  Eventually it would hurt you and by then your entire codebase will be dependent on a very buggy, performance constrained feature which has an uncertain future.
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!