Bitcoin Forum
June 30, 2024, 07:16:11 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 [138] 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 ... 405 »
2741  Other / Beginners & Help / Re: Which pool is best for 1275000MH/s ? on: November 19, 2012, 07:40:13 PM
BitMinter has coding in place to deal with large hashpower.  Not sure what other pools are ready for it...!
2742  Economy / Currency exchange / Re: Vircurex SSL certificate expired...cause for concern? on: November 19, 2012, 07:00:53 PM
I have some LTC at vircurex... not sure where else to store it, as I don't really want to run a litecoin wallet myself.
2743  Bitcoin / Legal / Re: Is stealing Bitcoins illegal? on: November 19, 2012, 05:21:20 PM
It is taking something of value that does not belong to you.  Of course it is theft!  Any judge trying to rule otherwise would be out of their mind.
2744  Economy / Services / Re: give me a paystub on: November 19, 2012, 04:49:16 PM
I think you're referring to a different situation than I am. Having a software company temporarily hire you and accept contracts for you to work on is not lying or fraud, and it's a very common practice. That's all I was saying. I didn't get the impression this guy was looking for someone to lie about anything.


Well, that's the idea...
As far as I see, he wants to get paid in Bitcoins. He doesn't say anything about lying.
Why would he?
2745  Economy / Services / Re: give me a paystub on: November 19, 2012, 04:44:44 PM
I think you're referring to a different situation than I am. Having a software company temporarily hire you and accept contracts for you to work on is not lying or fraud, and it's a very common practice. That's all I was saying. I didn't get the impression this guy was looking for someone to lie about anything.


Well, that's the idea...
2746  Bitcoin / Bitcoin Technical Support / Re: [1 BTC BOUNTY] Did the JSON-RPC commands change? on: November 19, 2012, 08:32:11 AM
The only thing I can think of is to wrap the amount in the method floatval();
GENIUS!  Ok, not really, but you did think of something to try that I did not!  Wink

Where do I send the 1 BTC?
EDIT:  I'll send to your donation address since it's convenient.
2747  Bitcoin / Bitcoin Technical Support / Re: [1 BTC BOUNTY] Did the JSON-RPC commands change? on: November 19, 2012, 08:15:32 AM
Ok, so I figured I'd post the entire code from the php page I am using (sanitized).  Basically, it finds bitcoin sends in the forum of [btcaddress, amount] out of the text pasted in the text area and creates a sendmany array with all of them found.

Following the first code block is the getinfo() output.

Code:
<?
require_once 'includes/jsonRPCClient.php';
$bitcoin = new jsonRPCClient('http://sanitized:sanitized@127.0.0.1:8332/');

echo "<pre>\n";
print_r($bitcoin->getinfo());
echo "</pre>";

if ($_SERVER['REQUEST_METHOD']=="POST") {
if ($_POST['password']=="sanitized") {

$fromAccount = "";

$input = $_POST['data'];
$input = explode("[",$input);

$input[0]="";
$sendto="";
for ($i=1; $i<sizeof($input); $i++) {
$temp = explode("]",$input[$i]);
$input[$i] = $temp[0];
$input[$i] = explode(",",$input[$i]);
$sendto[trim($input[$i][0])] = trim($input[$i][1]);
}



try {
echo 'Trying: Sendmany<br/>';
$returned = $bitcoin->sendmany($fromAccount, $sendto);
} catch (Exception $e) {
echo 'Caught exception: ',  $e->getMessage(), "<br/>";
echo print_r($sendto);
}

}
else {
echo "Incorrect password.";
}
}
else {

?>
<form action="" method="post">
    <textarea cols="70" rows="30" name="data" id="data"></textarea></br>
        <input type="password" name="password" id="password" />
        <input type="submit" value="Process Addresses" />
    </form>
<?
}
?>

Output of getinfo():
Code:
Array
(
    [version] => 32300
    [balance] => 1
    [blocks] => 208578
    [connections] => 8
    [proxy] =>
    [generate] =>
    [genproclimit] => -1
    [difficulty] => 3368767.1405329
    [hashespersec] => 0
    [testnet] =>
    [keypoololdest] => 1353202101
    [paytxfee] => 0
    [errors] => URGENT: upgrade required, see http://bitcoin.org/dos for details
)
2748  Bitcoin / Bitcoin Technical Support / Re: [1 BTC BOUNTY] Did the JSON-RPC commands change? on: November 19, 2012, 08:10:01 AM
Code:
 Fatal error: Call to undefined function curl_init() in C:\wamp\www\includes\jsonRPCClient.php on line 126

that means curl isn't in your php build, switch back to the fopen version
Roger that.  :\
2749  Bitcoin / Bitcoin Technical Support / Re: [1 BTC BOUNTY] Did the JSON-RPC commands change? on: November 19, 2012, 08:00:43 AM
Code:
 Fatal error: Call to undefined function curl_init() in C:\wamp\www\includes\jsonRPCClient.php on line 126
2750  Bitcoin / Bitcoin Technical Support / Re: [1 BTC BOUNTY] Did the JSON-RPC commands change? on: November 19, 2012, 07:58:57 AM
All you have to do is replace the file named "jsonRPCClient.php" with mine and use it the same way you been using it.

Are you passing an account?

Code:
$client->sendmany("", array("18TKNbSLTrd3a2W8mtoH5uNzFhWRWNcuHU" => 0.00000800,"1JTZHBdrDnFaVvuV43sd2oiwDmzUPfa3Ws" => 0.00000100));
Ok, I'll give that a try.

Account is blank.  "", as you have written.
2751  Bitcoin / Bitcoin Technical Support / Re: [1 BTC BOUNTY] Did the JSON-RPC commands change? on: November 19, 2012, 07:50:47 AM
it sounds like an fopen issue, try this version it is the cURL version I wrote, it works the same exact way as jsonRPCClient just uses curl instead of fopen

http://pastebin.com/UfrgfpAi
Hmmm... I don't really know json, or jsonRPC at all.  I use a bitcoin.php and jsonRPCClient.php file to run my code though.  Json greatly confuses me for some reason.

Can you give an example of how to use your code if I have an array of addresses and amounts?

Here's the array:

Code:
Array ( [18TKNbSLTrd3a2W8mtoH5uNzFhWRWNcuHU] => 0.00000800 [1JTZHBdrDnFaVvuV43sd2oiwDmzUPfa3Ws] => 0.00000100 ) 1

Not sure what the 1 at the end is... didn't notice that before.  Could that potentially be causing problems?  I just did a print_r of the array to get that output.
2752  Bitcoin / Bitcoin Technical Support / Re: [1 BTC BOUNTY] Did the JSON-RPC commands change? on: November 19, 2012, 07:37:44 AM
It seems your php can't connect to your bitcoind, make sure you have set the correct allowip in the bitcoin.conf. Also if your using a shared hosting server for the php, fopen could be blocked, at that time I can sell you a curl version of JSONclient that I wrote.
That's what I am gathering.  I can't figure out why though, because the getinfo command I send right before the sendmany command works just fine.  The HTTP server running the PHP code and the bitcoind server run on the same local machine.  Nothing is hosted outside of my house in this situation - it's all local.

I caught this exception as well:
Code:
Caught exception: Unable to connect to http://secret:mypassword@127.0.0.1:8332/

So why can it connect with the secret:password combo to utilize the getinfo() command but not use the same connection to do sendmany?

EDIT:  Here's the relevant code for the connection and getinfo (which, again, is working fine).

Code:
	$bitcoin = new jsonRPCClient('http://secret:mypassword@127.0.0.1:8332/');

echo "<pre>\n";
print_r($bitcoin->getinfo());
echo "</pre>";

I got it you updated to 0.7.1 you probably encrypted your wallet, so you have to unlock it then use the sendmany command then lock it again.
Nope, I'm actually back on 0.3 because I thought it might fix the problem.  Brand new wallet, brand new blockchain downloaded (because 0.7 updated both of those to a later format not compatible with 0.3), and it's still giving me the same trouble.
2753  Bitcoin / Bitcoin Technical Support / Re: [1 BTC BOUNTY] Did the JSON-RPC commands change? on: November 19, 2012, 07:27:10 AM
It seems your php can't connect to your bitcoind, make sure you have set the correct allowip in the bitcoin.conf. Also if your using a shared hosting server for the php, fopen could be blocked, at that time I can sell you a curl version of JSONclient that I wrote.
That's what I am gathering.  I can't figure out why though, because the getinfo command I send right before the sendmany command works just fine.  The HTTP server running the PHP code and the bitcoind server run on the same local machine.  Nothing is hosted outside of my house in this situation - it's all local.

I caught this exception as well:
Code:
Caught exception: Unable to connect to http://secret:mypassword@127.0.0.1:8332/

So why can it connect with the secret:password combo to utilize the getinfo() command but not use the same connection to do sendmany?

EDIT:  Here's the relevant code for the connection and getinfo (which, again, is working fine).

Code:
	$bitcoin = new jsonRPCClient('http://secret:mypassword@127.0.0.1:8332/');

echo "<pre>\n";
print_r($bitcoin->getinfo());
echo "</pre>";
2754  Bitcoin / Bitcoin Technical Support / Re: Did the JSON-RPC commands change? on: November 19, 2012, 06:54:36 AM
I found this much...

Code:
...
AddAddress(x.x.x.x:8333)
ThreadRPCServer method=getinfo
keypool reserve 3
keypool return 3
ThreadRPCServer method=sendmany
connection timeout
trying connection x.x.x.x:8333 lastseen=-1.0hrs lasttry=-375918.9hrs

Neither of the x.x.x.x was my local or external IP, and the code I am attempting to run is being executed on the local machine with the bitcoin client on it.

EDIT:  Now offering a 1 BTC bounty for whoever comes up with a solution to my problem.
2755  Bitcoin / Bitcoin Technical Support / Re: Did the JSON-RPC commands change? on: November 18, 2012, 02:06:50 AM
Just curious - did the JSON commands change between version 0.3 and 0.7?  I tried using sendmany with the same code I used on 0.3, but it doesn't work in 0.7.  I haven't rolled back to 0.3 to try it again (is there a legitimate place to download 0.3 from still?), but I haven't changed any of the code since the last time I used it on 0.3 either.

" Warning: fopen(http://...@127.0.0.1:8332/) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in C:\wamp\www\includes\jsonRPCClient.php on line 132"

'sendmany' should be unchanged, AFAIK.

Want to post a debug.log snippet?


Sure, but I've had more activity after this attempt... what should I look for in the log to find the relevant section?  Or at the very least, what could I look for to find a receipt and send of coins?
2756  Bitcoin / Bitcoin Technical Support / [1 BTC BOUNTY] Did the JSON-RPC commands change? on: November 18, 2012, 01:02:43 AM
Just curious - did the JSON commands change between version 0.3 and 0.7?  I tried using sendmany with the same code I used on 0.3, but it doesn't work in 0.7.  I haven't rolled back to 0.3 to try it again (is there a legitimate place to download 0.3 from still?), but I haven't changed any of the code since the last time I used it on 0.3 either.

" Warning: fopen(http://...@127.0.0.1:8332/) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in C:\wamp\www\includes\jsonRPCClient.php on line 132"

Offering 1 BTC bounty to whomever solves my problem here.
2757  Economy / Service Discussion / Re: Why I trust Patrick Harnett on: November 17, 2012, 12:23:06 AM
This thread is now hilarious.
2758  Bitcoin / Bitcoin Discussion / Re: Meanwhile on MY car.... on: November 16, 2012, 06:33:50 PM
My  plates have the first bits for one of my addresses. Ok, that was a lie. They're actually just a random DMV-selected alphanumeric string, but there's no harm in pretending, is there?
Now that's something doable with 6 letters..!
18TKN.  No one would have a clue what it meant.
2759  Bitcoin / Bitcoin Discussion / Re: Meanwhile on MY car.... on: November 16, 2012, 06:11:54 PM
You can't even get "Bitcoin" in my state - they won't allow it.
2760  Bitcoin / Bitcoin Discussion / Re: Meanwhile on MY car.... on: November 16, 2012, 06:09:02 PM
Ya'll are making me jelly.
Pages: « 1 ... 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 [138] 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 ... 405 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!