Hi, I was trying to buy a ticket but I got error saying - Insufficient funds available to construct transaction, but I have about 70 dcr available. I have faced this before and could solve it using consolidate command. But when I tried to consolidate wallet with - dcrctl - u xxx -P xxx --wallet consolidate 10000, I got another error saying no inputs to consolidate, How to fix it? And what is the say to prevent the wallet from creating new addresses all the time?
Well I believe consolidation on newer versions shouldn't even be needed anymore but the command hasn't changed. Re-creating wallet from seed should solve your problem but of course make a backup first to be sure.
I had this same issue about two weeks ago. Regeneration from your wallet seed fixes the issue. It took me a while to find the correct way to do this, however. You must be sure to first completely update dcrd to the best block. Then, and only then, regenerate the wallet. I'm not sure if this is essential to the process, but using the same public and private keys may play a role in regenerating stake tickets too. Good luck!
While recreating from seed, I will have to wait till its syncs to latest block right? And way to decrease the time taken for it??
Dude, I agree those links are useful but please comment something relevant!! And of course I checked those before posting this in the first place.
Yes, you should only wait. If your dcrd DB is synced, it should not take long time, maybe few minutes to resync the dcrwallet db. Yes run your wallet with --reuseaddresses flag:
It would take more than just a few minutes. I have seen it take 10 secs for 25 blocks - 30 blocks~! so it will take a lot of time right?
If your dcrd DB is synced, it should not take long time, maybe few minutes to resync the dcrwallet db.
@Ayush must be very busy man, if he can not just do a simple search that @root recommended https://forum.decred.org/search/173209/?q=how+to+rebuild+resync+wallet&o=relevance and must ask if he has to wait for sync. Copied for your convenience. Allow the daemon to completely sync to the current block before going to the next step Obviously you did not check provided info very carefully, and using exclamation mark seems to me like trying to bite the hand that offered help. Strange world we live in
Wooah. Intense. I appreciate ur help. But please note that that wasn't the problem I was facing. I have rebuilt wallet from seed plenty of times before. And the daemon sync part is known to me. My questions were - Can I reduce the time used by dcrd to sync to latest block (obviously after removing the previous folder) And How to use the command to prevent the wallet from getting coins in different address or whatever they are called. And of course, Thanking for spending ur time on my issue.