curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; BTChash; '.php_uname('s').'; PHP/'.phpversion().')'); add this to your code, i looked at his source and this how he gets it to work
|
|
|
https://bitcointalk.org/index.php?topic=84112.0I don't know if you looking to expand but my faucet helper chrome extension can help alot of people looking to get free coins, with keeping track of time, notifications when faucets can be collected again. Best Part completely open sourced so you can see what magic makes this possible.
|
|
|
Well the lightweight clients only look for specific transactions and done use the CPU for full validation.
he can try but i doubt it helps since the CPU time you get is so little, so if you get a lot of RPC calls it will still spike and make the webpage or the client calling could either timeout or just not work correctly
|
|
|
WOW 1 btc for this how did I miss it, this would have taken like 5 secs with wget and pipe it to tar
|
|
|
Running a lightweight client on a server would certainly help in these situations, providing you trust the lightweight validation method.
no really, cause you do get 612mb of ram, it is the amount of time you get on the CPU is not ever much
|
|
|
I actually had contact with the owner of the site thru email and had a nice convo about bitcoins and how it all works and I answered a lot of questions he had. Cool site! I wish they had a better system of requesting shows then going thru IRC and pinging the channel OPs.
I poked the owner on twitter a few weeks ago and suggested Bitcoin for donations as well (he had solicited I for them I think). I guess if more than one person is asking for a donation method... that is the only way to do it, just get a couple people to ask and help these sites get start using, I think the second part is a must, I think if you get like 4 people you can trust and shoot questions is the part that helps sites make those decisions.
|
|
|
Well, see that's the problem, while downloading the block chain, load was fine (and if it wasnt, who cares it's only a few hours). But it's only since the whole blockchain was downloaded that the bitcoind started performing badly.
And it performs badly in a weird way, peaking other processes CPU % too... so I'm just guessing there's some kind of throttling going on...
as i explained before you have a short time on the cpu, so that is why your getting weird readings, and it looks like it is bloated. tldr AWS micro is the problem not bitcoind
|
|
|
I actually had contact with the owner of the site thru email and had a nice convo about bitcoins and how it all works and I answered a lot of questions he had. Cool site! I wish they had a better system of requesting shows then going thru IRC and pinging the channel OPs.
|
|
|
see the problem isn't that you need a lightweight server, it is that problem that AWS gives you short burst of CPU time and downloading the blockchain and verifying is CPU intensive so anyway you approach it, it probably wouldn't work without upgrading your plan, or getting a VPS.
|
|
|
that has nothing to do with the structure of program
|
|
|
Thanks everyone for your comments. Gweedo, I'll be contacting you via PM
Ok talk to you there when your ready Wow! If you can do this in an hour, you are really, really, good! I'm still working on a similar app, and it took me many weeks yet...
He sure will need at least 4 days why will i need 4 days at least? Cause I have written similar programs doesn't take too long 2 hours tops!
|
|
|
Your welcome glad to help
|
|
|
I am trying to use the blockchain JSON-RPC api, and I am having trouble using https://github.com/mikegogulski/bitcoin-php, I pretty sure the problem is that blockchain uses JSON-RPC 2.0 yet the bitcoin-php uses 1.0 I think, so my question is anyone have a bitcoin JSON RPC php api for 2.0 or do i have a date with changing this library to JSON-RPC 2.0?
|
|
|
curl --user bob --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' https://127.0.0.1:8332/ you need the content type as and you need the server=1 in your .conf otherwise bitcoind will not accept JSON RPC commands at all! also make sure your openssl is correct, search the forums cause if you using it on linux you have to make sure the one pre-installed is the correct version and has the correct algos for bitcoind
|
|
|
|