Skip to content

Commit

Permalink
Initial full fork and PoW changes
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshisbitcoin committed Mar 10, 2016
1 parent e3e033f commit e9af835
Show file tree
Hide file tree
Showing 26 changed files with 1,276 additions and 75 deletions.
2 changes: 1 addition & 1 deletion src/bitcoin-cli-res.rc
Expand Up @@ -17,7 +17,7 @@ BEGIN
BLOCK "040904E4" // U.S. English - multilingual (hex)
BEGIN
VALUE "CompanyName", "Bitcoin"
VALUE "FileDescription", "bitcoin-cli (JSON-RPC client for Bitcoin Classic)"
VALUE "FileDescription", "bitcoin-cli (JSON-RPC client for Satoshi's Bitcoin)"
VALUE "FileVersion", VER_FILEVERSION_STR
VALUE "InternalName", "bitcoin-cli"
VALUE "LegalCopyright", COPYRIGHT_STR
Expand Down
4 changes: 2 additions & 2 deletions src/bitcoin-cli.cpp
Expand Up @@ -63,10 +63,10 @@ static bool AppInitRPC(int argc, char* argv[])
//
ParseParameters(argc, argv);
if (argc<2 || mapArgs.count("-?") || mapArgs.count("-h") || mapArgs.count("-help") || mapArgs.count("-version")) {
std::string strUsage = _("Bitcoin Classic RPC client version") + " " + FormatFullVersion() + "\n";
std::string strUsage = _("Satoshi's Bitcoin RPC client version") + " " + FormatFullVersion() + "\n";
if (!mapArgs.count("-version")) {
strUsage += "\n" + _("Usage:") + "\n" +
" bitcoin-cli [options] <command> [params] " + _("Send command to Bitcoin Classic") + "\n" +
" bitcoin-cli [options] <command> [params] " + _("Send command to Satoshi's Bitcoin") + "\n" +
" bitcoin-cli [options] help " + _("List commands") + "\n" +
" bitcoin-cli [options] help <command> " + _("Get help for a command") + "\n";

Expand Down
2 changes: 1 addition & 1 deletion src/bitcoin-tx.cpp
Expand Up @@ -44,7 +44,7 @@ static bool AppInitRawTx(int argc, char* argv[])
if (argc<2 || mapArgs.count("-?") || mapArgs.count("-h") || mapArgs.count("-help"))
{
// First part of help message is specific to this utility
std::string strUsage = _("Bitcoin Classic bitcoin-tx utility version") + " " + FormatFullVersion() + "\n\n" +
std::string strUsage = _("Satoshi's Bitcoin bitcoin-tx utility version") + " " + FormatFullVersion() + "\n\n" +
_("Usage:") + "\n" +
" bitcoin-tx [options] <hex-tx> [commands] " + _("Update hex-encoded bitcoin transaction") + "\n" +
" bitcoin-tx [options] -create [commands] " + _("Create hex-encoded bitcoin transaction") + "\n" +
Expand Down
4 changes: 2 additions & 2 deletions src/bitcoind.cpp
Expand Up @@ -69,7 +69,7 @@ bool AppInit(int argc, char* argv[])
// Process help and version before taking care about datadir
if (mapArgs.count("-?") || mapArgs.count("-h") || mapArgs.count("-help") || mapArgs.count("-version"))
{
std::string strUsage = _("Bitcoin Classic Daemon") + " " + _("version") + " " + FormatFullVersion() + "\n";
std::string strUsage = _("Satoshi's Bitcoin Daemon") + " " + _("version") + " " + FormatFullVersion() + "\n";

if (mapArgs.count("-version"))
{
Expand All @@ -78,7 +78,7 @@ bool AppInit(int argc, char* argv[])
else
{
strUsage += "\n" + _("Usage:") + "\n" +
" bitcoind [options] " + _("Start Bitcoin Classic Daemon") + "\n";
" bitcoind [options] " + _("Start Satoshi's Bitcoin Daemon") + "\n";

strUsage += "\n" + HelpMessage(HMM_BITCOIND);
}
Expand Down
5 changes: 3 additions & 2 deletions src/chainparams.cpp
Expand Up @@ -35,7 +35,8 @@ class CMainParams : public CChainParams {
consensus.nMajorityEnforceBlockUpgrade = 750;
consensus.nMajorityRejectBlockOutdated = 950;
consensus.nMajorityWindow = 1000;
consensus.powLimit = uint256S("00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
//consensus.powLimit = uint256S("00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
consensus.powLimit = uint256S("007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); // A single node will find a block every ~10-15 mintues at this difficulty
consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; // two weeks
consensus.nPowTargetSpacing = 10 * 60;
consensus.fPowAllowMinDifficultyBlocks = false;
Expand Down Expand Up @@ -106,7 +107,7 @@ class CMainParams : public CChainParams {
vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main));

fRequireRPCPassword = true;
fMiningRequiresPeers = true;
fMiningRequiresPeers = false;
fDefaultConsistencyChecks = false;
fRequireStandard = true;
fMineBlocksOnDemand = false;
Expand Down
2 changes: 1 addition & 1 deletion src/clientversion.cpp
Expand Up @@ -13,7 +13,7 @@
* for both bitcoind and bitcoin-classic, to make it harder for attackers to
* target servers or GUI users specifically.
*/
const std::string CLIENT_NAME("Classic");
const std::string CLIENT_NAME("SatoshisBitcoinFullForkTrial_1");

/**
* Client version number
Expand Down

0 comments on commit e9af835

Please sign in to comment.