vampirus
|
|
December 14, 2016, 08:50:32 PM |
|
BUK have another big problem. One PoS block can discard any numbers of PoW blocks. I just lost 74 mined PoW blocks. In new client need change function GetBlockTrust() to something like this: uint256 CBlockIndex::GetBlockTrust() const { CBigNum bnTarget; bnTarget.SetCompact(nBits);
if (bnTarget <= 0) return 0;
/* Old protocol */ if (!fTestNet && GetBlockTime() < CHAINCHECKS_SWITCH_TIME) return (IsProofOfStake()? ((CBigNum(1)<<256) / (bnTarget+1)).getuint256() : 1);
/* New protocol */
// Calculate work amount for block uint256 nPoWTrust = (CBigNum(nPoWBase) / (bnTarget+1)).getuint256();
// Set nPowTrust to 1 if we are checking PoS block or PoW difficulty is too low nPoWTrust = (IsProofOfStake() || nPoWTrust < 1) ? 1 : nPoWTrust;
// Return nPoWTrust for the first 12 blocks if (pprev == NULL || pprev->nHeight < 12) return nPoWTrust;
const CBlockIndex* currentIndex = pprev;
if(IsProofOfStake()) { CBigNum bnNewTrust = (CBigNum(1)<<256) / (bnTarget+1);
// Return 1/3 of score if parent block is not the PoW block if (!pprev->IsProofOfWork()) return (bnNewTrust / 3).getuint256();
int nPoWCount = 0;
// Check last 12 blocks type while (pprev->nHeight - currentIndex->nHeight < 12) { if (currentIndex->IsProofOfWork()) nPoWCount++; currentIndex = currentIndex->pprev; }
// Return 1/3 of score if less than 3 PoW blocks found if (nPoWCount < 3) return (bnNewTrust / 3).getuint256();
return bnNewTrust.getuint256(); } else { CBigNum bnLastBlockTrust = CBigNum(pprev->nChainTrust - pprev->pprev->nChainTrust);
// Return nPoWTrust + 2/3 of previous block score if two parent blocks are not PoS blocks if (!(pprev->IsProofOfStake() && pprev->pprev->IsProofOfStake())) return nPoWTrust + (2 * bnLastBlockTrust / 3).getuint256();
int nPoSCount = 0;
// Check last 12 blocks type while (pprev->nHeight - currentIndex->nHeight < 12) { if (currentIndex->IsProofOfStake()) nPoSCount++; currentIndex = currentIndex->pprev; }
// Return nPoWTrust + 2/3 of previous block score if less than 7 PoS blocks found if (nPoSCount < 7) return nPoWTrust + (2 * bnLastBlockTrust / 3).getuint256();
bnTarget.SetCompact(pprev->nBits);
if (bnTarget <= 0) return 0;
CBigNum bnNewTrust = (CBigNum(1)<<256) / (bnTarget+1);
// Return nPoWTrust + full trust score for previous block nBits return nPoWTrust + bnNewTrust.getuint256(); } }
|
|
|
|
|
|
Whoever mines the block which ends up containing your transaction will get its fee.
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
|
|
synthgauge
|
|
December 14, 2016, 09:15:58 PM |
|
BUK have another big problem. One PoS block can discard any numbers of PoW blocks. I just lost 74 mined PoW blocks. In new client need change function GetBlockTrust() to something like this: uint256 CBlockIndex::GetBlockTrust() const { CBigNum bnTarget; bnTarget.SetCompact(nBits);
if (bnTarget <= 0) return 0;
/* Old protocol */ if (!fTestNet && GetBlockTime() < CHAINCHECKS_SWITCH_TIME) return (IsProofOfStake()? ((CBigNum(1)<<256) / (bnTarget+1)).getuint256() : 1);
/* New protocol */
// Calculate work amount for block uint256 nPoWTrust = (CBigNum(nPoWBase) / (bnTarget+1)).getuint256();
// Set nPowTrust to 1 if we are checking PoS block or PoW difficulty is too low nPoWTrust = (IsProofOfStake() || nPoWTrust < 1) ? 1 : nPoWTrust;
// Return nPoWTrust for the first 12 blocks if (pprev == NULL || pprev->nHeight < 12) return nPoWTrust;
const CBlockIndex* currentIndex = pprev;
if(IsProofOfStake()) { CBigNum bnNewTrust = (CBigNum(1)<<256) / (bnTarget+1);
// Return 1/3 of score if parent block is not the PoW block if (!pprev->IsProofOfWork()) return (bnNewTrust / 3).getuint256();
int nPoWCount = 0;
// Check last 12 blocks type while (pprev->nHeight - currentIndex->nHeight < 12) { if (currentIndex->IsProofOfWork()) nPoWCount++; currentIndex = currentIndex->pprev; }
// Return 1/3 of score if less than 3 PoW blocks found if (nPoWCount < 3) return (bnNewTrust / 3).getuint256();
return bnNewTrust.getuint256(); } else { CBigNum bnLastBlockTrust = CBigNum(pprev->nChainTrust - pprev->pprev->nChainTrust);
// Return nPoWTrust + 2/3 of previous block score if two parent blocks are not PoS blocks if (!(pprev->IsProofOfStake() && pprev->pprev->IsProofOfStake())) return nPoWTrust + (2 * bnLastBlockTrust / 3).getuint256();
int nPoSCount = 0;
// Check last 12 blocks type while (pprev->nHeight - currentIndex->nHeight < 12) { if (currentIndex->IsProofOfStake()) nPoSCount++; currentIndex = currentIndex->pprev; }
// Return nPoWTrust + 2/3 of previous block score if less than 7 PoS blocks found if (nPoSCount < 7) return nPoWTrust + (2 * bnLastBlockTrust / 3).getuint256();
bnTarget.SetCompact(pprev->nBits);
if (bnTarget <= 0) return 0;
CBigNum bnNewTrust = (CBigNum(1)<<256) / (bnTarget+1);
// Return nPoWTrust + full trust score for previous block nBits return nPoWTrust + bnNewTrust.getuint256(); } }
U nailed it. POS is a mythic shit, I prey for the times when there werent POS coins, just plain bitcoin and litecoin awesomeness. Do it via a pull request and get merged, and demand a bounty for ur brilliant effort.
|
|
|
|
CryptoBuck (OP)
|
|
December 14, 2016, 11:02:26 PM |
|
Vampirus, synthgauge
Found the described issue, block 301287 - per POS client on 301287
{ "hash" : "91f46a17463075e3fc40c3104542be217a4311b266a64a5e99b3dc12013ba14c", "confirmations" : 1, "size" : 457, "height" : 301287, "version" : 4, "merkleroot" : "bf166f0c621129c7149eac6ec45dddc090329e2f7d3b2f55548b31f613859edb", "mint" : 0.01930200, "time" : 1481742634, "nonce" : 0, "bits" : "1e009a3b", "difficulty" : 0.00648370, "previousblockhash" : "3da1fe066af5852e8d1f09582484e5995d997e5d8defeae4037fe2c46a20597d", "flags" : "proof-of-stake", "proofhash" : "0000130d6641de3aec3977341324a72197980259642989d229cc33d3a3ffa0a2", "entropybit" : 0, "modifier" : "d76387ce75e522fc", "modifierchecksum" : "abfa172f", "tx" : [ "537f30a1293bb32be17996e1c4ab369fc0c3a18b8cac2dbd92a6c719f3afdbbe", "26972b46c79dbdbfd2a8efe7b9a76c185e4e6d53840ece06a5f5eb6d9307aed0" ], "signature" : "304402202bea00330cefc14303ce633653bde2bd960288a46750d8c9ff93b7b3f803009a02202a4 73ba8e57ed17f2fa7497d52dbd36e2148066869810b14b689130a39011189" }
BLOCK 301287 POW client Block 301287
{ "hash" : "0000000007ebfb78cb706261e72b5920c6ba0b32175345d58bf952c6f64f43e7", "confirmations" : 0, "size" : 335, "height" : 301287, "version" : 4, "merkleroot" : "9f6cc9fc69feee7fa3f20e0e1b27e11c076309c2e2e5eab9cf44180af0af03a2", "mint" : 0.00000000, "time" : 1481662944, "nonce" : 3145593309, "bits" : "1c20d6d5", "difficulty" : 7.79544539, "previousblockhash" : "00000000091857a466d6a5f94df1aa2fc411ce2607a123166310a6adbce8449e", "flags" : "proof-of-work", "proofhash" : "0000000007ebfb78cb706261e72b5920c6ba0b32175345d58bf952c6f64f43e7", "entropybit" : 1, "modifier" : "ab81e5e08b3469e7", "modifierchecksum" : "e3983c5c", "tx" : [ "9f6cc9fc69feee7fa3f20e0e1b27e11c076309c2e2e5eab9cf44180af0af03a2" ], "signature" : "30450220734499b075724a3b9c333a43008a3b9859ce3ded53215d5d212305b7a0283e05022100d 2cca6c49b85fa3020a7c34759cf12cb39233f8cf4f4014451e71355a0d7bf0a" }
Since Large Staking Wallet went offline, we are seeing the long awaited POW blocks being generated, since BUK has a small Buy Demand on NovaExchange, their MultiPool has unlocked the high 27 diff. - Once the POS wallet goes back online I do see the Fault as described. We will be reaching out to you on a side note to reimburse for Lost BUK, and also award a bounty. Great Find.
CryptoBuck
|
*CryptoBuck.com* --- *pool.cryptobuck.com* --- BUK --- Sept. 2 Launch --Crypto Currency not Crypto change
|
|
|
vampirus
|
|
January 11, 2017, 01:35:55 AM |
|
Big update soon. I am new official BUK developer. Soon BUK restart with new chain, and coin swap 1:1. New wallet forked from latest NovaCoin. Algo - Scrypt, PoS+PoW with OrbitCoin block style (50 PoS blocks and 50% PoW) PoS reward 10BUK, no specific years reward, min 3 max 15 days weight stake. I generate all coins for swap in block 1, then send to old addresses from rich list: http://buk.cryptocoinexplorer.com/richI send only to address with balance more 100 BUK If you want swap without problem, take all from exchange, and combine coins less 100 to one address, and better keep coins in unlocked wallet.
|
|
|
|
CryptoBuck (OP)
|
|
January 11, 2017, 07:35:42 PM |
|
Hello All, The CryptoBuck Team would like to congratulate Member "Vampirus" for taking on the roll as Lead Developerfor the upcoming Major release and future releases to follow. He has much experience with the PoS architecture and has provided many fixes and feedback over the years. Thank you for this Vampirus. In addition to the detailed specs sent by Vampirus, I would like to mention that if you are a holder of less than 100 BUK's and would like them ported over into the new version, please send this low balance to the CryptoBuck Fountain Address 3E2cUTWJ8fz9rqtgAMV8QkcUUH593gg4EP and send a message to CryptoBuck@gmail.com with this transaction ID Once we have the New Version in Place and running, we will be able to convert your BUK's. *Please note, we have not finalized on a Date/Block # that the cutover will happen, but please send the <100 BUK's prior to the cutover. More information to follow as we finalize the coding progress. We will ALWAYS stand by and honor the statement. We are Trusted, We are Honest, and We are Valued... Looking forward to a successful 2017. CryptoBuck - as of 2017-01-11 - Current Height = 312814 Current Supply = 2781048.05946
|
*CryptoBuck.com* --- *pool.cryptobuck.com* --- BUK --- Sept. 2 Launch --Crypto Currency not Crypto change
|
|
|
almightyruler
Legendary
Offline
Activity: 2268
Merit: 1092
|
|
January 13, 2017, 01:30:01 AM |
|
Why does this keep getting ignored? vampirus, perhaps you can delete this non source code file. No one else seems to be interested in responding to the above. It's been nearly 10 months since I pointed out (3 times) the problem.
|
|
|
|
vampirus
|
|
January 13, 2017, 01:47:40 AM |
|
Why does this keep getting ignored? vampirus, perhaps you can delete this non source code file. No one else seems to be interested in responding to the above. It's been nearly 10 months since I pointed out (3 times) the problem. Done. But new version will be in new directory: https://github.com/scificrypto/CryptoBuck2
|
|
|
|
vampirus
|
|
January 13, 2017, 08:36:21 PM |
|
Additional BUK2 info: PoW reward: Blocks 2-499 - 1 BUK Blocks 500 - 399999 11 BUK Blocks 400000 - 799999 5.5 BUK Blocks > 800000 2.75 BUK
PoS reward: 10 BUK 5 BUK after 01 Jan 2020
Target time between PoW block: 5 min Target time between PoS block: 5 min Summary time between block: 2.5 min
|
|
|
|
almightyruler
Legendary
Offline
Activity: 2268
Merit: 1092
|
|
January 14, 2017, 12:17:37 AM |
|
Thanks. I was so focussed on being ignored for the past 10 months that I didn't realise you were switching to a new codebase and restarting the blockchain. I enabled staking to use up some coin age before I consolidate my unspent outputs to a single address, but according to my client, I have minted all of the last 70+ blocks? This doesn't seem right. No one else has staked in the past 12 hours? edit: restarted the client and everyone is at the same height I am. Guess things are just quiet for some reason.
|
|
|
|
almightyruler
Legendary
Offline
Activity: 2268
Merit: 1092
|
|
January 14, 2017, 01:29:40 AM |
|
Which exchanges currently feature BUK? The 3 in the OP are all dead.
I know of these:
- novaexchange.com - crypto-trade.net - ..... any others?
Perhaps the OP could be updated?
|
|
|
|
vampirus
|
|
January 15, 2017, 09:20:31 PM |
|
BUK2 almost done. https://github.com/scificrypto/CryptoBuck2You can download, compile and test Stratum server. If you have problem with Stratum server try change halfnode.py: class CBlock(object): def __init__(self): self.nVersion = 6
I upload compiled win32 version tomorrow. This is test version, only for testing!In final version I add premine, checkpoints and send coins to old BUK addresses. Final cutover date for old blockchain 25 Jan 2017
|
|
|
|
almightyruler
Legendary
Offline
Activity: 2268
Merit: 1092
|
|
January 16, 2017, 04:04:53 AM Last edit: January 16, 2017, 04:19:19 AM by almightyruler |
|
Final cutover date for old blockchain 25 Jan 2017
To transfer the coins, are you using the richlist at http://buk.cryptocoinexplorer.com/rich , or the blockchain? A couple of days ago I consolidated all my unspent outputs into a single address, and I've since noticed there are some odd discrepancies showing on the block explorer. 1. This transaction shows an output of 1799.633301 on the explorer, but according to my client it is 1799.633353 (a difference of 0.000052) http://buk.cryptocoinexplorer.com/transaction?transaction=4e2f440d56590c8e44726aae372cced4ad0ea3f093bccd95049d8253821ac520 "vout" : [ { "value" : 1799.63335300, "n" : 0, "scriptPubKey" : { "asm" : "OP_DUP OP_HASH160 9f3ee0ae8b7db3f95a7acb7ec47e350913e0c3c7 OP_EQUALVERIFY OP_CHECKSIG", "hex" : "76a9149f3ee0ae8b7db3f95a7acb7ec47e350913e0c3c788ac", "reqSigs" : 1, "type" : "pubkeyhash", "addresses" : [ "3GD2grv71tvjjv13z7piDVm9UgC8RUPpg4" ] } } ], ... "fee" : -0.14000000, "confirmations" : 789, ... "txid" : "4e2f440d56590c8e44726aae372cced4ad0ea3f093bccd95049d8253821ac520",
2. The rich list doesn't show address 3GD2grv71tvjjv13z7piDVm9UgC8RUPpg4, even though it has 1799.633301 / 1799.633353 BUK (take your pick as to which amount is correct) (edit: the rich list does show the address, but for some reason my browser doesn't see it with a Ctrl-F search. However, there's another different amount, 1799.633423? This was a brand new address used solely for consolidation. How can the block explorer show two different balances, and neither are what my client shows?)
|
|
|
|
vampirus
|
|
January 16, 2017, 04:40:01 AM |
|
To transfer the coins, I will use the richlist. If you have any difference, just say and I send more BUKs. If you want search richlist, save webpage as .mht and then open in text editor.
|
|
|
|
rockmoney
|
|
January 16, 2017, 06:06:33 AM |
|
Which exchanges currently feature BUK? The 3 in the OP are all dead.
I know of these:
- novaexchange.com - crypto-trade.net - ..... any others?
Perhaps the OP could be updated?
Are the 3 exchanges currently listed in the OP all of the places people can purchase BUK? Cryptsy is currently listed in the OP as an active exchange for BUKS, so I have a feeling we never got an updated list (although it looks like we could use one). Also, what is the deadline (if any) for the rich list initial distribution method?
|
|
|
|
almightyruler
Legendary
Offline
Activity: 2268
Merit: 1092
|
|
January 16, 2017, 06:53:42 AM |
|
To transfer the coins, I will use the richlist. If you have any difference, just say and I send more BUKs. If you want search richlist, save webpage as .mht and then open in text editor.
I suspect the discrepancies may be cumulative rounding errors, so transactions with lots of inputs may have the wrong total. But then why do two pages show two different amounts? I would expect the amounts shown on a block explorer should be exact, not just 'close'...
|
|
|
|
vampirus
|
|
January 16, 2017, 09:20:36 PM |
|
Win32 BUK compiled TEST version http://www.scificrypto.info/files/cryptobuck-test-w32.zipFinal cutover date for old blockchain 25 Jan 2017 I send BUK only to first 100 addresses from richlist, then create control point and upload final wallet and blockchain to github. To all other addresses I will send later, when have free time.
|
|
|
|
vampirus
|
|
January 21, 2017, 08:06:56 PM |
|
About converting old coins to new.
You do not need hurry with converting, just start mining to new wallet. You can convert with two method: First: recommended: Open old wallet with old cryptobuck-qt.exe Open console (debug window) and type: listaddressgroupings then for addresses with more then 10 BUK, type in console: dumpprivkey address copy and save private keys in txt file. Start new cryptobuck-qt.exe with fresh wallet, in console type: importprivkey savedprivatkey label for all private keys.
Second, not recommended, because problem with export such wallet to text file. create txt file convert.bat with text: cryptobuck-qt.exe -salvagewallet copy old BUK wallet to new directory cryptobuck2 execute convert.bat
After converting, split coins to 300-1000 BUK chunks for PoS minting.
I send first 100 old balances before start new chain and more 100 BUK later. If someone want 10-100 balance, let me know here.
|
|
|
|
CryptoBuck (OP)
|
|
January 24, 2017, 08:56:49 PM Last edit: January 24, 2017, 09:26:46 PM by CryptoBuck |
|
CRYPTOBUCK MANDITORY UPGRADE FROM BUK1.3.1 TO BUK2.1.0Snapshot date for holders of 100 or more BUK = 1.25.2017 - 13:00 EST (18:00 UTC) Prior to Snapshot - if you hold less than 100 BUK you can either send to our fountain address 3E2cUTWJ8fz9rqtgAMV8QkcUUH593gg4EP and send an email to CryptoBuck@gmail with transaction ID and we will send to your new BUK2 address. or, you can combine addresses to make it >100 prior to snapshot. If by chance you miss the snapshot date and hold less than 100, please email CryptoBuck@gmail.com - we will work with you. The CryptoBuck2 chain start date of 2/1/2017 13:00 EST (18:00 UTC) - Github updated shortly before. You can compile LIVE BUK2 code from either the official GitHub, or from the Lead Dev GitHub, Mirrored code. https://github.com/CryptoBuck/CryptoBuckhttps://github.com/scificrypto/CryptoBuck2 (Currently has the TEST Chain) CryptoBuck is currently being Traded on 2 Exchanges: https://novaexchange.com/market/BTC_BUK/ (currently disabled for the update) https://crypto-trade.net/exchange?base=BUK&counter=BTCThese Exchanges have been contacted by the official email CryptoBuck@gmail.com in regards to snapshot and rollout dates. Once the code base for BUK2 is up and running we will be reaching out to other 3rd party outlets. Thank you for your continued support. And looking forward to the long awaited CryptoBuck Update CryptoBuck - Keep on Hashing!!!
|
*CryptoBuck.com* --- *pool.cryptobuck.com* --- BUK --- Sept. 2 Launch --Crypto Currency not Crypto change
|
|
|
CryptoBuck (OP)
|
|
January 25, 2017, 06:15:31 PM |
|
CryptoBuck 1.3.1 Balances SnapShot has taken place at exactly 100PM ESTBLOCK 317343 is officially the END OF LIFE Block for CryptoBuck Version 1.3.1CryptoBuck2.1.0 will Officially Launch on 2017-02-01 13:00EST - GitHub Source Uploaded shortly before.Please join us in this official milestone, and get your hands on some newly minted BUK's. Scrypt - PoS and PoW Hybrid Chain.Remember CryptoBuck has a production limit of 10 Million (10,000,000) - Extremely rareThanks again everyone. Hashing Away Always, CryptoBuck
|
*CryptoBuck.com* --- *pool.cryptobuck.com* --- BUK --- Sept. 2 Launch --Crypto Currency not Crypto change
|
|
|
|
|