Search content
Sort by

Showing 20 of 59 results by buffett
Post
Topic
Board Bitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 18/01/2016, 03:34:39 UTC
dumpwallet "filename"

Dumps all wallet keys in a human-readable format.


cool! i was looking at outdated api documentation. will try dumpwallet command
Post
Topic
Board Bitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 16:32:46 UTC
as far as i know exporting privatekey can only be done one by one through API.
Post
Topic
Board Bitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 16:23:41 UTC
yes i already built a load balancer for few bitcoind wallets, and of course they will be separated into fewer addresses.

and this wallet will not grow, i will leave it as it is because i don't have idea how to split the wallet.dat easily
Post
Topic
Board Bitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 16:05:13 UTC
hahaha yes it is very silly, it turns out I was using 32bit box  Grin Grin Grin Grin Grin

no wonder bitcoind crashes when reach 4gb and ignore the rest of the memory

i already moved it to 64bit and everything seems to work fine.

thanks for the help  Grin

anyway, for anyone have similar issue but with limited RAM, using -dbcache=16 really do the trick. it works even for 100k+ addresses but every command become very slow.
Post
Topic
Board Bitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 06:02:14 UTC
i'm installing fresh bitcoind on new server now.

Post
Topic
Board Bitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 05:35:54 UTC
or did you mean to backup whole .bitcoin directory?
Post
Topic
Board Bitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 05:34:47 UTC
is it possible to create a new wallet without resync?

tried to move the wallet.dat, starting bitcoind gave me

Code:
Corrupted block database detected.

Do you want to rebuild the block database now?
Post
Topic
Board Bitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 05:14:35 UTC
i was trying to avoid resync the whole blockchain if possible (it already takes 1 day to reach 34xxxx).

but I will do it anyway. and see what happen. will update later.

thanks for your help.
Post
Topic
Board Bitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 04:20:54 UTC
what i'm really confused is the server doesn't seem to run out of memory. only 3gb being used.
Post
Topic
Board Bitcoin Technical Support
Re: EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 02:31:14 UTC
the wallet has 100k of addresses

^ That is not a good idea.

The wallet doesn't scale well at all and despite the large amount of RAM you might be hitting a limit that is causing the bad alloc (although a bad alloc could also be caused through passing an invalid value for allocation).

To work out whether the problem is your wallet's size back it up and then delete it and re-start Bitcoin (it will create a new empty wallet). If no crashes happen with the empty wallet then I would assume your problem is the huge wallet.


i know it is not a good idea, but i need to get this wallet up. any ideas?
Post
Topic
Board Bitcoin Technical Support
Topic OP
EXCEPTION: St9bad_alloc std::bad_alloc bitcoin in ProcessMessages()
by
buffett
on 17/01/2016, 02:16:41 UTC
my wallet blockchain was crashed and I unable to start it back with -reindex

it already synced to block num 340870, and it will be crashed every 5-10 blocks:

Quote
************************
EXCEPTION: St9bad_alloc       
std::bad_alloc       
bitcoin in ProcessMessages()       

2016-01-17 02:12:03 ProcessMessages(block, 749055 bytes) FAILED peer=6

config:

Quote
server=1
daemon=1
rpcport=12345
rpcuser=xxx
rpcpassword=xxxx

maxconnections=8
paytxfee=0.0001

minrelaytxfee=0.0001
limitfreerelay=5

the server has 16gb of RAM and 10gb of swap.

the wallet has 100k of addresses

any help would be very appreciated.

thanks
Post
Topic
Board Announcements (Altcoins)
Re: [ANN][DRK] Darkcoin | First Anonymous Coin | Inventor of X11, DGW, Darksend and InstantX
by
buffett
on 16/03/2015, 03:20:38 UTC
darkcoin stops generating new block since 40 minutes ago, what is going on?

http://explorer.darkcoin.io/chain/Darkcoin
https://chainz.cryptoid.info/drk/
https://bchain.info/DRK/
Post
Topic
Board Bitcoin Discussion
Re: Best practice for fast transaction acceptance - how high is the risk?
by
buffett
on 06/12/2014, 17:30:06 UTC
I'm sorry for posting in a zombie thread. Anyone looking for a solution for accepting 0 confirmation payments may check blockcypher api: http://dev.blockcypher.com/reference.html#zero_confirmations

It's not mine but I think it's worth mention here since I was also struggling looking for a simple solution for this matter.
Post
Topic
Board Bitcoin Technical Support
Re: Is it a bad idea to have a wallet with 10s of thousands of addresses?
by
buffett
on 25/09/2014, 15:05:32 UTC
what do you mean by active addresses and why it becomes slow?

active address i mean if the address is not empty.

bitcoind is pain in the ass in large scale
Post
Topic
Board Bitcoin Technical Support
Re: Is it a bad idea to have a wallet with 10s of thousands of addresses?
by
buffett
on 21/09/2014, 01:02:59 UTC
transfering out btc become very very slow (5-20 seconds per tx) when you have >20k active addresses.
Post
Topic
Board Bitcoin Technical Support
Topic OP
getbalance minconf 0 doesnt work for bitcoind 0.9.2.1
by
buffett
on 20/09/2014, 10:21:48 UTC
This is brand new bitcoind installed in ubuntu 14.04, bitcoind getbalance '*' 0 always return same value with bitcoind getbalance '*' or bitcoind getbalance '*' 1 or bitcoind getinfo although it has unconfirmed transactions.

Anyone have a clue?
Post
Topic
Board Development & Technical Discussion
Topic OP
What happened with Block #318677?
by
buffett
on 03/09/2014, 04:43:30 UTC

Check this: https://blockchain.info/block-index/460155

The block is marked orphaned and all transactions in this block have 0 confirmation even this block was generated yesterday.
Post
Topic
Board Bitcoin Technical Support
Re: How to make Bitcoind to run with more than 1 CPU
by
buffett
on 18/07/2014, 18:22:56 UTC
I have an exchange pretty much like btc-e. each member has their own btc address to make deposit.
Post
Topic
Board Bitcoin Technical Support
Re: How to make Bitcoind to run with more than 1 CPU
by
buffett
on 18/07/2014, 01:17:18 UTC
Do you have any solution for handling large wallet with bitcoind? The only solution I can think is by separating addresses into few bitcoind server. let say 10k addresses per server. But this solution is not elegant and requires a lot of work.

Thank you.
Post
Topic
Board Bitcoin Technical Support
Topic OP
How to make Bitcoind to run with more than 1 CPU
by
buffett
on 17/07/2014, 19:45:32 UTC
I have 8 core server, this server is dedicated for hosting bitcoind. So I want to utilize all CPUs for bitcoind to make it faster and more responsive. We host ~20000 addresses and bitcoind is getting slower and slower everyday. For now it takes 2-5 seconds for each transaction. From log I got 2 transactions executed for more than 60s.

Thank you.