I'll give it a shot. It sounds like Piggycoin though . Yeah! Bacoin! woot.
|
|
|
Do it for the bacon people!
|
|
|
Hey, that's cool! Thanks for the feature!
|
|
|
here a coin with a real proof of burn Some like it crispy, some like it greasy. Either way, it smells and tastes great!
|
|
|
Are you trying to compete with piggy coin?
Not at all. I'm trying to slaughter them.
|
|
|
Also where is specs of coin? Total coins, diff retarget?
Rate in seconds: 600 Initial per block: 50 Block half rate: 210000 Total: 21000000
|
|
|
decentralized bacon, that's a stroke of genius Every good idea started with a bit of bacon for breakfast. Damn. This coin pushes me make some food. Better go to sleep. It's the coin that keeps giving you good ideas, about bacon.
|
|
|
mmm mmm
It's good for your belly.
|
|
|
Edit: My current wallet is at 4100, and others have used it and this is all CPU mined on a laptop.
So you have premine just 82 blocks? When I start wallet blocks been around 120+ Where is 20k lol? Stop making fun of my math and bacon.
|
|
|
How you can premine 20K?
{ "blocks" : 177, "currentblocksize" : 1000, "currentblocktx" : 0, "difficulty" : 0.00024414, "errors" : "", "generate" : false, "genproclimit" : -1, "hashespersec" : 0, "pooledtx" : 0, "testnet" : false }
20 000 / 50 = 400.
Hmm.. idk. That is why i said estimate. I am bad at math, Maybe disregard that statement? *Shrug* Edit: My current wallet is at 4100, and others have used it and this is all CPU mined on a laptop. Edit2:
|
|
|
I estimate only 20k has been premined.
Block reward 50 Laughing at breakfast when I'm full on BACON! Check the build date, its today =P
|
|
|
That should be removed
You only need the password in the URL not in the curl script.
Your a genius and i love you. Thanks everyone for your help, its really appreciated. And when i become BTC rich i will think of you for a second.
|
|
|
Why do you have... rpcallowip=127.0.0.1 rpcallowip=localhost
These are the same thing, I would remove the "localhost" one, it is better to use the ip 127.0.0.1 for localhost. Not a hostname. Meh best practice where i come from is to use the hostname
|
|
|
Ill try what you suggested then report back and then replace the json client. EDIT: Didnt work with the replaced RPC client or with the true statement RPCclient im using: /** * The object of this class are generic jsonRPC 1.0 clients * http://json-rpc.org/wiki/specification * * @author sergio <jsonrpcphp@inservibile.org> */ class jsonRPCClient { /** * Debug state * * @var boolean */ private $debug; /** * The server URL * * @var string */ private $url; /** * The request id * * @var integer */ private $id; /** * If true, notifications are performed instead of requests * * @var boolean */ private $notification = false; /** * Takes the connection parameters * * @param string $url * @param boolean $debug */ public function __construct($url,$user_pwd,$debug = false) { // server URL $this->url = $url; // user:password $this->user_pwd = $user_pwd; // proxy empty($proxy) ? $this->proxy = '' : $this->proxy = $proxy; // debug state empty($debug) ? $this->debug = false : $this->debug = true; // message id $this->id = 1; } /** * Sets the notification state of the object. In this state, notifications are performed, instead of requests. * * @param boolean $notification */ public function setRPCNotification($notification) { empty($notification) ? $this->notification = false : $this->notification = true; } /** * Performs a jsonRCP request and gets the results as an array * * @param string $method * @param array $params * @return array */ public function __call($method,$params) { // check if (!is_scalar($method)) { throw new Exception('Method name has no scalar value'); } // check if (is_array($params)) { // no keys $params = array_values($params); } else { throw new Exception('Params must be given as array'); } // sets notification or request task if ($this->notification) { $currentId = NULL; } else { $currentId = $this->id; } // prepares the request $request = array( 'method' => $method, 'params' => $params, 'id' => $currentId ); $request = json_encode($request); $this->debug && $this->debug.='***** Request *****'."\n".$request."\n".'***** End Of request *****'."\n\n"; // performs the HTTP POST $ch = curl_init(); curl_setopt_array($ch, array( CURLOPT_URL => $this->url, CURLOPT_USERPWD => $this->user_pwd, CURLOPT_POST => true, CURLOPT_POSTFIELDS => $request, CURLOPT_HTTPHEADER => array('Content-type: application/json'), CURLOPT_RETURNTRANSFER => true, )); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); if($http_code < 200 || $http_code >= 300) { throw new Exception('Unable to connect to '.$this->url); } $this->debug && $this->debug.='***** Server response *****'."\n".$response.'***** End of server response *****'."\n"; $response = json_decode($response,true); // debug output if ($this->debug) { echo nl2br($debug); } // final checks and return if (!$this->notification) { // check if ($response['id'] != $currentId) { // throw new Exception('Incorrect response id (request id: '.$currentId.', response id: '.print_r($response,true).')'); } if (!is_null($response['error'])) { // throw new Exception('Request error: '.$response['error']['message']); } return $response['result']; } else { return true; } } } ?>
|
|
|
I'm assuming your username's and passes's are matching.
What function are you calling to get the error?
This here is supposed to grab the info from up there. It does so properly and tries to connect but i receive the error i posted up top. require_once('jsonRPCClient.php'); $bc = new jsonRPCClient('http://' . $rpc_user . ':' . $rpc_pass . '@' . $rpc_host . ':' . $rpc_port);
|
|
|
The daemon had trouble parsing the json you sent it.
Without a code snippet, I can't help you any more than that.
/* Configuration variables for the JSON-RPC server */ $rpc_host = 'localhost'; $rpc_port = '8332'; $rpc_user = 'thisuser'; $rpc_pass = 'mypass';
require_once('jsonRPCClient.php'); $bc = new jsonRPCClient('http://' . $rpc_user . ':' . $rpc_pass . '@' . $rpc_host . ':' . $rpc_port); Also conf: # JSON-RPC options (for controlling a running Bitcoin/bitcoind process) # server=1 tells Bitcoin-QT to accept JSON-RPC commands. server=1 # You must set rpcuser and rpcpassword to secure the JSON-RPC api rpcuser=thisuser rpcpassword=thispass # How many seconds bitcoin will wait for a complete RPC HTTP request. # after the HTTP connection is established. rpctimeout=30 # By default, only RPC connections from localhost are allowed. Specify # as many rpcallowip= settings as you like to allow connections from # other hosts (and you may use * as a wildcard character): #rpcallowip=10.1.1.34 rpcallowip=127.0.0.1 rpcallowip=10.1.10.100 rpcallowip=localhost # Listen for RPC connections on this TCP port: rpcport=8332
|
|
|
I have set up my .conf file for bitcoin and a php script to connect to the RPC server. Whenever i try to connect through my web browser i get this error:
{"result":null,"error":{"code":-32700,"message":"Parse error"},"id":null}
Any tips?
|
|
|
|