diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index cc409c43..24142968 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -1084,7 +1084,7 @@ json_spirit::Value CRPCTable::execute(const std::string &strMethod, const json_s // Observe safe mode string strWarning = GetWarnings("rpc"); - if (strWarning != "" && !GetBoolArg("-disablesafemode", false) && + if (strWarning != "" && !GetBoolArg("-disablesafemode", true) && !pcmd->okSafeMode) throw JSONRPCError(RPC_FORBIDDEN_BY_SAFE_MODE, string("Safe mode: ") + strWarning); diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp index 0469f725..7e4f778f 100644 --- a/src/checkpoints.cpp +++ b/src/checkpoints.cpp @@ -41,11 +41,12 @@ namespace Checkpoints ( 13081, uint256("0x5125dc1f6a3b8f1c463baf3e078d8af9f1b35aa4b34fb441e3a7ee391f8727c6")) ( 18000, uint256("0xa3cab01c0e3e9b17b2a63b3cc93d258112f5ad753df1df7bd45e37a5c60814a9")) ( 18050, uint256("0xef0d4c9e318a952dd45fcb1c867996df309a0fb586811479c08cf18a176a8864")) + ( 18973, uint256("0x5f3f60fec53ac03434907ca980b5349875822794a4a0b50b78bcf0411d0c95fe")) ; static const CCheckpointData data = { &mapCheckpoints, - 1389337278, // * UNIX timestamp of last checkpoint block - 21168, // * total number of transactions between genesis and last checkpoint + 1389556451, // * UNIX timestamp of last checkpoint block + 22193, // * total number of transactions between genesis and last checkpoint // (the tx=... number in the SetBestChain debug.log lines) 144.0 // * estimated number of transactions per day after checkpoint }; diff --git a/src/clientversion.h b/src/clientversion.h index 9cfad6d0..10edc2dd 100644 --- a/src/clientversion.h +++ b/src/clientversion.h @@ -8,7 +8,7 @@ // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MINOR 9 -#define CLIENT_VERSION_REVISION 01 +#define CLIENT_VERSION_REVISION 02 #define CLIENT_VERSION_BUILD 0 // Set to true for release, false for prerelease or test build diff --git a/src/init.cpp b/src/init.cpp index a547b258..9985967e 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -245,7 +245,7 @@ std::string HelpMessage() strUsage += " -keypool= " + _("Set key pool size to (default: 100)") + "\n"; strUsage += " -rescan " + _("Rescan the block chain for missing wallet transactions") + "\n"; strUsage += " -salvagewallet " + _("Attempt to recover private keys from a corrupt twisterwallet.dat") + "\n"; - strUsage += " -checkblocks= " + _("How many blocks to check at startup (default: 120, 0 = all)") + "\n"; + strUsage += " -checkblocks= " + _("How many blocks to check at startup (default: 500, 0 = all)") + "\n"; strUsage += " -checklevel= " + _("How thorough the block verification is (0-4, default: 3)") + "\n"; strUsage += " -txindex " + _("Maintain a full transaction index (default: 0)") + "\n"; strUsage += " -loadblock= " + _("Imports blocks from external blk000??.dat file") + "\n"; @@ -755,7 +755,7 @@ bool AppInit2(boost::thread_group& threadGroup) uiInterface.InitMessage(_("Verifying blocks...")); if (!VerifyDB(GetArg("-checklevel", 3), - GetArg( "-checkblocks", 120))) { + GetArg( "-checkblocks", 500))) { strLoadError = _("Corrupted block database detected"); break; } diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 7e552874..1be126e2 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -58,10 +58,12 @@ Object blockToJSON(const CBlock& block, const CBlockIndex* blockindex) Array txuserhashes; Array usernames; std::string spamMessage; + std::string spamUser; BOOST_FOREACH(const CTransaction&tx, block.vtx) { txs.push_back(tx.GetHash().GetHex()); if( tx.IsSpamMessage() ) { spamMessage = tx.message.ExtractPushDataString(0); + spamUser = tx.userName.ExtractPushDataString(0); } else { txuserhashes.push_back(tx.GetUsernameHash().GetHex()); usernames.push_back(tx.userName.ExtractSmallString()); @@ -69,6 +71,7 @@ Object blockToJSON(const CBlock& block, const CBlockIndex* blockindex) } result.push_back(Pair("tx", txs)); result.push_back(Pair("spamMessage", spamMessage)); + result.push_back(Pair("spamUser", spamUser)); result.push_back(Pair("userhashes", txuserhashes)); result.push_back(Pair("usernames", usernames)); result.push_back(Pair("time", (boost::int64_t)block.GetBlockTime()));