Bitcoin Forum
June 16, 2021, 10:20:24 AM *
News: Latest Bitcoin Core release: 0.21.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  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?
2  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?
3  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.
4  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" ?
5  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?
6  Bitcoin / BitcoinJ / Incoming adresses on: October 10, 2013, 09:15:09 AM
I have modified bitcoinj to some altcoin network. But I have a question. Why do coins receive from different adresses (I am using one client for windows with one adress to send coins). Is it also normal for bitcoin network?
7  Bitcoin / Bitcoin Wallet for Android / "checkpoints" file structure on: September 27, 2013, 10:22:36 PM
What is "checkpoints" file structure http://i59.fastpic.ru/big/2013/0928/f0/6c9c27c2adbb2a178be2cc294aed35f0.jpg ? I mean what kind of data should be put here? Do any docs about exist?
8  Bitcoin / BitcoinJ / Are "seedAddrs" in "SeedPeers.java" still online? on: September 23, 2013, 03:25:01 PM
I'm trying to use SeedPeers.java in android app for connection to bitcoin network. But it doesn't look normal. I can see in ddms only "Peer died" or "connection timed out": http://i58.fastpic.ru/big/2013/0922/90/d002e868d692611371894ba100c11490.jpg
What is the problem if the "seedAddrs" is online?
9  Bitcoin / Bitcoin Wallet for Android / "SeedPeers" class on: September 08, 2013, 06:01:02 PM
First look in screenshot number one of davlik debug monitor server after running Bitcoin Wallet: http://piccy.info/view3/5090102/7074a1d99a96e67bdbea36a04073c21f/orig/
I suppose, that is normal work of Bitcoin Wallet.
Then I modified bitcoinj and bitcoin-wallet a little bit. I changed bitcoinj\core\src\main\java\com\google\bitcoin\kits\WalletAppKit.java (line 104):
Code:
vPeerGroup.addPeerDiscovery(new SeedPeers(params));
instead
Code:
vPeerGroup.addPeerDiscovery(new DnsDiscovery(params));
and bitcoin-wallet\wallet\src\de\schildbach\wallet\service\BlockchainServiceImpl.java (line 406):
Code:
private final PeerDiscovery normalPeerDiscovery = new SeedPeers(Constants.NETWORK_PARAMETERS);
instead
Code:
private final PeerDiscovery normalPeerDiscovery = new DnsDiscovery(Constants.NETWORK_PARAMETERS);
Look in screenshot number two of davlik debug monitor server after running Bitcoin Wallet to see the result: http://piccy.info/view3/5090104/aaf257fbd618863b16ed99ffb2263e66/orig/
I think, that is not normal work of app because you can see only "Peer died" and "Connection timed out".
So my question is: does class SeedPeers work correct? Maybe, it is not fully implemented?
P.S. Nonetheless, it could still work correct. I just don't have an opportunity to send or receive bitcoins to test Bitcoin Wallet with "SeedPeers" class instead "DnsDiscovery" class. So if you can do that, please do.
P.S.S. I'm not sure it is Bitcoin Wallet problem or bitcoinj problem.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!