Skip to content

Commit

Permalink
merged
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Duffield committed Sep 30, 2014
2 parents ac4afe6 + 213325e commit e81a47a
Show file tree
Hide file tree
Showing 73 changed files with 5,643 additions and 846 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ DarkCoin is a lite version of Bitcoin using X11 as a proof-of-work algorithm.
- Block generation: 2.5 minutes
- Difficulty Retargets every block using Dark Gravity Wave
- Est. ~7M Coins in 2015, ~13M in 2020, ~23M in 2030
- Anonymous blockchain using DarkSend technology (Based on CoinJoin): Beta Testing
- Anonymous blockchain using DarkSend technology

For more information, as well as an immediately useable, binary version of
the DarkCoin client sofware, see http://www.darkcoin.io.
Expand Down
15 changes: 13 additions & 2 deletions bitcoin-qt.pro
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Hack around https://bugreports.qt-project.org/browse/QTBUG-22829
QMAKE_MOC = $$QMAKE_MOC -DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED

TEMPLATE = app
TARGET = darkcoin-qt
macx:TARGET = "DarkCoin-Qt"
Expand Down Expand Up @@ -160,6 +163,7 @@ HEADERS += src/qt/bitcoingui.h \
src/uint256.h \
src/serialize.h \
src/main.h \
src/darksend.h \
src/net.h \
src/key.h \
src/db.h \
Expand Down Expand Up @@ -187,6 +191,7 @@ HEADERS += src/qt/bitcoingui.h \
src/qt/transactiondesc.h \
src/qt/transactiondescdialog.h \
src/qt/bitcoinamountfield.h \
src/qt/termsofuse.h \
src/wallet.h \
src/keystore.h \
src/qt/transactionfilterproxy.h \
Expand All @@ -204,6 +209,7 @@ HEADERS += src/qt/bitcoingui.h \
src/qt/bitcoinunits.h \
src/qt/qvaluecombobox.h \
src/qt/askpassphrasedialog.h \
src/qt/darksendconfig.h \
src/protocol.h \
src/qt/notificator.h \
src/qt/paymentserver.h \
Expand Down Expand Up @@ -255,6 +261,7 @@ SOURCES += src/qt/bitcoin.cpp \
src/key.cpp \
src/script.cpp \
src/main.cpp \
src/darksend.cpp \
src/init.cpp \
src/net.cpp \
src/bloom.cpp \
Expand All @@ -271,6 +278,7 @@ SOURCES += src/qt/bitcoin.cpp \
src/qt/transactiondescdialog.cpp \
src/qt/bitcoinstrings.cpp \
src/qt/bitcoinamountfield.cpp \
src/qt/termsofuse.cpp \
src/wallet.cpp \
src/keystore.cpp \
src/qt/transactionfilterproxy.cpp \
Expand All @@ -280,11 +288,11 @@ SOURCES += src/qt/bitcoin.cpp \
src/qt/walletstack.cpp \
src/qt/walletframe.cpp \
src/bitcoinrpc.cpp \
src/rpcdarksend.cpp \
src/rpcdump.cpp \
src/rpcnet.cpp \
src/rpcmining.cpp \
src/rpcwallet.cpp \
src/rpcdarksend.cpp \
src/rpcblockchain.cpp \
src/rpcrawtransaction.cpp \
src/qt/overviewpage.cpp \
Expand All @@ -295,6 +303,7 @@ SOURCES += src/qt/bitcoin.cpp \
src/qt/bitcoinunits.cpp \
src/qt/qvaluecombobox.cpp \
src/qt/askpassphrasedialog.cpp \
src/qt/darksendconfig.cpp \
src/protocol.cpp \
src/qt/notificator.cpp \
src/qt/paymentserver.cpp \
Expand Down Expand Up @@ -328,8 +337,10 @@ FORMS += src/qt/forms/sendcoinsdialog.ui \
src/qt/forms/overviewpage.ui \
src/qt/forms/sendcoinsentry.ui \
src/qt/forms/askpassphrasedialog.ui \
src/qt/forms/darksendconfig.ui \
src/qt/forms/rpcconsole.ui \
src/qt/forms/optionsdialog.ui
src/qt/forms/optionsdialog.ui \
src/qt/forms/termsofuse.ui

contains(USE_QRCODE, 1) {
HEADERS += src/qt/qrcodedialog.h
Expand Down
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/linux/gitian-linux-darkcoin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ packages:
- "libqt4-test"
reference_datetime: "2014-01-10 00:00:00"
remotes:
- "url": "https://github.com/darkcoinproject/darkcoin.git"
- "url": "https://github.com/schinzelh/darkcoin-rc.git"
"dir": "darkcoin"
files:
- "bitcoin-deps-linux32-gitian-r6.zip"
Expand Down
4 changes: 2 additions & 2 deletions contrib/gitian-descriptors/osx/gitian-osx-darkcoin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ packages:

reference_datetime: "2014-01-10 00:00:00"
remotes:
- "url": "https://github.com/darkcoinproject/darkcoin.git"
- "url": "https://github.com/schinzelh/darkcoin-rc.git"
"dir": "darkcoin"
files:
- "osx-native-depends-r3.tar.gz"
Expand Down Expand Up @@ -80,4 +80,4 @@ script: |
/usr/bin/install -c contrib/macdeploy/DS_Store dist/.DS_Store
cd dist; ln -s /Applications Applications; cd ..
genisoimage -no-cache-inodes -l -probe -V "DarkCoin-Qt" -no-pad -r -apple -o DarkCoin-Qt.dmg dist
dmg dmg DarkCoin-Qt.dmg /home/ubuntu/out/DarkCoin-Qt.dmg
dmg dmg DarkCoin-Qt.dmg /home/ubuntu/out/DarkCoin-Qt.dmg
4 changes: 2 additions & 2 deletions contrib/gitian-descriptors/windows/gitian-win-darkcoin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ packages:
- "faketime"
reference_datetime: "2014-01-10 00:00:00"
remotes:
- "url": "https://github.com/darkcoinproject/darkcoin.git"
- "url": "https://github.com/schinzelh/darkcoin-rc.git"
"dir": "darkcoin"
files:
- "qt-win32-4.8.5-gitian-r5.zip"
Expand Down Expand Up @@ -112,4 +112,4 @@ script: |
rm -rf $TEMPDIR
mkdir -p $TEMPDIR
cd $TEMPDIR
tar -xvf $HOME/build/darkcoin/$DISTNAME | sort | tar --no-recursion -cT /dev/stdin --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 --mtime="$REFERENCE_DATETIME" | gzip -n > $OUTDIR/src/$DISTNAME
tar -xvf $HOME/build/darkcoin/$DISTNAME | sort | tar --no-recursion -cT /dev/stdin --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 --mtime="$REFERENCE_DATETIME" | gzip -n > $OUTDIR/src/$DISTNAME
48 changes: 0 additions & 48 deletions contrib/homebrew/makefile.osx.patch

This file was deleted.

5 changes: 5 additions & 0 deletions src/bitcoinrpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ static const CRPCCommand vRPCCommands[] =
{ "getconnectioncount", &getconnectioncount, true, false, false },
{ "getpeerinfo", &getpeerinfo, true, false, false },
{ "addnode", &addnode, true, true, false },
{ "getpoolinfo", &getpoolinfo, true, false, false },
{ "darksend", &darksend, false, false, true },
{ "masternode", &masternode, false, false, true },
{ "getaddednodeinfo", &getaddednodeinfo, true, true, false },
{ "getdifficulty", &getdifficulty, true, false, false },
Expand Down Expand Up @@ -261,6 +263,8 @@ static const CRPCCommand vRPCCommands[] =
{ "importprivkey", &importprivkey, false, false, true },
{ "listunspent", &listunspent, false, false, true },
{ "getrawtransaction", &getrawtransaction, false, false, false },
{ "erasetransaction", &erasetransaction, false, false, false },
{ "resendtransaction", &resendtransaction, false, false, false },
{ "createrawtransaction", &createrawtransaction, false, false, false },
{ "decoderawtransaction", &decoderawtransaction, false, false, false },
{ "signrawtransaction", &signrawtransaction, false, false, false },
Expand Down Expand Up @@ -1157,6 +1161,7 @@ Array RPCConvertValues(const std::string &strMethod, const std::vector<std::stri
if (strMethod == "getnetworkhashps" && n > 0) ConvertTo<boost::int64_t>(params[0]);
if (strMethod == "getnetworkhashps" && n > 1) ConvertTo<boost::int64_t>(params[1]);
if (strMethod == "sendtoaddress" && n > 1) ConvertTo<double>(params[1]);
if (strMethod == "darksend" && n > 1) ConvertTo<double>(params[1]);
if (strMethod == "settxfee" && n > 0) ConvertTo<double>(params[0]);
if (strMethod == "setmininput" && n > 0) ConvertTo<double>(params[0]);
if (strMethod == "getreceivedbyaddress" && n > 1) ConvertTo<boost::int64_t>(params[1]);
Expand Down
4 changes: 4 additions & 0 deletions src/bitcoinrpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ extern std::string HexBits(unsigned int nBits);
extern std::string HelpRequiringPassphrase();
extern void EnsureWalletIsUnlocked();

extern json_spirit::Value getpoolinfo(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value darksend(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value masternode(const json_spirit::Array& params, bool fHelp);

extern json_spirit::Value getconnectioncount(const json_spirit::Array& params, bool fHelp); // in rpcnet.cpp
Expand Down Expand Up @@ -192,6 +194,8 @@ extern json_spirit::Value validateaddress(const json_spirit::Array& params, bool
extern json_spirit::Value getinfo(const json_spirit::Array& params, bool fHelp);

extern json_spirit::Value getrawtransaction(const json_spirit::Array& params, bool fHelp); // in rcprawtransaction.cpp
extern json_spirit::Value erasetransaction(const json_spirit::Array& params, bool fHelp); // in rcprawtransaction.cpp
extern json_spirit::Value resendtransaction(const json_spirit::Array& params, bool fHelp); // in rcprawtransaction.cpp
extern json_spirit::Value listunspent(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value lockunspent(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value listlockunspent(const json_spirit::Array& params, bool fHelp);
Expand Down
3 changes: 2 additions & 1 deletion src/checkpointsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
#include "main.h"
#include "txdb.h"
#include "uint256.h"
#include "darksend.h"

using namespace json_spirit;
using namespace std;
Expand Down Expand Up @@ -473,7 +474,7 @@ Value getcheckpoint(const Array& params, bool fHelp)
result.push_back(Pair("subscribemode", IsSyncCheckpointEnforced()? "enforce" : "advisory"));
if (mapArgs.count("-checkpointkey"))
result.push_back(Pair("checkpointmaster", true));

result.push_back(Pair("enforcing", GetAdjustedTime() > enforceMasternodePaymentsTime ? "on" : "off"));
return result;
}

Expand Down
2 changes: 1 addition & 1 deletion src/clientversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true

// Copyright year (2009-this)
// Copyright year (2009-this)
// Todo: update this when changing our copyright comments in the source
#define COPYRIGHT_YEAR 2013

Expand Down
Loading

0 comments on commit e81a47a

Please sign in to comment.