Bitcoin Forum
May 24, 2024, 06:11:19 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 [42] 43 »
821  Bitcoin / Bitcoin Technical Support / Re: Bitcoin daemon becomes slow and unresponsive on: January 14, 2016, 12:17:45 PM
what do you mean by "account"?

you should not use bitcoin-cores account feature for a site as the result wont be what you think (please search in the tech section for the exact reason).
I mean every time when user wins the wallet transfers money from main account to user's account. User is able to manage the coins related to his account.
Here is an example.
Code:
{
        "account" : "",
        "category" : "move",
        "time" : 1452705552,
        "amount" : 12345.00000000,
        "otheraccount" : "user890",
        "comment" : ""
    }
822  Bitcoin / Bitcoin Technical Support / Re: Bitcoin daemon becomes slow and unresponsive on: January 14, 2016, 12:06:58 PM
There is a web application which creates for each user its own account in wallet. Main problem is the bitcoin daemon with time becomes slow and almost does not load new blocks from network.
I reckon the reason is the huge number of "move" RPC command (which transfer coins from main account to user's account). In these conditions Bitcoin daemon uses more than 50% of CPU and 30% of MEM.
Main problem is how to force daemon to load new blocks. Any suggestions?

Get better hardware that has a faster cpu, faster/more RAM, and a disk with a high read/write speed (e.g. SSD) since a lot of those operations involve the wallet and constantly reading and writing the wallet to and from the disk.

Thanks for reply. Actually I was hoping someone say me that problem has an another origin and how to solve it.
Any other suggestion how to force daemon to load blocks?
823  Bitcoin / Bitcoin Technical Support / Bitcoin daemon becomes slow and unresponsive on: January 13, 2016, 06:40:52 PM
There is a web application which creates for each user its own account in wallet. Main problem is the bitcoin daemon with time becomes slow and almost does not load new blocks from network.
I reckon the reason is the huge number of "move" RPC command (which transfer coins from main account to user's account). In these conditions Bitcoin daemon uses more than 50% of CPU and 30% of MEM.
Main problem is how to force daemon to load new blocks. Any suggestions?
824  Bitcoin / Bitcoin Technical Support / Re: error reading wallet.dat on: December 16, 2015, 11:09:19 PM
I replaced whole .Bitcoin directory. It still gives me "Error: wallet.dat corrupt, salvage failed" after --daemon and then -rescan flag.
However according to logs there are new kind of problem.

db.log
Code:
Page 8973: unaligned offset 2085 at page index 21
Page 8973: gap between items at offset 2096
Page 8973: gap between items at offset 2904
Page 8973: overlapping items at offset 3168
Page 8973: gap between items at offset 3184
Page 8973: overlapping items at offset 3207
Page 8973: gap between items at offset 3444
Page 8973: gap between items at offset 3812
Page 8973: gap between items at offset 4036
Page 8973: item order check unsafe: skipping
Page 8974: overlapping items at offset 2136
Page 8974: gap between items at offset 2140
Page 8974: overlapping items at offset 2175
Page 8974: gap between items at offset 4044
Page 8974: item order check unsafe: skipping
Page 13841: gap between items at offset 1776
Page 13841: gap between items at offset 2132
Page 13841: overlapping items at offset 3028
Page 13841: gap between items at offset 3036
Page 13841: overlapping items at offset 3047
Page 13841: gap between items at offset 3048
Page 13841: overlapping items at offset 3788
Page 13841: gap between items at offset 3812
Page 13841: overlapping items at offset 3819
Page 13841: gap between items at offset 3820
Page 13841: gap between items at offset 4024
Page 13841: item order check unsafe: skipping
wallet.dat: DB_VERIFY_BAD: Database verification failed
DB_LOGC->get: log record LSN 8153/356327: checksum mismatch
DB_LOGC->get: catastrophic recovery may be required
PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
process-private: unable to find environment
process-private: unable to find environment
file unknown has LSN 321/508796, past end of log at 1/28
Commonly caused by moving a database from one database environment
to another without clearing the database LSNs, or by removing all of
the log files from a database environment
Page 0: metadata page corrupted
Page 0: could not check metadata page
wallet.dat: DB_VERIFY_BAD: Database verification failed
file unknown has LSN 321/508796, past end of log at 1/1076
Commonly caused by moving a database from one database environment
to another without clearing the database LSNs, or by removing all of
the log files from a database environment
wallet.1450305254.bak: DB_VERIFY_BAD: Database verification failed

debug.log
Code:
2015-12-16 22:34:12 Default data directory /root/.Bitcoin
2015-12-16 22:34:12 Using data directory /root/.Bitcoin
2015-12-16 22:34:12 Using at most 125 connections (1024 file descriptors available)
2015-12-16 22:34:12 init message: Verifying wallet...
2015-12-16 22:34:12 dbenv.open LogDir=/root/.Bitcoin/database ErrorFile=/root/.Bitcoin/db.log
2015-12-16 22:34:14 ERROR: CDB() : error DB_RUNRECOVERY: Fatal error, run database recovery (-30973) opening database environment
2015-12-16 22:34:14 Moved old /root/.Bitcoin/database to /root/.Bitcoin/database.1450305254.bak. Retrying.
2015-12-16 22:34:14 dbenv.open LogDir=/root/.Bitcoin/database ErrorFile=/root/.Bitcoin/db.log
2015-12-16 22:34:15 Renamed wallet.dat to wallet.1450305254.bak
2015-12-16 22:34:15 Error: Salvage found errors, all data may not be recoverable.
2015-12-16 22:34:15 Salvage(aggressive) found no records in wallet.1450305254.bak.
2015-12-16 22:34:15 Error: wallet.dat corrupt, salvage failed
2015-12-16 22:34:15 Shutdown : In progress...
2015-12-16 22:34:16 StopNode()
2015-12-16 22:34:16 Flushed 0 addresses to peers.dat  3ms
2015-12-16 22:34:16 Shutdown : done
825  Bitcoin / Bitcoin Technical Support / Re: error reading wallet.dat on: December 16, 2015, 10:11:17 AM
Is this the original wallet file or the backup? It looks like the wallet.dat was corrupted and the private keys are damaged. Odd that it would happen with your live wallet.dat as well as with your backup.

This is backup when I tried to use "-zapwallettxes=2" flag.

Do you have any other backups or any idea why the backup could be corrupted as well as the normal wallet.dat?
As I said above:"I am using Ubuntu 14.04. Few days ago there was entire server crash or at least mysql crash.". This may be a reason.
I have older backups. What if I replace whole ".Bitcoin" directory?
826  Bitcoin / Bitcoin Technical Support / Re: error reading wallet.dat on: December 16, 2015, 09:18:19 AM
Is this the original wallet file or the backup? It looks like the wallet.dat was corrupted and the private keys are damaged. Odd that it would happen with your live wallet.dat as well as with your backup.

This is backup when I tried to use "-zapwallettxes=2" flag.
827  Bitcoin / Bitcoin Technical Support / Re: error reading wallet.dat on: December 15, 2015, 10:37:54 PM
My wallet was corrupted. Now when I am running the wallet (using "--daemon" flag) it says:"Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect."
I have already tried to put "-rescan" flag - gives me the same result.
I am using Ubuntu 14.04. Few days ago there was entire server crash or at least mysql crash. Anyway I have one week backup. What if I replace current "wallet.dat" by backuped "wallet.dat". Will this fix the wallet?

The backup might fix it or it might have the same issue.

Instead of -rescan try -zapwallettxes if the backup does not work.

If that does not work either, try -zapwallettxes=2 this will drop all meta data about transactions (labels, etc.) though.
Backup of wallet.dat does not help. I am even using your advices (-zapwallettxes, -zapwallettxes=2). I get new error:"Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in /root/.Bitcoin; if your balance or transactions are incorrect you should restore from a backup.
Error: Error loading wallet.dat: Wallet corrupted
".
Any other suggestions? What if I replace whole ".Bitcoin" folder by one week backup?
By the way there are these lines in "debug.log" of wallet:
...
015-12-15 22:30:50 init message: Loading wallet...
2015-12-15 22:30:52 Error reading wallet database: CPubKey corrupt
2015-12-15 22:30:54 Error reading wallet database: CPrivKey corrupt
2015-12-15 22:30:54 Error reading wallet database: CPrivKey corrupt
2015-12-15 22:30:54 Error reading wallet database: CPrivKey pubkey inconsistency
2015-12-15 22:30:54 Error reading wallet database: CPrivKey pubkey inconsistency
2015-12-15 22:30:54 Error reading wallet database: CPrivKey pubkey inconsistency
2015-12-15 22:30:55 Error reading wallet database: CPrivKey pubkey inconsistency
2015-12-15 22:30:57 Error reading wallet database: CPrivKey pubkey inconsistency
2015-12-15 22:30:58 Error reading wallet database: CPrivKey corrupt

...
828  Bitcoin / Bitcoin Technical Support / Re: error reading wallet.dat on: December 15, 2015, 10:36:37 PM
You can always try it.  BUT:
1. Make sure you have extra backups of both.
2. Don't actually REPLACE the old wallet.dat, just rename it to something else and use a COPY of the backup.  This way you will have the wallet.dat that is given you a problem now and a number of backups.
thanks for advice.
829  Bitcoin / Bitcoin Technical Support / error reading wallet.dat on: December 15, 2015, 04:28:50 PM
My wallet was corrupted. Now when I am running the wallet (using "--daemon" flag) it says:"Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect."
I have already tried to put "-rescan" flag - gives me the same result.
I am using Ubuntu 14.04. Few days ago there was entire server crash or at least mysql crash. Anyway I have one week backup. What if I replace current "wallet.dat" by backuped "wallet.dat". Will this fix the wallet?
830  Bitcoin / Project Development / Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff on: February 24, 2015, 11:00:16 PM
how to run abe without logs in console?
To run as daemon in background:
Code:
nohup ABE COMMAND TO RUN &
Log will be saved to nohup.out. You can create symlink to /dev/null if you do not want to save logs. Or if not in background:
Code:
ABE COMMAND TO RUN > /dev/null
thanks for reply. do you mean running commad may look like
Code:
nohup python -m Abe.abe --config myconf.conf
?
831  Bitcoin / Project Development / Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff on: February 24, 2015, 10:27:41 PM
how to run abe without logs in console?
832  Local / Альтернативные криптовалюты / Re: NovaCoin (scrypt PoW + PoS hybrid) [self-mod] on: November 14, 2014, 05:13:03 PM
в RPC есть такая функция mergecoins. для чего она нужна, что делает и как ею пользоватся?
p.s. я новичек в новакоина.

mergecoins <amount> <minvalue> <outputvalue>
<amount> is resulting inputs sum
<minvalue> is minimum value of inputs which are used in join process
<outputvalue> is resulting value of inputs which will be created
All values are real and and rounded to the nearest 0.0001 (code -1)


Example of usage:

mergecoins 10000 1 20

  • Select 10000 coins
  • Remove outputs with value less than 1 coin from set of selected outputs
  • Combine the rest of them into new inputs, use 20 coins as target value

The main purpose of this function is defragmentation, it can be useful for exchange or pool wallet.
there is "<minvalue> is minimum value of inputs" inputs.
there is "Remove outputs with value less than 1 coin from set of selected outputs" outputs.
can you tell why?
почему там в описании функции говорится о входах, а в примере о выходах в качестве пояснения значения параметра minvalue?
833  Local / Альтернативные криптовалюты / Re: NovaCoin (scrypt PoW + PoS hybrid) [self-mod] on: November 14, 2014, 12:33:31 PM
в RPC есть такая функция mergecoins. для чего она нужна, что делает и как ею пользоватся?
p.s. я новичек в новакоинах.
834  Bitcoin / BitcoinJ / How to get proofOfWorkLimit? on: April 19, 2014, 12:59:49 PM
Look at the code below from bitcoinj (core\src\main\java\com\google\bitcoin\params\MainNetParams.java):
Code:
proofOfWorkLimit = Utils.decodeCompactBits(0x1d00ffffL);
And look at the code from bitcoin qt wallet (src\main.cpp):
Code:
static CBigNum bnProofOfWorkLimit(~uint256(0) >> 32);
I assume that in second case bnProofOfWorkLimit consists of 32 "0" and 224 "1" (000000...000000000011111111111111111111....11111111).
So I don't have an idea how to get first case "0x1d00ffff" from second case?
P.S. I have looked in "uint256.h". It wasn't helpful.
835  Alternate cryptocurrencies / Altcoin Discussion / What is proofOfWorkLimit? on: April 18, 2014, 11:24:30 AM
Look at the code below from android bitcoin wallet:
Code:
proofOfWorkLimit = Utils.decodeCompactBits(0x1d00ffffL);
And look at the code from bitcoin qt wallet:
Code:
static CBigNum bnProofOfWorkLimit(~uint256(0) >> 32);
I assume that in second case ProofOfWorkLimit consists of 32 "0" and 224 "1" (000000...000000000011111111111111111111....11111111)?
So I don't have an idea how to get first case "0x1d00ffffL" from second case? In binary "0x1d00ffffL" is 11101000000001111111111111111.
P.S. I have looked in uint256.h. It wasn't helpful.
P.S.S. Can anyone answer for sample what exactly should I put here "Utils.decodeCompactBits(0x1d00ffffL);" in case "~uint256(0) >> 27" ?
836  Bitcoin / Development & Technical Discussion / Re: How to implement sending and receiving coins in web application? on: April 09, 2014, 10:57:18 PM
Coinbase and Bitpay have nice APIs
thanks. any other ideas? without coinbase or bitpay?
837  Bitcoin / Development & Technical Discussion / How to implement sending and receiving coins in web application? on: April 09, 2014, 02:00:32 PM
I gonna to create web app. Bitcoins will be game coins. So how to implement sending of won bitcoins from server (wallet on the server) to player's address?
838  Alternate cryptocurrencies / Altcoin Discussion / Re: Terracoin is ALLIIIIIVEEEE on: March 06, 2014, 01:24:59 PM
Yes, we also believe terracoin is alive
thats why we did this https://play.google.com/store/apps/details?id=com.vasilkoff.terracoinwallet
please take a look
it is done on base of https://code.google.com/p/bitcoin-wallet/

source code: https://code.google.com/p/terracoin-wallet/
839  Local / Альтернативные криптовалюты / Re: Terracoin on: March 04, 2014, 11:53:39 AM
новый кошелек для terracoin: https://play.google.com/store/apps/details?id=com.vasilkoff.terracoinwallet
840  Alternate cryptocurrencies / Altcoin Discussion / Re: Terracoin is ALLIIIIIVEEEE on: January 12, 2014, 10:50:42 PM
do exchange rates for terracoin in json format exist?
I need something like that: http://api.bitcoincharts.com/v1/weighted_prices.json
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 [42] 43 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!