Post
Topic
Board Announcements (Altcoins)
Re: [ANN][BXBC] BoxbaseCoin SHA256 - POW/POS - Boxbase Launch
by
ocminer
on 04/04/2016, 23:05:30 UTC
Check block #2

Ah I just started with the checks, the premine is obviously wrong:

    "version" : "v1.0.0.0-g32a928e",
    "protocolversion" : 60015,
    "walletversion" : 60000,
    "stake" : 0.00000000,
    "blocks" : 51,
    "timeoffset" : 0,
   "moneysupply" : 9004825.00000000,

9 Mills because of:

https://github.com/BoxBaseCoin/BoxbaseCoin/blob/master/src/main.cpp#L988

That should read

if(pindexBest->nHeight+1 <= 1)

if you only want ONE block with that value. pindesBest refers to the LAST block, not the current

Verify:
Code:
./BoxbaseCoind getblockhash 2
00000000d7350d92fa079b398c90744a9ea16d57284adeb6661e74d9025ece55
./BoxbaseCoind getblock 00000000d7350d92fa079b398c90744a9ea16d57284adeb6661e74d9025ece55
{
    "hash" : "00000000d7350d92fa079b398c90744a9ea16d57284adeb6661e74d9025ece55",
    "confirmations" : 51,
    "size" : 174,
    "height" : 2,
    "version" : 1,
    "merkleroot" : "b022f71a95bb268339c7be1c42442b2eb1f23bb10eefa28586e352f8cf05fe4c",
[b]    "mint" : 4500000.00000000,[/b]
    "time" : 1459810119,
    "nonce" : 424395538,
    "bits" : "1e00ffff",
    "difficulty" : 0.00390625,
    "blocktrust" : "1000100",
    "chaintrust" : "3000300",
    "previousblockhash" : "000000782a95310607e8374337f807b5531c4010160924568f37f7a02e49f260",
    "nextblockhash" : "0000000e695bae8f50c188070a4bd37de86f6f8dc563d9a5d16bfb2240b8e6b2",
    "flags" : "proof-of-work stake-modifier",
    "proofhash" : "00000000d7350d92fa079b398c90744a9ea16d57284adeb6661e74d9025ece55",
    "entropybit" : 1,
    "modifier" : "0000000000000000",
    "modifierchecksum" : "38d937d2",
    "tx" : [
        "b022f71a95bb268339c7be1c42442b2eb1f23bb10eefa28586e352f8cf05fe4c"
    ]
}
./BoxbaseCoind getblockhash 1
000000782a95310607e8374337f807b5531c4010160924568f37f7a02e49f260
 ./BoxbaseCoind getblock 000000782a95310607e8374337f807b5531c4010160924568f37f7a02e49f260
{
    "hash" : "000000782a95310607e8374337f807b5531c4010160924568f37f7a02e49f260",
    "confirmations" : 52,
    "size" : 174,
    "height" : 1,
    "version" : 1,
    "merkleroot" : "be1394721dc579d38df42927530cf6ffb605aab4275d4bb21b0bdb922f26a3f9",
   [b] "mint" : 4500000.00000000,[/b]
    "time" : 1459676119,
    "nonce" : 792659456,
    "bits" : "1e00ffff",
    "difficulty" : 0.00390625,
    "blocktrust" : "1000100",
    "chaintrust" : "2000200",
    "previousblockhash" : "000000d047023945779c5f3ec861bd7ef4ecda1715eaf417a4e82592ce0f7ac7",
    "nextblockhash" : "00000000d7350d92fa079b398c90744a9ea16d57284adeb6661e74d9025ece55",
    "flags" : "proof-of-work",
    "proofhash" : "000000782a95310607e8374337f807b5531c4010160924568f37f7a02e49f260",
    "entropybit" : 0,
    "modifier" : "0000000000000000",
    "modifierchecksum" : "5189c78a",
    "tx" : [
        "be1394721dc579d38df42927530cf6ffb605aab4275d4bb21b0bdb922f26a3f9"
    ]
}