MultiversX Tracker is Live!

Users reviews on early Satoshi's code

Bitcoin Reddit

More / Bitcoin Reddit 235 Views

Hello r/bitcoin, I was digging through some old code of bitcoin like version 0.1.0 and 0.1.5 and I found this piece of code here:

bool CBlock::AcceptBlock() { // Check for duplicate uint256 hash = GetHash(); if (mapBlockIndex.count(hash)) return error("AcceptBlock() : block already in mapBlockIndex"); // Get prev block index map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(hashPrevBlock); if (mi == mapBlockIndex.end()) return error("AcceptBlock() : prev block not found"); CBlockIndex* pindexPrev = (*mi).second; // Check timestamp against prev if (nTime <= pindexPrev->GetMedianTimePast()) return error("AcceptBlock() : block's timestamp is too early"); // Check proof of work if (nBits != GetNextWorkRequired(pindexPrev)) return error("AcceptBlock() : incorrect proof of work"); // Write block to history file if (!CheckDiskSpace(::GetSerializeSize(*this, SER_DISK))) return error("AcceptBlock() : out of disk space"); unsigned int nFile; unsigned int nBlockPos; if (!WriteToDisk(!fClient, nFile, nBlockPos)) return error("AcceptBlock() : WriteToDisk failed"); if (!AddToBlockIndex(nFile, nBlockPos)) return error("AcceptBlock() : AddToBlockIndex failed"); if (hashBestChain == hash) RelayInventory(CInv(MSG_BLOCK, hash)); // // Add atoms to user reviews for coins created // vector<unsigned char> vchPubKey; // if (ExtractPubKey(vtx[0].vout[0].scriptPubKey, false, vchPubKey)) // { // unsigned short nAtom = GetRand(USHRT_MAX - 100) + 100; // vector<unsigned short> vAtoms(1, nAtom); // AddAtomsAndPropagate(Hash(vchPubKey.begin(), vchPubKey.end()), vAtoms, true); // } return true; } 

the function itself does everything you should expect from it but I think the interesting part is the commented block, I can't really understand what Satoshi wanted to do there. I did some research and I found a thread on bitcointalk where a user says that he has part of the pre release of bitcoin (here), it may actually be true because Satoshi himself said on some emails in the metzdowd mailing list that he was sending the code on request, anyway in that code that part is not commented and another user, a little bit later in the thread, says: "User reviews is because he originally intended Bitcoin to have an integrated P2P eBay style market". Does anyone have more info on this?

link to 0.1.0 (idk if it's trusted maybe don't run the exe, original link on sourceforge points to github where ther earliest version is 0.1.5, the source for this file is bitcointalk where a user says that Hal sent the code to him and the signature is correct)

link to 0.1.5 on github

submitted by /u/GGMorello
[link] [comments]
Get BONUS $200 for FREE!

You can get bonuses upto $100 FREE BONUS when you:
πŸ’° Install these recommended apps:
πŸ’² SocialGood - 100% Crypto Back on Everyday Shopping
πŸ’² xPortal - The DeFi For The Next Billion
πŸ’² CryptoTab Browser - Lightweight, fast, and ready to mine!
πŸ’° Register on these recommended exchanges:
🟑 Binance🟑 Bitfinex🟑 Bitmart🟑 Bittrex🟑 Bitget
🟑 CoinEx🟑 Crypto.com🟑 Gate.io🟑 Huobi🟑 Kucoin.



Comments