Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0.0 Cosmos #51

Merged
merged 36 commits into from
May 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
5271c83
Update getalldata
CryptoForge Apr 25, 2019
a0f9796
remove unused file
CryptoForge Apr 25, 2019
33a8929
Update strMessageMagic
CryptoForge Apr 25, 2019
4302818
Zeronodes
CryptoForge Apr 25, 2019
189150e
Merge pull request #12 from zerocurrencycoin/v2.0.4
CryptoForge Apr 25, 2019
56f8f2a
Merge pull request #13 from CryptoForge/v3.0.0
CryptoForge Apr 25, 2019
21f89e3
Merge pull request #14 from CryptoForge/3.0.0a
CryptoForge Apr 25, 2019
b63d1af
Misc. Zcash to Zero
CryptoForge Apr 25, 2019
8ae79fc
Version Update to 3.0.0 Cosmos
CryptoForge Apr 25, 2019
0d5c4f1
Update blocktemplate
CryptoForge Apr 27, 2019
61f4b26
checkpoints
CryptoForge Apr 28, 2019
aec8780
zeronode payment winner misbehaving penalty
CryptoForge Apr 28, 2019
04ec21a
Set zernode payment to 0.01 until enforcement activated
CryptoForge May 6, 2019
d2e7085
remove unneeded zeronode payment check
CryptoForge May 6, 2019
c743bdb
fix zeronode port 23801
CryptoForge May 6, 2019
b739dca
Set minimum node count to check for determinist payment assignment.
CryptoForge May 6, 2019
f1ee835
Update upgrade string info
CryptoForge May 7, 2019
756723c
Reduce tx size to 100KB with Cosmos Activation
CryptoForge May 7, 2019
8f0e7dd
Mitigate timewarp attacks, reduce future date window from 2 hours to …
CryptoForge May 7, 2019
cbe00dc
Fix zeronode payment when enforcement is deactivated
CryptoForge May 8, 2019
7dd8867
Misc Zcash to Zero
CryptoForge May 8, 2019
e0845e8
fix zeronode payment amount
CryptoForge May 8, 2019
a402afc
fix NetworkUpgradeActive in ChcekBlockHeader
CryptoForge May 10, 2019
8369912
Move nMinMnCount check to outside og boost loop and decrease min mode…
CryptoForge May 12, 2019
7669d9a
Change sendmany utxo selection to descending.
CryptoForge May 12, 2019
03f5d4e
Increase max tx size for COSMOS to 200KB
CryptoForge May 12, 2019
6673790
activate cosmos on testnet
CryptoForge May 18, 2019
e2190bb
Update bip44CoinType
CryptoForge May 19, 2019
630859f
Add Zeronode Full Payment Spork
CryptoForge May 25, 2019
c8834e3
update Cosmos mainnet activation height,
CryptoForge May 26, 2019
d0c0257
add mainnet seed nodes
CryptoForge May 26, 2019
043fb34
Set version for RC1
CryptoForge May 26, 2019
dfccde9
update ZERONODE_SYNC_THRESHOLD
CryptoForge May 26, 2019
1ca2b74
Update deprecation height
CryptoForge May 29, 2019
31baf08
set version for Release
CryptoForge May 29, 2019
5d6f404
Merge pull request #15 from CryptoForge/v3.0.0
CryptoForge May 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
![alt text](https://github.com/zerocurrencycoin/Zero/blob/master/art/zero%203d%20mountain.png?raw=true)

[ZERO](https://zerocurrency.io) - [Ny-Alesund:2.0.4](https://github.com/zerocurrencycoin/Zero/releases/tag/v2.0.4)
[ZERO](https://zerocurrency.io) - [Cosmos:3.0.0](https://github.com/zerocurrencycoin/Zero/releases/tag/v3.0.0)

||FAST|| ||DECENTRALISED|| ||ANONYMOUS|| ||SECURE|| ||ASIC RESISTANT|| - LAUNCE DATE: 2017-02-19

GENESIS BLOCK - 19th Feb 2017 11:26:40 - 068cbb5db6bc11be5b93479ea4df41fa7e012e92ca8603c315f9b1a2202205c6

Download the latest version here - [ZERO - Latest Version - Ny-Alesund:2.0.4](https://github.com/zerocurrencycoin/Zero/releases/tag/v2.0.4)
Download the latest version here - [ZERO - Latest Version - Cosmos:3.0.0](https://github.com/zerocurrencycoin/Zero/releases/tag/v3.0.0)

------------------------------------------

❓ What is ZERO?
--------------

[ZERO](https://github.com/zerocurrencycoin/Zero/releases/tag/v2.0.4) is a revolutionary cryptocurrency and transaction platform based on Zcash.
[ZERO](https://github.com/zerocurrencycoin/Zero/releases/tag/v3.0.0) is a revolutionary cryptocurrency and transaction platform based on Zcash.

[ZERO](https://github.com/zerocurrencycoin/Zero/releases/tag/v2.0.4) offers total payment confidentiality, while still maintaining a decentralised network using a public blockchain.
[ZERO](https://github.com/zerocurrencycoin/Zero/releases/tag/v3.0.0) offers total payment confidentiality, while still maintaining a decentralised network using a public blockchain.

[ZERO](https://github.com/zerocurrencycoin/Zero/releases/tag/v2.0.4) combines Bitcoin’s security with Zcash’s anonymity and privacy.
[ZERO](https://github.com/zerocurrencycoin/Zero/releases/tag/v3.0.0) combines Bitcoin’s security with Zcash’s anonymity and privacy.

[ZERO](https://github.com/zerocurrencycoin/Zero/releases/tag/v2.0.4) stands out from the competition as a fully working product that has already
[ZERO](https://github.com/zerocurrencycoin/Zero/releases/tag/v3.0.0) stands out from the competition as a fully working product that has already
implemented a set of special features not found in any other cryptocurrency.

Our main focus as a team and community is to remain as transparent as we can possibly be and to maintain an interactive relationship with everyone involved. We are fully open about the project, listening to all suggestions from investors, miners and supporters.

This software is the [ZERO](https://github.com/zerocurrencycoin/Zero/releases/tag/v2.0.4) node. It downloads and stores the entire history of ZERO's transactions, about 1.2GB at this point.
This software is the [ZERO](https://github.com/zerocurrencycoin/Zero/releases/tag/v3.0.0) node. It downloads and stores the entire history of ZERO's transactions, about 1.2GB at this point.
Depending on the speed of your computer and network connection, the synchronization process could take several hours.

------------------------------------------
Expand Down Expand Up @@ -122,7 +122,7 @@ See important security warnings on the

📒 Deprecation Policy
------------------
Disabledeprecation flag has been removed. Old nodes will automatically be shut down and must be upgraded upon reaching the deprecation block height, which will occur approximately 32 weeks (7/1/2019) from the release of v2.0.4.
Disabledeprecation flag has been removed. Old nodes will automatically be shut down and must be upgraded upon reaching the deprecation block height, which will occur approximately 32 weeks (7/1/2019) from the release of v3.0.0.


🔧 Building
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 2)
define(_CLIENT_VERSION_MAJOR, 3)
define(_CLIENT_VERSION_MINOR, 0)
define(_CLIENT_VERSION_REVISION, 4)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_BUILD, 50)
define(_ZC_BUILD_VAL, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, m4_incr(_CLIENT_VERSION_BUILD), m4_eval(_CLIENT_VERSION_BUILD < 50), 1, m4_eval(_CLIENT_VERSION_BUILD - 24), m4_eval(_CLIENT_VERSION_BUILD == 50), 1, , m4_eval(_CLIENT_VERSION_BUILD - 50)))
define(_CLIENT_VERSION_SUFFIX, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, _CLIENT_VERSION_REVISION-beta$1, m4_eval(_CLIENT_VERSION_BUILD < 50), 1, _CLIENT_VERSION_REVISION-rc$1, m4_eval(_CLIENT_VERSION_BUILD == 50), 1, _CLIENT_VERSION_REVISION, _CLIENT_VERSION_REVISION-$1)))
Expand Down
2 changes: 1 addition & 1 deletion doc/man/zero-cli.1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.SH NAME
zero-cli \- manual page for zero-cli v2.0.1
.SH DESCRIPTION
Zcash RPC client version v2.0.4
Zcash RPC client version v3.0.0
.PP
In order to ensure you are adequately protecting your privacy when using Zcash,
please see <https://z.cash/support/security/>.
Expand Down
2 changes: 1 addition & 1 deletion doc/man/zero-tx.1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.SH NAME
zero-tx \- manual page for zero-tx v2.0.1
.SH DESCRIPTION
Zcash zcash\-tx utility version v2.0.4
Zcash zcash\-tx utility version v3.0.0
.SS "Usage:"
.TP
zcash\-tx [options] <hex\-tx> [commands]
Expand Down
2 changes: 1 addition & 1 deletion doc/man/zerod.1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.SH NAME
zerod \- manual page for zerod v2.0.1
.SH DESCRIPTION
Zcash Daemon version v2.0.4
Zcash Daemon version v3.0.0
.PP
In order to ensure you are adequately protecting your privacy when using Zcash,
please see <https://z.cash/support/security/>.
Expand Down
28 changes: 28 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ LIBZCASH_H = \
BITCOIN_CORE_H = \
addressindex.h \
spentindex.h \
zeronode/activezeronode.h \
addrman.h \
alert.h \
amount.h \
Expand Down Expand Up @@ -166,6 +167,12 @@ BITCOIN_CORE_H = \
dbwrapper.h \
limitedmap.h \
main.h \
zeronode/zeronode.h \
zeronode/payments.h \
zeronode/budget.h \
zeronode/zeronode-sync.h \
zeronode/zeronodeman.h \
zeronode/zeronodeconfig.h \
memusage.h \
merkleblock.h \
metrics.h \
Expand All @@ -174,6 +181,7 @@ BITCOIN_CORE_H = \
net.h \
netbase.h \
noui.h \
zeronode/obfuscation.h \
policy/fees.h \
pow.h \
prevector.h \
Expand All @@ -195,12 +203,15 @@ BITCOIN_CORE_H = \
script/sign.h \
script/standard.h \
serialize.h \
zeronode/spork.h \
zeronode/sporkdb.h \
streams.h \
support/allocators/secure.h \
support/allocators/zeroafterfree.h \
support/cleanse.h \
support/events.h \
support/pagelocker.h \
zeronode/swifttx.h \
sync.h \
threadsafety.h \
timedata.h \
Expand Down Expand Up @@ -276,7 +287,11 @@ libbitcoin_server_a_SOURCES = \
rpc/net.cpp \
rpc/rawtransaction.cpp \
rpc/server.cpp \
rpc/zeronode.cpp \
rpc/zeronode-budget.cpp \
rpc/spork.cpp \
script/sigcache.cpp \
zeronode/sporkdb.cpp \
timedata.cpp \
torcontrol.cpp \
txdb.cpp \
Expand Down Expand Up @@ -307,6 +322,10 @@ endif
libbitcoin_wallet_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
libbitcoin_wallet_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
libbitcoin_wallet_a_SOURCES = \
zeronode/activezeronode.cpp \
zeronode/obfuscation.cpp \
utiltest.cpp \
utiltest.h \
zcbenchmarks.cpp \
zcbenchmarks.h \
wallet/asyncrpcoperation_mergetoaddress.cpp \
Expand All @@ -315,6 +334,13 @@ libbitcoin_wallet_a_SOURCES = \
wallet/crypter.cpp \
wallet/db.cpp \
wallet/paymentdisclosure.cpp \
zeronode/swifttx.cpp \
zeronode/zeronode.cpp \
zeronode/budget.cpp \
zeronode/payments.cpp \
zeronode/zeronode-sync.cpp \
zeronode/zeronodeconfig.cpp \
zeronode/zeronodeman.cpp \
wallet/paymentdisclosuredb.cpp \
wallet/rpcdisclosure.cpp \
wallet/rpcdump.cpp \
Expand Down Expand Up @@ -387,6 +413,8 @@ libbitcoin_common_a_SOURCES = \
script/script_error.cpp \
script/sign.cpp \
script/standard.cpp \
zeronode/spork.cpp \
zeronode/sporkdb.cpp \
transaction_builder.cpp \
utiltest.cpp \
$(BITCOIN_CORE_H) \
Expand Down
4 changes: 2 additions & 2 deletions src/bitcoin-cli-res.rc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ BEGIN
BEGIN
BLOCK "040904E4" // U.S. English - multilingual (hex)
BEGIN
VALUE "CompanyName", "Zcash"
VALUE "FileDescription", "zero-cli (JSON-RPC client for Zcash)"
VALUE "CompanyName", "Zero"
VALUE "FileDescription", "zero-cli (JSON-RPC client for Zero)"
VALUE "FileVersion", VER_FILEVERSION_STR
VALUE "InternalName", "zero-cli"
VALUE "LegalCopyright", COPYRIGHT_STR
Expand Down
4 changes: 2 additions & 2 deletions src/bitcoin-cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ static int 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 = _("Zcash RPC client version") + " " + FormatFullVersion() + "\n" + PrivacyInfo();
std::string strUsage = _("Zero RPC client version") + " " + FormatFullVersion() + "\n" + PrivacyInfo();
if (!mapArgs.count("-version")) {
strUsage += "\n" + _("Usage:") + "\n" +
" zero-cli [options] <command> [params] " + _("Send command to Zcash") + "\n" +
" zero-cli [options] <command> [params] " + _("Send command to Zero") + "\n" +
" zero-cli [options] help " + _("List commands") + "\n" +
" zero-cli [options] help <command> " + _("Get help for a command") + "\n";

Expand Down
4 changes: 2 additions & 2 deletions src/bitcoin-tx-res.rc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ BEGIN
BEGIN
BLOCK "040904E4" // U.S. English - multilingual (hex)
BEGIN
VALUE "CompanyName", "Zcash"
VALUE "FileDescription", "zero-tx (CLI Zcash transaction editor utility)"
VALUE "CompanyName", "Zero"
VALUE "FileDescription", "zero-tx (CLI Zero transaction editor utility)"
VALUE "FileVersion", VER_FILEVERSION_STR
VALUE "InternalName", "zero-tx"
VALUE "LegalCopyright", COPYRIGHT_STR
Expand Down
6 changes: 3 additions & 3 deletions src/bitcoin-tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ static int 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 = _("Zcash zero-tx utility version") + " " + FormatFullVersion() + "\n\n" +
std::string strUsage = _("Zero zero-tx utility version") + " " + FormatFullVersion() + "\n\n" +
_("Usage:") + "\n" +
" zero-tx [options] <hex-tx> [commands] " + _("Update hex-encoded zcash transaction") + "\n" +
" zero-tx [options] -create [commands] " + _("Create hex-encoded zcash transaction") + "\n" +
" zero-tx [options] <hex-tx> [commands] " + _("Update hex-encoded zero transaction") + "\n" +
" zero-tx [options] -create [commands] " + _("Create hex-encoded zero transaction") + "\n" +
"\n";

fprintf(stdout, "%s", strUsage.c_str());
Expand Down
4 changes: 2 additions & 2 deletions src/bitcoind-res.rc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ BEGIN
BEGIN
BLOCK "040904E4" // U.S. English - multilingual (hex)
BEGIN
VALUE "CompanyName", "Zcash"
VALUE "FileDescription", "zerod (Zcash node with a JSON-RPC server)"
VALUE "CompanyName", "Zero"
VALUE "FileDescription", "zerod (Zero node with a JSON-RPC server)"
VALUE "FileVersion", VER_FILEVERSION_STR
VALUE "InternalName", "zerod"
VALUE "LegalCopyright", COPYRIGHT_STR
Expand Down
20 changes: 15 additions & 5 deletions src/bitcoind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "rpc/server.h"
#include "init.h"
#include "main.h"
#include "zeronode/zeronodeconfig.h"
#include "noui.h"
#include "scheduler.h"
#include "util.h"
Expand Down Expand Up @@ -72,7 +73,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 = _("Zcash Daemon") + " " + _("version") + " " + FormatFullVersion() + "\n" + PrivacyInfo();
std::string strUsage = _("Zero Daemon") + " " + _("version") + " " + FormatFullVersion() + "\n" + PrivacyInfo();

if (mapArgs.count("-version"))
{
Expand All @@ -81,7 +82,7 @@ bool AppInit(int argc, char* argv[])
else
{
strUsage += "\n" + _("Usage:") + "\n" +
" zerod [options] " + _("Start Zcash Daemon") + "\n";
" zerod [options] " + _("Start Zero Daemon") + "\n";

strUsage += "\n" + HelpMessage(HMM_BITCOIND);
}
Expand Down Expand Up @@ -111,7 +112,7 @@ bool AppInit(int argc, char* argv[])
"\n"
"You can look at the example configuration file for suggestions of default\n"
"options that you may want to change. It should be in one of these locations,\n"
"depending on how you installed Zcash:\n") +
"depending on how you installed Zero:\n") +
_("- Source code: %s\n"
"- .deb package: %s\n")).c_str(),
GetConfigFile().string().c_str(),
Expand All @@ -128,10 +129,19 @@ bool AppInit(int argc, char* argv[])
return false;
}

//Start Zeronode
// parse zeronode.conf
std::string strErr;
if (!zeronodeConfig.read(strErr)) {
fprintf(stderr, "Error reading zeronode configuration file: %s\n", strErr.c_str());
return false;
}
//End Zeronode

// Command-line RPC
bool fCommandLine = false;
for (int i = 1; i < argc; i++)
if (!IsSwitchChar(argv[i][0]) && !boost::algorithm::istarts_with(argv[i], "zcash:"))
if (!IsSwitchChar(argv[i][0]) && !boost::algorithm::istarts_with(argv[i], "zero:"))
fCommandLine = true;

if (fCommandLine)
Expand All @@ -143,7 +153,7 @@ bool AppInit(int argc, char* argv[])
fDaemon = GetBoolArg("-daemon", false);
if (fDaemon)
{
fprintf(stdout, "Zcash server starting\n");
fprintf(stdout, "Zero server starting\n");

// Daemonize
pid_t pid = fork();
Expand Down
Loading