Pages:
Author

Topic: -- Miner's Official Coin LAUNCH - NUGGETS (NUGS) -- - page 67. (Read 121560 times)

legendary
Activity: 2940
Merit: 1090
Think a long is 32 bits on the windows 32 builds that most use.  I too was wondering why only 7 digits got used.
No idea as of yet. Maybe to avoid sign issues?

Hmm if it didn't want negative seed values it would use unsigned long instead of long as seed, wouldn't it?

Then we could just use the bytes directly instead of doing a math operation to convert hex to base ten, since we don't care about the hex value nor even the base ten value we just want a certain number of pseudorandom bits to fill our seed.

-MarkM-
sr. member
Activity: 252
Merit: 250
Still the Best 1973
wow, these coins help you walk on water, and can give you insight into GOD!

These may be too powerful for me.  I may have to sell.

NO!!! Saith the LORD!! visions from GOD have REVEALED that the PURE NUGGETS will ^^^increase^^^ in value!!!! DO NOT lose these HOLY COINS.
They are VLAD'S golden block
Don't forget the second lord

Thank you!! For it is VLAD'S GOLDEN BLOCKS that shall DELIVER you from the EVILS of the OTHER coin DEVS.
hero member
Activity: 683
Merit: 500
wow, these coins help you walk on water, and can give you insight into GOD!

These may be too powerful for me.  I may have to sell.
legendary
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
wow, these coins help you walk on water, and can give you insight into GOD!

These may be too powerful for me.  I may have to sell.

NO!!! Saith the LORD!! visions from GOD have REVEALED that the PURE NUGGETS will ^^^increase^^^ in value!!!! DO NOT lose these HOLY COINS.
They are VLAD'S golden block
Don't forget the second lord
sr. member
Activity: 574
Merit: 250
So seven hex digits is the largest we can fit into a long? Is that why only 7 digits are used?

I am not even sure offhand whether by long we mean 32 bits or 64 bits or heck maybe even 128 bits.

(Well probably not 32 nowadays, nowadays int tends to be at least 32.)

-MarkM-



Think a long is 32 bits on the windows 32 builds that most use.  I too was wondering why only 7 digits got used.
No idea as of yet. Maybe to avoid sign issues?

sr. member
Activity: 252
Merit: 250
Still the Best 1973
wow, these coins help you walk on water, and can give you insight into GOD!

These may be too powerful for me.  I may have to sell.

NO!!! Saith the LORD!! visions from GOD have REVEALED that the PURE NUGGETS will ^^^increase^^^ in value!!!! DO NOT lose these HOLY COINS.
legendary
Activity: 2940
Merit: 1090
Yeah you have to be a certain level of character to wield such items.

Though maybe clerics (and paladins?) need less levels to do it than other character classes.

-MarkM-
member
Activity: 98
Merit: 10
wow, these coins help you walk on water, and can give you insight into GOD!

These may be too powerful for me.  I may have to sell.
legendary
Activity: 2940
Merit: 1090
So seven hex digits is the largest we can fit into a long? Is that why only 7 digits are used?

I am not even sure offhand whether by long we mean 32 bits or 64 bits or heck maybe even 128 bits.

(Well probably not 32 nowadays, nowadays int tends to be at least 32.)

-MarkM-
sr. member
Activity: 252
Merit: 250
Still the Best 1973
Vlad has CALCULATED GOD'S special RATIOS and put them into the GOLDEN BLOCKS.

How could such a FEATURE not be UNIQUE??
sr. member
Activity: 574
Merit: 250

According to Vlad there is something very special with these coins, something with Godstuff.

My guess is you'll become the new Jesus, could you maybe go outside and see if you start to develop some ability to walk on water?

I get that ability in the winter sometimes.
hero member
Activity: 683
Merit: 500
PURCHASING CLOSED!  SORRY!


I reached my budget for the buying of private keys from the bounty payout.   Sorry to anyone who was asleep during the buying Smiley

Closing out the rest of the deals now, and looks like I will soon control private keys with about 1,000,000 NUGs on them, maybe bit more, maybe a bit less.

p.s. yea, yea, technically these are "shared private keys" until transferred to a new address Wink

So close, but less then a million.  End result: I now control 973,999.50 NUG

All private keys were collected, imported, and then sent to new address:  NbndgiaYC4V8KKukb48Vud4SSq1YDSa3ER

transaction ID: 2afa2ce8a1f28c8d56a92e1184a9dc9291b846f488aa9bb2d3864499bfb25ce9

confirm:  http://198.199.121.22:81/index.php?tx=2afa2ce8a1f28c8d56a92e1184a9dc9291b846f488aa9bb2d3864499bfb25ce9

Using the very very old original client.

Now what the F do I do with these??!?!?!
According to Vlad there is something very special with these coins, something with Godstuff.

My guess is you'll become the new Jesus, could you maybe go outside and see if you start to develop some ability to walk on water?
sr. member
Activity: 574
Merit: 250
So I have this so far:

Code:
int64 static GetBlockValue(int nHeight, int64 nFees, uint256 prevHash)
{
        int64 nSubsidy = 0 * COIN;

        std::string cseed_str = prevHash.ToString().substr(8,7);
        const char* cseed = cseed_str.c_str();
        long seed = hex2long(cseed);

        int rand = generateMTRandom(seed, 1000000);

        if(nHeight == 1)
                nSubsidy = 1100000 * COIN; //.5% Public Wallet Premine

        else if(nHeight == 2)
                nSubsidy = 1100000 * COIN; //.5% Coin Owner Premine

        else if(nHeight > 250 && nHeight <= 14726880){
                nSubsidy = 49 * COIN;   //Standard 49 Coin Reward
                if(nHeight > 5000 && rand < 9723)   
                                nSubsidy = 10045 * COIN;  //The super block Protocol Random 250x Block Award
        }
    return nSubsidy + nFees;
}

What about the substring problem though?

With so many coins using superblocks, haven't any of them figured out a fix for that part?

Or have they actually discovered it is not actually a problem really due to some (valid) reason why it is not?

-MarkM-


Well it is only a problem if the difficulty ever gets up high enough.  Doubt any alt chain , and especially one using superblocks is getting near the point it becomes an issue.  We could just move the start position over a bit.  Bitcoin is at what 15 zeros? So have it start at 20 or so? Or take the last seven characters.

legendary
Activity: 2940
Merit: 1090
So I have this so far:

Code:
int64 static GetBlockValue(int nHeight, int64 nFees, uint256 prevHash)
{
        int64 nSubsidy = 0 * COIN;

        std::string cseed_str = prevHash.ToString().substr(8,7);
        const char* cseed = cseed_str.c_str();
        long seed = hex2long(cseed);

        int rand = generateMTRandom(seed, 1000000);

        if(nHeight == 1)
                nSubsidy = 1100000 * COIN; //.5% Public Wallet Premine

        else if(nHeight == 2)
                nSubsidy = 1100000 * COIN; //.5% Coin Owner Premine

        else if(nHeight > 250 && nHeight <= 14726880){
                nSubsidy = 49 * COIN;   //Standard 49 Coin Reward
                if(nHeight > 5000 && rand < 9723)  
                                nSubsidy = 10045 * COIN;  //The super block Protocol Random 250x Block Award
        }
    return nSubsidy + nFees;
}

What about the substring problem though?

With so many coins using superblocks, haven't any of them figured out a fix for that part?

Or have they actually discovered it is not actually a problem really due to some (valid) reason why it is not?

-MarkM-
newbie
Activity: 52
Merit: 0
so guess it is from 1, but we can change it.

I just needed to know in order to know whether my if needs the >0 clause or can assume the roll will result in at least 1 rather tghan at least 0.

Its my if that needs changing. (The >1 part is redundant.)

-MarkM-


Right now it is set to be from 1 I think. Seems that is what you want also.
legendary
Activity: 2940
Merit: 1090
so guess it is from 1, but we can change it.

I just needed to know in order to know whether my if needs the >0 clause or can assume the roll will result in at least 1 rather tghan at least 0.

Its my if that needs changing. (The >1 part is redundant.)

-MarkM-
sr. member
Activity: 574
Merit: 250
So programmers X and Y were both incompetent? Or is it all on programmer Y ?

Or the substring part is on the luckycoins author, maybe, from whom maybe all other superblocks coins cloned or pasted?

-MarkM-


Looks like it is from Luckycoin

https://github.com/LuckyCoinProject/Luckycoin/commit/4895d3ad143ca934480111b8a5ccef663136cc71#src/main.cpp
member
Activity: 98
Merit: 10
PURCHASING CLOSED!  SORRY!


I reached my budget for the buying of private keys from the bounty payout.   Sorry to anyone who was asleep during the buying Smiley

Closing out the rest of the deals now, and looks like I will soon control private keys with about 1,000,000 NUGs on them, maybe bit more, maybe a bit less.

p.s. yea, yea, technically these are "shared private keys" until transferred to a new address Wink

So close, but less then a million.  End result: I now control 973,999.50 NUG

All private keys were collected, imported, and then sent to new address:  NbndgiaYC4V8KKukb48Vud4SSq1YDSa3ER

transaction ID: 2afa2ce8a1f28c8d56a92e1184a9dc9291b846f488aa9bb2d3864499bfb25ce9

confirm:  http://198.199.121.22:81/index.php?tx=2afa2ce8a1f28c8d56a92e1184a9dc9291b846f488aa9bb2d3864499bfb25ce9

Using the very very old original client.

Now what the F do I do with these??!?!?!
legendary
Activity: 2940
Merit: 1090
So programmers X and Y were both incompetent? Or is it all on programmer Y ?

Or the substring part is on the luckycoins author, maybe, from whom maybe all other superblocks coins cloned or pasted?

-MarkM-
sr. member
Activity: 574
Merit: 250

I didn't check whether its the usual integer random number, zero to one less than number given, or some weird custom job the luckyblocks coder came up with; if we know it runs from zero through one less than number of sides we can leave out the "rand < 0 &&" clause.

-MarkM-


It is written using the boost library.




Code:
int static generateMTRandom(unsigned int s, int range)
{
random::mt19937 gen(s);
    random::uniform_int_distribution<> dist(1, range);
    return dist(gen);
}

so guess it is from 1, but we can change it.


Think we need to change the substring for the seed based on doublec's concern a few posts up?
Pages:
Jump to: