Post
Topic
Board Announcements (Altcoins)
Re: Gridcoin (GRC) - first coin utilizing BOINC - Official Thread
by
Gridcoin
on 06/03/2014, 23:30:21 UTC
The Gridcoin linux wallet has a fatal error that needs to be resolved before it can be fully implemented on AllCrypt.

AllCrypt uses RPC calls to communicate with the wallets. The function getblock, which takes a hash as a argument, and returns data about the block in question, is completely broken.

On the command line, some blocks return data - but the data seems like it could be wrong.

Other blocks return various errors:
gridcoind getblock 87940ec2e76b5981d1454ea53de8fa3c0fac4b1c683f72971a74ea8f78751046
error: {"code":-1,"message":"Block number out of range."}

However, I got that hash with:
gridcoind getblockhash 74001
87940ec2e76b5981d1454ea53de8fa3c0fac4b1c683f72971a74ea8f78751046

Also:
gridcoind getblock b228595e0676536b5eed64ad079d8046ea7ed5cb27d94a2c24018b60ec945d59
error: Error parsing JSON:b228595e0676536b5eed64ad079d8046ea7ed5cb27d94a2c24018b60ec945d59

It's completely borked.

Also, when issuing the command line for:
gridcoind getblock 3acbe7fae017d900a0957038dce03c48b5d4458cabd79ad809a194fed9bf2154

It returns what APPEARS to be info for block 3?
{
    "hash" : "d39f406fc1e83823f0af3feccecf97439b8c418340fae92cb32de2a0b0d882f7",
    "confirmations" : 75296,
    "size" : 438,
    "height" : 3,
    "version" : 2,
    "merkleroot" : "8e192930415caa67236c9facd54d5cb64080d340dc2d9db7f06901044727cafc",
    "tx" : [
        "8e192930415caa67236c9facd54d5cb64080d340dc2d9db7f06901044727cafc"
    ],
    "time" : 1381979271,
    "nonce" : 73673216,

And when using the RPC call to check that same block, it errors out with: (I had to put spaces in the damn site keeps putting it in a code block)

Request error: A r r a y  = > -1 [message] = > value is type str, expected int
Which is completely wrong because a block hash cannot be an INT.

The linux Gridcoin wallet is completely unusable as it stands on AllCrypt. If this coin is on another exchange - we have NO idea how they are doing it unless maybe their wallets are on windows? (What??)


Dear Allcrypt-


The problem is we have 3 commands for Gridcoin, getblock, getblockbyhash and getblockhash.

Getblockbyhash 178bca9db419ef349b040f92e960a7c05914949d4f7f5e6a7228266069f502cd returns the info your RPC is looking for, but our getblock 1 returns the information you are receiving.


What version of the wallet are you running, windows or Linux?  I may be able to change the commands back to the way they are in bitcoin.


Grid