Skip to content

Commit

Permalink
Merge pull request bitcoin#9 from dooglus/defaultcoin
Browse files Browse the repository at this point in the history
Defaultcoin
  • Loading branch information
l0rdicon committed Oct 20, 2018
2 parents 029b71d + cad773d commit 4164751
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include "addrman.h"
#include "amount.h"
#include "base58.h"
#include "chain.h"
#include "chainparams.h"
#include "checkpoints.h"
Expand Down Expand Up @@ -76,6 +77,8 @@ int64_t nMaxStakeValue;
int64_t nSplitSize;
int64_t nCombineLimit;
bool fCombineAny;
std::set<CBitcoinAddress> setSpendLastAddresses;
std::set<CBitcoinAddress> setStakeAddresses;


static const bool DEFAULT_PROXYRANDOMIZE = true;
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ UniValue dumpbootstrap(const JSONRPCRequest& request)
throw JSONRPCError(RPC_MISC_ERROR, "Error: Bootstrap dump failed!");
}

return NullUniValue;
return strprintf("dumped %d blocks from %d to %d into %s", nEndBlock - nStartBlock + 1, nStartBlock, nEndBlock, pathDest);
}


Expand Down
9 changes: 9 additions & 0 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,15 @@ bool IsArgSet(const std::string& strArg);
*/
std::string GetArg(const std::string& strArg, const std::string& strDefault);

/**
* Return integer argument or default value
*
* @param strArg Argument to get (e.g. "-foo")
* @param default (e.g. 1)
* @return command-line argument or default value
*/
int64_t GetMoneyArg(const std::string& strArg, int64_t nDefault);

/**
* Return integer argument or default value
*
Expand Down
4 changes: 4 additions & 0 deletions src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@ static void SendMoney(const CTxDestination &address, CAmount nValue, int64_t nCo
strError = strprintf("Error: This transaction requires a transaction fee of at least %s", FormatMoney(nFeeRequired));
throw JSONRPCError(RPC_WALLET_ERROR, strError);
}

// LogPrintf("nFeeRequired is %s\n", FormatMoney(nFeeRequired));
// throw JSONRPCError(RPC_WALLET_ERROR, "not broadcasting");

CValidationState state;
if (!pwalletMain->CommitTransaction(wtxNew, reservekey, g_connman.get(), state)) {
strError = strprintf("Error: The transaction was rejected! Reason given: %s", state.GetRejectReason());
Expand Down

0 comments on commit 4164751

Please sign in to comment.