Bitcoin Forum
June 23, 2024, 10:56:40 PM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Pools (Altcoins) / Re: [ANN][AUTO-SWITCH] Profit-switch auto-exchange pool: CleverMining.com on: March 20, 2014, 08:48:24 PM
Hello,

noo please keep posting the hourly stats. They are fun. I trust you.

JJ
2  Bitcoin / Project Development / Help on Vircurex API Ruby code. on: March 17, 2014, 09:54:01 PM
Hello,

I hope this is the right forum.

I'm trying to make the vircurex API code work in Ruby but at no avail. I have amended it, so at least it is syntactically correct and the strings my_url and my_params, together, when copied into a web-brower, do work. But unfortunately the rest doesn't.  Please find my adjusted code attached, I have commented, what I changed. What am I missing?

thanks. in advance,

JJ

Quote
#original example modified
#1. Change: added necessary libs to avoid error like: in `<main>': uninitialized constant Digest (NameError)
require 'digest'
require 'open-uri'
require 'net/http'
require 'openssl'
#end of libs


 t = Time.now.gmtime.strftime("%Y-%m-%dT%H:%M:%S")
 trx_id = Digest::SHA2.hexdigest("#{t}-#{rand}")
 user_name = "MY_USER_NAME"
 secret_word = "123456789"
 


 tok = Digest::SHA2.hexdigest("#{secret_word};#{user_name};#{t};#{trx_id};create_order;sell;10;btc;50;nmc")
 # 3. Change: move this Order call down behind the definition to avoid error orig.rb:15:in `<main>': uninitialized constant Order (NameError)
 # Order.call_https("https://api.vircurex.com","/api/create_order.json?account=#{user_name}&id=#{trx_id}&token=#{tok}&timestamp=#{t}&ordertype=sell&amount=10&currency1=btc&unitprice=50&currency2=nmc")
#
# 2. Change: added class Order to avoid error: in `<main>': uninitialized constant Order (NameError)

class Order
 def self.call_https(my_url,my_params)
 # output what would be sent:
  puts my_url+ my_params
  # this output, when put into web-brower, works!
  uri = URI.parse(my_url)
  http = Net::HTTP.new(uri.host, '443')
  http.use_ssl = true
  http.verify_mode = OpenSSL::SSL::VERIFY_PEER
  response=""
  resp=""
  http.start do |http|
   cmd = my_params
   req = Net::HTTP::Get.new(cmd)
   response = http.request(req)
   resp = response.body
  end
  return ActiveSupport::JSON.decode(resp)
 end
end #of class Order

#execute order
 Order.call_https("https://api.vircurex.com","/api/create_order.json?account=#{user_name}&id=#{trx_id}&token=#{tok}&timestamp=#{t}&ordertype=sell&amount=10&currency1=btc&unitprice=50&currency2=nmc")


the error I'm getting is:

Quote
C:/Ruby200/lib/ruby/2.0.0/net/http.rb:918:in `connect': SSL_connect returned=1 e
rrno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL
::SSL::SSLError)
        from C:/Ruby200/lib/ruby/2.0.0/net/http.rb:918:in `block in connect'
        from C:/Ruby200/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
        from C:/Ruby200/lib/ruby/2.0.0/net/http.rb:918:in `connect'
        from C:/Ruby200/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
        from C:/Ruby200/lib/ruby/2.0.0/net/http.rb:851:in `start'
        from test.rb:35:in `call_https'
        from test.rb:45:in `<main>'
3  Alternate cryptocurrencies / Pools (Altcoins) / Re: [ANN][AUTO-SWITCH] Profit-switch auto-exchange pool: CleverMining.com on: March 13, 2014, 11:33:35 AM
The website was down but it's up again. It's on another server than the pool so it didn't interfered with mining.

Phew, good news, thanks, keep up the good work.
Find better coins now, please :-)

JJ
4  Alternate cryptocurrencies / Pools (Altcoins) / Re: [ANN][AUTO-SWITCH] Profit-switch auto-exchange pool: CleverMining.com on: March 13, 2014, 11:02:30 AM
btw the pool work fine, only the site is down!

Do you know that? I have not seen any statement from Terk so far.

JJ
5  Alternate cryptocurrencies / Pools (Altcoins) / Re: [ANN][AUTO-SWITCH] Profit-switch auto-exchange pool: CleverMining.com on: March 10, 2014, 05:16:27 PM
Guys,

I have around ~2% rejects here (by CM indications)
CGRemote shows significantly bigger value, ~20%

Is it ok?

I wouldn't worry. You are getting paid by what the pool receives, not by what CGremote thinks.
I have significantly lowered my reject rate by lowering the intensity a little, so I'm now below average. However, there are still huge spikes occasionally. Probably insanely fast coins. But that is only for a very short time.

JJ
6  Alternate cryptocurrencies / Pools (Altcoins) / Re: [ANN][AUTO-SWITCH] Profit-switch auto-exchange pool: CleverMining.com on: March 10, 2014, 09:59:25 AM
Hello Terk,

I'm running with you now for a couple of days and I'm quite happy.
I reduced the intensity from 18 to 17 and halved my rejects.
I would like to suggest, however, that every time dogecoin is below Difficulty 1000 that you give it a try. It then seems to be well over 120% for the entire round.

JJ
7  Alternate cryptocurrencies / Mining (Altcoins) / Re: www.LocalMiners.com DOGECOIN POOL! P2Pool-- NO FEE 0%-- Servers in New York! on: January 17, 2014, 06:41:01 AM
Hello,

now checking into your mine  Smiley

I ran with my laptop for one night with 40 kh/s (yes, ok, not much), and always got

"Stratum from pool 0 requested work restart"

What does it mean?
Oh yes, my address:

DLccyuXVbENd3QBmcXkUAdRbn3oyXssjh6

jj
8  Other / Beginners & Help / hi there on: January 16, 2014, 08:26:05 PM
How are you? I have just started with mining, got almos .6 litecoins already  Smiley

Does anyone have experience with dogecoins?

JB
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!