netnegar (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
April 06, 2015, 11:35:56 AM |
|
hi all i have a problem run "bitcoin-qt.exe -Server" ( and full Config any Change parameter and any evrything more.... But i recive error on port RPCport This error: ( http://127.0.0.1:3333 ) {"result":null,"error":{"code":-32700,"message":"Parse error"},"id":null}i can't Solved my os : windows 8.1 btcoin Core version : last version(v0.10.0 (32-bit) and Update Full BlockChain my Config : rpcuser=Xuser rpcpassword=Q123456789 rpcport=3333 port=3334 daemon=1 server=1 rpcallowip=127.0.0.1 rpcallowip=192.168.0.1/255.255.255.0 rpcconnect=127.0.0.1 Evrybody help me ?
|
|
|
|
|
|
|
|
"Governments are good at cutting off the heads of a centrally
controlled
networks like Napster, but pure P2P networks like Gnutella and Tor seem
to be holding their own." -- Satoshi
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
Amph
Legendary
Offline
Activity: 3206
Merit: 1069
|
|
April 06, 2015, 12:03:09 PM |
|
you don't need "-server", just server=1 in the config, you also do not need "port" or "daemon", same for "rpcconnect"
the error could be related to maybe another client using the same port?
try to change it to something else
p.s. rpc alloip for internal ip isn't needed too, unless you want to setup a small pool with 2+ pc mining in solo
|
|
|
|
netnegar (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
April 06, 2015, 12:19:41 PM |
|
thanks but port 3333 is free befor run "bitcoin-qt.exe -server" after run server mode , port is used, and send http request on port i can view data error... {"result":null,"error":{"code":-32700,"message":"Parse error"},"id":null} if port used by any software never see this messages. and other parameter (-server or allowip by default ) removed , but my error again see error code:-32700 ( another method test connected to bitcoin server port by CPU-miner minerd -a sha256d -t 1 -R 1 -q -o http://127.0.0.1:3333 -u Xuser -p Q123456789 see error: C:\miner>minerd -a sha256d -t 1 -R 1 -q -o http://127.0.0.1:3333 -u Xuser -p Q123456789 [2015-04-06 16:46:45] 1 miner threads started, using 'sha256d' algorithm. [2015-04-06 16:46:51] HTTP request failed: The requested URL returned error: 500 Internal Server Error
|
|
|
|
Amph
Legendary
Offline
Activity: 3206
Merit: 1069
|
|
April 06, 2015, 12:46:29 PM |
|
hold on you are mining bitcoin in solo via cpu? that is not profitable at all
but if you want to mine anyway, i think the error appear because you aren't using the default port maybe, try 8332
|
|
|
|
|
Amph
Legendary
Offline
Activity: 3206
Merit: 1069
|
|
April 06, 2015, 01:11:24 PM |
|
only For you Changed port to 8332 but see again error OKY? and about CPUminer only For TEST i'm checking for this, i found similar errors on other thread, and you should re-check user, password and pool just to be sure try to add "http://" before localhost
|
|
|
|
netnegar (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
April 06, 2015, 01:34:48 PM |
|
Http is oky (in chrome browser by default not show http:// ) port is oky user is oky pass is oky ...... is okyyyy --------------------------------- if incorect http protocol or port or user or password never see this page text. oky ? me error : {"result":null,"error":{"code":-32700,"message":"Parse error"},"id":null} please Solve this ERROR code
|
|
|
|
jonnybravo0311
Legendary
Offline
Activity: 1344
Merit: 1023
Mine at Jonny's Pool
|
|
April 06, 2015, 02:59:10 PM |
|
Http is oky (in chrome browser by default not show http:// ) port is oky user is oky pass is oky ...... is okyyyy --------------------------------- if incorect http protocol or port or user or password never see this page text. oky ? me error : {"result":null,"error":{"code":-32700,"message":"Parse error"},"id":null} please Solve this ERROR code From rpcprotocol.h: It happens when the client cannot parse the RPC request being sent to it.
|
Jonny's Pool - Mine with us and help us grow! Support a pool that supports Bitcoin, not a hardware manufacturer's pockets! No SPV cheats. No empty blocks.
|
|
|
netnegar (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
April 06, 2015, 03:15:24 PM |
|
tnx a lot how to Repair this Problem ?
i use normal application software mining (for example cpuminer) , why ?
|
|
|
|
jonnybravo0311
Legendary
Offline
Activity: 1344
Merit: 1023
Mine at Jonny's Pool
|
|
April 06, 2015, 03:36:55 PM |
|
tnx a lot how to Repair this Problem ?
i use normal application software mining (for example cpuminer) , why ?
Try putting "listen=1" in your bitcoin.conf
|
Jonny's Pool - Mine with us and help us grow! Support a pool that supports Bitcoin, not a hardware manufacturer's pockets! No SPV cheats. No empty blocks.
|
|
|
netnegar (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
April 06, 2015, 03:52:11 PM |
|
Listen=1 But Not change error i write a simple programm with delphi to Raw Connect the RPC protocol (JSON-RPC) First extract Real packet with Wireshark : {"id": 1, "method": "mining.subscribe", "params": ["cpuminer/2.4.1"]} {"id":1,"result":[[["mining.set_difficulty","b4b6693b72a50c7116db18d6497cac52"],["mining.notify","ae6812eb4cd7735a302a8a9dd95cf71f"]],"7c660042",4],"error":null} {"id":null,"params":[1024],"method":"mining.set_difficulty"} {"id": 2, "method": "mining.authorize", "params": ["Xuser", "Q12345678"]} And So replace in raw requets but give me error 500 or 401 Unauthorize
function SendJson(js:string):string; var Json: string; sResponse: string; JsonToSend: TStringStream; begin JSON := JS; JsonToSend := TStringStream.Create(Utf8Encode(Json)); try Form1.IDHTTP1.Request.ContentType := 'application/json'; Form1.IDHTTP1.Request.CharSet := 'utf-8'; Form1.IdHTTP1.Request.Username:='Xuser'; Form1.IdHTTP1.Request.Password:='Q123456789';
try sResponse := Form1.IDHTTP1.Post('http://127.0.0.1:8332', JsonToSend); except on E: Exception do ShowMessage('Error on request: '#13#10 + e.Message); end; finally JsonToSend.Free; end; Result := sResponse;
end; //--------------------------------- procedure TForm1.Button3Click(Sender: TObject); begin
memo1.Lines.Add( SendJson('{"id": 2, "method": "mining.authorize", "params": ["Xuser", "Q123456789"]}'));
memo1.Lines.Add( SendJson('{"id": 1, "method": "mining.subscribe", "params": ["cpuminer/2.4.1"]}'));
memo1.Lines.Add( SendJson('{"jsonrpc": "1.0", "method": getinfo, "params": "[]" }'));
end;
my brain Fucked
|
|
|
|
netnegar (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
April 07, 2015, 11:58:55 AM |
|
Try putting "listen=1" in your bitcoin.conf rpcuser=Xuser rpcpassword=Q123456789 rpcport=8332 daemon=1 server=1 listen=1 rpcallowip=127.0.0.1
|
|
|
|
netnegar (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
July 06, 2015, 02:36:30 PM |
|
tnx for help me , JSON format is problem i used this script php and correct conect to Local Server test <?php // Get cURL resource require_once 'jsonRPCClient.php'; $bitcoin = new jsonRPCClient('http://xuser:123456789@127.0.0.1:8332');
echo "<pre>\n"; print_r($bitcoin->getinfo()); echo "\n"; print_r($bitcoin->getblocknumber()); echo "\n";
echo "Received: ".$bitcoin->getreceivedbylabel("n3sCmQrQsSyMRpHHuSjFU4r5sTcsjZSZYn")."\n"; echo "<pre>\n";
echo include(json_decode( $url));
?> Now Test : http://127.0.0.1/curl.phpReply From server and see in my Browser: Array ( [version] => 100200 [protocolversion] => 70002 [walletversion] => 60000 [balance] => 5999.99999288 [blocks] => 220 [timeoffset] => 0 [connections] => 0 [proxy] => 127.0.0.1:9050 [difficulty] => 0 [testnet] => [keypoololdest] => 1428402437 [keypoolsize] => 101 [paytxfee] => 0 [relayfee] => 1.0E-5 [errors] => )
|
|
|
|
netnegar (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
July 17, 2015, 10:07:40 AM |
|
Supposing it is expressed in BTC, that's a nice balance you got there it's "regtest" mode balance if this balance real ---> i am a biloner
|
|
|
|
-ck
Legendary
Offline
Activity: 4102
Merit: 1632
Ruu \o/
|
|
July 17, 2015, 01:43:35 PM |
|
There's so much wrong with this...
Current bitcoin does not support mining with getwork or stratum. It only supports giving you GBT templates. Which means you need a full featured miner that can read the GBT templates and create work out of them. Plain CPU mining software cannot do it. Cgminer can, but it is only designed to support ASIC mining hardware. Alternatively you need to add full pool software, like ckpool, between bitcoin and your mining software, and even then, your mining software must also support stratum mining.
Short version: You cannot use bitcoin qt/core as a mining server which is what you're trying to do. You need full featured mining software or pool software to generate the mining work.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
|