twobits
|
|
July 21, 2013, 01:47:28 PM |
|
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
|
█████ █████ ███████ █████ ███ █████████████ █████ ██ █████████████████ █████ █ ██████ ██████ █████ ████ ████ █████████████ █████ ████ █████████████ █████ ████ █████████████ █████ ████ █████ █████ █████ █ ██████ ███████ █████ ██ ███████████ █████ █████ ███ █████████ ████ █████ █████ ███████ ██ | | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | | | | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | ►WhitePaper ►One-Pager | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | █████ █████ ███████ █████ ███ █████████████ █████ ██ █████████████████ █████ █ ██████ ██████ █████ ████ ████ █████████████ █████ ████ █████████████ █████ ████ █████████████ █████ ████ █████ █████ █████ █ ██████ ███████ █████ ██ ███████████ █████ █████ ███ █████████ ████ █████ █████ ███████ ██ |
|
|
|
|
markm
Legendary
Offline
Activity: 2940
Merit: 1090
|
|
July 21, 2013, 02:00:09 PM |
|
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-
|
|
|
|
21stcenturymoney
Newbie
Offline
Activity: 52
Merit: 0
|
|
July 21, 2013, 02:04:24 PM |
|
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.
|
|
|
|
markm
Legendary
Offline
Activity: 2940
Merit: 1090
|
|
July 21, 2013, 02:06:06 PM |
|
So I have this so far: 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-
|
|
|
|
twobits
|
|
July 21, 2013, 02:15:24 PM |
|
So I have this so far: 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.
|
█████ █████ ███████ █████ ███ █████████████ █████ ██ █████████████████ █████ █ ██████ ██████ █████ ████ ████ █████████████ █████ ████ █████████████ █████ ████ █████████████ █████ ████ █████ █████ █████ █ ██████ ███████ █████ ██ ███████████ █████ █████ ███ █████████ ████ █████ █████ ███████ ██ | | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | | | | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | ►WhitePaper ►One-Pager | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | █████ █████ ███████ █████ ███ █████████████ █████ ██ █████████████████ █████ █ ██████ ██████ █████ ████ ████ █████████████ █████ ████ █████████████ █████ ████ █████████████ █████ ████ █████ █████ █████ █ ██████ ███████ █████ ██ ███████████ █████ █████ ███ █████████ ████ █████ █████ ███████ ██ |
|
|
|
|
skull88
|
|
July 21, 2013, 02:21:11 PM |
|
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 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 So close, but less then a million. End result: I now control 973,999.50 NUGAll 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=2afa2ce8a1f28c8d56a92e1184a9dc9291b846f488aa9bb2d3864499bfb25ce9Using 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?
|
BTC: 1MifMqtqqwMMAbb6zr8u6qEzWqq3CQeGUr LTC: LhvMYEngkKS2B8FAcbnzHb2dvW8n9eHkdp
|
|
|
twobits
|
|
July 21, 2013, 02:23:17 PM |
|
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.
|
█████ █████ ███████ █████ ███ █████████████ █████ ██ █████████████████ █████ █ ██████ ██████ █████ ████ ████ █████████████ █████ ████ █████████████ █████ ████ █████████████ █████ ████ █████ █████ █████ █ ██████ ███████ █████ ██ ███████████ █████ █████ ███ █████████ ████ █████ █████ ███████ ██ | | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | | | | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | ►WhitePaper ►One-Pager | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | █████ █████ ███████ █████ ███ █████████████ █████ ██ █████████████████ █████ █ ██████ ██████ █████ ████ ████ █████████████ █████ ████ █████████████ █████ ████ █████████████ █████ ████ █████ █████ █████ █ ██████ ███████ █████ ██ ███████████ █████ █████ ███ █████████ ████ █████ █████ ███████ ██ |
|
|
|
|
PerfectAgent
Sr. Member
Offline
Activity: 252
Merit: 250
Still the Best 1973
|
|
July 21, 2013, 02:27:31 PM |
|
Vlad has CALCULATED GOD'S special RATIOS and put them into the GOLDEN BLOCKS.
How could such a FEATURE not be UNIQUE??
|
|
|
|
markm
Legendary
Offline
Activity: 2940
Merit: 1090
|
|
July 21, 2013, 02:28:08 PM |
|
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-
|
|
|
|
hotcoldcoin
Member
Offline
Activity: 98
Merit: 10
|
|
July 21, 2013, 02:29:20 PM |
|
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.
|
|
|
|
markm
Legendary
Offline
Activity: 2940
Merit: 1090
|
|
July 21, 2013, 02:30:27 PM |
|
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-
|
|
|
|
PerfectAgent
Sr. Member
Offline
Activity: 252
Merit: 250
Still the Best 1973
|
|
July 21, 2013, 02:34:48 PM |
|
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.
|
|
|
|
twobits
|
|
July 21, 2013, 02:35:26 PM |
|
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?
|
█████ █████ ███████ █████ ███ █████████████ █████ ██ █████████████████ █████ █ ██████ ██████ █████ ████ ████ █████████████ █████ ████ █████████████ █████ ████ █████████████ █████ ████ █████ █████ █████ █ ██████ ███████ █████ ██ ███████████ █████ █████ ███ █████████ ████ █████ █████ ███████ ██ | | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | | | | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | ►WhitePaper ►One-Pager | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | █████ █████ ███████ █████ ███ █████████████ █████ ██ █████████████████ █████ █ ██████ ██████ █████ ████ ████ █████████████ █████ ████ █████████████ █████ ████ █████████████ █████ ████ █████ █████ █████ █ ██████ ███████ █████ ██ ███████████ █████ █████ ███ █████████ ████ █████ █████ ███████ ██ |
|
|
|
|
jackjack
Legendary
Offline
Activity: 1176
Merit: 1255
May Bitcoin be touched by his Noodly Appendage
|
|
July 21, 2013, 02:36:48 PM |
|
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
|
Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2 Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
|
|
|
skull88
|
|
July 21, 2013, 02:39:26 PM |
|
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.
|
BTC: 1MifMqtqqwMMAbb6zr8u6qEzWqq3CQeGUr LTC: LhvMYEngkKS2B8FAcbnzHb2dvW8n9eHkdp
|
|
|
PerfectAgent
Sr. Member
Offline
Activity: 252
Merit: 250
Still the Best 1973
|
|
July 21, 2013, 02:40:39 PM |
|
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.
|
|
|
|
markm
Legendary
Offline
Activity: 2940
Merit: 1090
|
|
July 21, 2013, 02:46:00 PM |
|
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-
|
|
|
|
twobits
|
|
July 21, 2013, 02:48:34 PM |
|
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 int instead of int 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 bits of pseudorandom bits to fill our seed. -MarkM- Don't know on the signed/unsigned. Was just the only thing I could think of as to why 7 digits. And yes, the conversion from bytes to hex, and then to a substring and then back to bytes is all fluff I think.
|
█████ █████ ███████ █████ ███ █████████████ █████ ██ █████████████████ █████ █ ██████ ██████ █████ ████ ████ █████████████ █████ ████ █████████████ █████ ████ █████████████ █████ ████ █████ █████ █████ █ ██████ ███████ █████ ██ ███████████ █████ █████ ███ █████████ ████ █████ █████ ███████ ██ | | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | | | | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | ►WhitePaper ►One-Pager | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | | ███ ███ ███ ███ ███ ███ ███ ███ ███ | █████ █████ ███████ █████ ███ █████████████ █████ ██ █████████████████ █████ █ ██████ ██████ █████ ████ ████ █████████████ █████ ████ █████████████ █████ ████ █████████████ █████ ████ █████ █████ █████ █ ██████ ███████ █████ ██ ███████████ █████ █████ ███ █████████ ████ █████ █████ ███████ ██ |
|
|
|
|
AgentME
Member
Offline
Activity: 84
Merit: 10
|
|
July 21, 2013, 02:49:05 PM |
|
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-
On Windows, long is usually 32-bit. On Linux, it will match the CPU's bit width. There isn't much of a use for "long" over more specific types unless you only want 64-bit values on some systems for whatever reason.
|
|
|
|
AgentME
Member
Offline
Activity: 84
Merit: 10
|
|
July 21, 2013, 02:51:39 PM |
|
"I've never the things I do anywhere" ya me too and how do you possess the ability to give out a 100,000 ?? did someone go and premine for millions of coins LOL The first two posts in this thread talk about the premine! Can no one read? I apologize if your post was rhetorical (and deserved!) criticism of the premine.
|
|
|
|
|