Bitcoin Forum
June 25, 2024, 12:55:25 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Pools / Re: [1.3 TH] DeepBit.net PPS+Prop,instant payouts, we pay for INVALID BLOCKS too on: January 04, 2014, 04:53:48 PM
I've been trying to get a payment out of deepbit for about a week now on and off and haven't had any luck.  I figure since it sounds like other people are having trouble getting payments out that I would report my issue as well Sad
2  Bitcoin / Pools / Re: [~1000 Gh/s Mining Pool] HTTPS/SSL, instant payouts,LP,+1% for NO INVALID BLOCKS on: May 21, 2011, 06:42:26 PM
A JSONArray is an ordered sequence of values. Its external text form is a string wrapped in square brackets with commas separating the values.  Smiley
Doesn't your DataContractJsonSerializer supports key-value arrays ?

It can't turn the workers into an array because the array isn't constructed with square brackets, it's dumb - but that's the problem I'm facing hehe
3  Bitcoin / Pools / Re: [~1000 Gh/s Mining Pool] HTTPS/SSL, instant payouts,LP,+1% for NO INVALID BLOCKS on: May 21, 2011, 09:39:32 AM
Can you please adjust the API to output JSON in an easier to use format?
Some people already asked me for that, but I can't just change it because that would break all the existing software.
May be it can be done as optional mode by additional key. (And I wanted to do JSONP too).

The existing JSON format is perfectly readable and valid. Do you need help with parsing it ? What programming language do you use ?

I'm using .NET and the current message format seems to be preventing me from using a DataContractJsonSerializer on the worker objects.  I'd like to avoid using the json serializer on codeplex and just do it natively.

It's not a big deal, really. No worries.

JSON parsing looks to be so simple that you are probably better off writing your own anyway since it should fit into your app exactly the way you intend and will be as lightweight as possible where caned code is possibly over engineered or over featured for what you want.   There is good code on Codeplex, but clearly you are suffering from a limitation now anyway :$

BTW, is there an official JSON spec?

Yes: http://www.json.org/javadoc/org/json/JSONArray.html
http://www.ietf.org/rfc/rfc4627.txt

A JSONArray is an ordered sequence of values. Its external text form is a string wrapped in square brackets with commas separating the values.  Smiley
4  Bitcoin / Pools / Re: [~1000 Gh/s Mining Pool] HTTPS/SSL, instant payouts,LP,+1% for NO INVALID BLOCKS on: May 21, 2011, 02:56:30 AM
Can you please adjust the API to output JSON in an easier to use format?
Some people already asked me for that, but I can't just change it because that would break all the existing software.
May be it can be done as optional mode by additional key. (And I wanted to do JSONP too).

The existing JSON format is perfectly readable and valid. Do you need help with parsing it ? What programming language do you use ?

I'm using .NET and the current message format seems to be preventing me from using a DataContractJsonSerializer on the worker objects.  I'd like to avoid using the json serializer on codeplex and just do it natively.

It's not a big deal, really. No worries.
5  Bitcoin / Pools / Re: [~1000 Gh/s Mining Pool] HTTPS/SSL, instant payouts,LP,+1% for NO INVALID BLOCKS on: May 20, 2011, 11:29:02 PM
Can you please adjust the API to output JSON in an easier to use format?

current:
Code:
{
    "confirmed_reward":0.00486235,
    "hashrate":17.13793103,
    "ipa":false,
    "workers":{
        "workername1":{
            "alive":true,
            "shares":8,
            "stales":0
        },
        "workername2":{
            "alive":true,
            "shares":11,
            "stales":0
        },
        "workername3":{
            "alive":true,
            "shares":4,
            "stales":0
        }
    }
}

Proposed change:
Code:
{
    "confirmed_reward":0.00486235,
    "hashrate":17.13793103,
    "ipa":false,
    "workers":[{
            "name":"worker1",
            "alive":true,
            "shares":8,
            "stales":0
        },
        {
            "name":"worker2",
            "alive":true,
            "shares":11,
            "stales":0
        },
        {
            "name":"worker3",
            "alive":true,
            "shares":4,
            "stales":0
        }
    ]
}
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!