Search content
Sort by

Showing 5 of 5 results by three_sixteen
Post
Topic
Board Pools
Re: [1.3 TH] DeepBit.net PPS+Prop,instant payouts, we pay for INVALID BLOCKS too
by
three_sixteen
on 04/01/2014, 16:53:48 UTC
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
Post
Topic
Board Pools
Re: [~1000 Gh/s Mining Pool] HTTPS/SSL, instant payouts,LP,+1% for NO INVALID BLOCKS
by
three_sixteen
on 21/05/2011, 18:42:26 UTC
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
Post
Topic
Board Pools
Re: [~1000 Gh/s Mining Pool] HTTPS/SSL, instant payouts,LP,+1% for NO INVALID BLOCKS
by
three_sixteen
on 21/05/2011, 09:39:32 UTC
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
Post
Topic
Board Pools
Re: [~1000 Gh/s Mining Pool] HTTPS/SSL, instant payouts,LP,+1% for NO INVALID BLOCKS
by
three_sixteen
on 21/05/2011, 02:56:30 UTC
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.
Post
Topic
Board Pools
Re: [~1000 Gh/s Mining Pool] HTTPS/SSL, instant payouts,LP,+1% for NO INVALID BLOCKS
by
three_sixteen
on 20/05/2011, 23:29:02 UTC
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
        }
    ]
}