Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
ZeroClassic v2.0.20 "Wardenclyffe"
Browse files Browse the repository at this point in the history
  • Loading branch information
miodragpop committed Jan 8, 2019
1 parent f35bc17 commit 287d632
Show file tree
Hide file tree
Showing 663 changed files with 36,352 additions and 13,583 deletions.
16 changes: 6 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@
src/bitcoin
src/zerod
src/zero-cli
src/zero-gtest
src/zerc-gtest
src/zero-tx
src/test/test_bitcoin

# Zero utilities
src/zero/GenerateParams
src/zero/CreateJoinSplit

*zeroTest.pk
*zeroTest.vk
*zcashTest.pk
*zcashTest.vk

# autoreconf
Makefile.in
Expand Down Expand Up @@ -56,7 +52,7 @@ src/univalue/gen
*.pyc
*.o
*.o-*
.zero
.zcash
*.a
*.pb.cc
*.pb.h
Expand Down Expand Up @@ -92,7 +88,7 @@ build
*.gcda
/*.info
test_bitcoin.coverage/
zero-gtest.coverage/
zerc-gtest.coverage/
total.coverage/
coverage_percent.txt

Expand All @@ -109,7 +105,7 @@ qa/pull-tester/test.*/*

/doc/doxygen/

libzeroconsensus.pc
libzcashconsensus.pc

contrib/debian/files
contrib/debian/substvars
79 changes: 0 additions & 79 deletions .travis.yml

This file was deleted.

9 changes: 5 additions & 4 deletions COPYING
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Copyright (c) 2016-2017 The Zero developers
Copyright (c) 2009-2017 The Bitcoin Core developers
Copyright (c) 2016-2018 The Zcash developers
Copyright (c) 2009-2018 The Bitcoin Core developers
Copyright (c) 2009-2018 Bitcoin Developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -31,7 +32,7 @@ OpenSSL Toolkit (https://www.openssl.org/). This product includes cryptographic
software written by Eric Young ([email protected]).


Although almost all of the Zero code is licensed under "permissive" open source
Although almost all of the Zcash code is licensed under "permissive" open source
licenses, users and distributors should note that when built using the default
build options, Zero depends on Oracle Berkeley DB 6.2.x, which is licensed
build options, Zcash depends on Oracle Berkeley DB 6.2.x, which is licensed
under the GNU Affero General Public License.
5 changes: 0 additions & 5 deletions INSTALL

This file was deleted.

30 changes: 15 additions & 15 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GZIP_ENV="-9n"

if BUILD_BITCOIN_LIBS
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libzeroconsensus.pc
pkgconfig_DATA = libzcashconsensus.pc
endif

BITCOIND_BIN=$(top_builddir)/src/$(BITCOIN_DAEMON_NAME)$(EXEEXT)
Expand Down Expand Up @@ -101,13 +101,13 @@ test_bitcoin_filtered.info: test_bitcoin.info
"$(abs_builddir)/src/wallet/test/*" \
-o $@

zero-gtest.info: baseline_filtered_combined.info
$(MAKE) -C src/ zero-gtest_check
$(LCOV) -c -d $(abs_builddir)/src -t zero-gtest -o $@
zcash-gtest.info: baseline_filtered_combined.info
$(MAKE) -C src/ zcash-gtest_check
$(LCOV) -c -d $(abs_builddir)/src -t zcash-gtest -o $@
$(LCOV) -z -d $(abs_builddir)/src
$(LCOV) -z -d $(abs_builddir)/src/leveldb

zero-gtest_filtered.info: zero-gtest.info
zcash-gtest_filtered.info: zcash-gtest.info
$(LCOV) -r $< "/usr/include/*" \
"$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/*.h" \
"$(abs_builddir)/depends/x86_64-unknown-linux-gnu/include/boost/*" \
Expand All @@ -122,41 +122,41 @@ zero-gtest_filtered.info: zero-gtest.info
test_bitcoin_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info
$(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a test_bitcoin_filtered.info -o $@

zero-gtest_coverage.info: baseline_filtered_combined.info zero-gtest_filtered.info
$(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a zero-gtest_filtered.info -o $@
zcash-gtest_coverage.info: baseline_filtered_combined.info zcash-gtest_filtered.info
$(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a zcash-gtest_filtered.info -o $@

total_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info zero-gtest_filtered.info
$(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a test_bitcoin_filtered.info -a zero-gtest_filtered.info -o $@ | $(GREP) "\%" | $(AWK) '{ print substr($$3,2,50) "/" $$5 }' > coverage_percent.txt
total_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info zcash-gtest_filtered.info
$(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a test_bitcoin_filtered.info -a zcash-gtest_filtered.info -o $@ | $(GREP) "\%" | $(AWK) '{ print substr($$3,2,50) "/" $$5 }' > coverage_percent.txt

test_bitcoin.coverage/.dirstamp: test_bitcoin_coverage.info
$(GENHTML) -s $< -o $(@D)
@touch $@

zero-gtest.coverage/.dirstamp: zero-gtest_coverage.info
zcash-gtest.coverage/.dirstamp: zcash-gtest_coverage.info
$(GENHTML) -s $< -o $(@D)
@touch $@

cov-zero: zero-gtest.coverage/.dirstamp
cov-zcash: zcash-gtest.coverage/.dirstamp

total.coverage/.dirstamp: total_coverage.info
$(GENHTML) -s $< -o $(@D)
@touch $@

cov: test_bitcoin.coverage/.dirstamp cov-zero total.coverage/.dirstamp
cov: test_bitcoin.coverage/.dirstamp cov-zcash total.coverage/.dirstamp

endif

dist_bin_SCRIPTS = zcutil/fetch-params.sh
dist_noinst_SCRIPTS = autogen.sh zcutil/build-debian-package.sh zcutil/build.sh

EXTRA_DIST = $(top_srcdir)/share/genbuild.sh qa/pull-tester/rpc-tests.sh qa/pull-tester/run-bitcoin-cli qa/rpc-tests qa/zero $(DIST_DOCS) $(BIN_CHECKS)
EXTRA_DIST = $(top_srcdir)/share/genbuild.sh qa/pull-tester/rpc-tests.sh qa/pull-tester/run-bitcoin-cli qa/rpc-tests qa/zcash $(DIST_DOCS) $(BIN_CHECKS)

install-exec-hook:
mv $(DESTDIR)$(bindir)/fetch-params.sh $(DESTDIR)$(bindir)/zero-fetch-params
mv $(DESTDIR)$(bindir)/fetch-params.sh $(DESTDIR)$(bindir)/zcash-fetch-params

.INTERMEDIATE: $(COVERAGE_INFO)

DISTCHECK_CONFIGURE_FLAGS = --enable-man

clean-local:
rm -rf test_bitcoin.coverage/ zero-gtest.coverage/ total.coverage/
rm -rf test_bitcoin.coverage/ zcash-gtest.coverage/ total.coverage/
124 changes: 1 addition & 123 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,123 +1 @@

![Alt text](https://github.com/LEAD-Anoy74/ZeroClassic/blob/master/art/zero_icon.png?raw=true "ZeroClassic")

[ZERC](https://github.com/LEAD-Anoy74/ZeroClassic) is a fork of ZeroCurrency and Zero.
Zero is a fork of Bitcoin that adds shielded transaction via zk-SNARKs.

This software is the ZERO Classic node. It downloads and stores the entire history of ZERO Classic transactions, about 1GB at this point.
Depending on the speed of your computer and network connection, the synchronization process could take several hours.

Announcements
-----------------
On September 15th, the old ZERO will fork to add block halving and dev fees. This means that a % of the Zero block reward, will go straight into the devs wallets. We've dediced to NOT SUPPORT THIS UPDATE and continue maintaining the old fashioned Zero like it should be. Free, open source, without any fee. This is why ZERO Classic (ZERC) is born.

What should I do if I already own some coins?
-----------------
Zero will then have two chains:
- MAIN CHAIN --> the one for users who will update their wallet and support dev fees
- OUR OLD FASHIONED CHAIN --> for who decided to keep their wallet as it was

Coins existing on the initial chain, before 15th of September, will continue to exists in both chains. Then, every fork will continue on his own. Even your receiving adresses.

Security Warnings
-----------------
See important security warnings on the
[Security Information page](https://z.cash/support/security/).

**ZERO Classic is unfinished and highly experimental.** Use at your own risk.

Deprecation Policy
------------------
This release is considered deprecated 26 weeks after the release day. There
is an automatic deprecation shutdown feature which will halt the node some
time after this 26 week time period. The automatic feature is based on block
height and can be explicitly disabled.

Building (16.04.5 LTS (Xenial Xerus))
--------
Currently only Linux build is officially supported. 8GB RAM is recommended.

### Install packages (needs to be done only once)
```
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python python-zmq zlib1g-dev wget bsdmainutils automake cmake
```

### Download cryptographic keys (needs to be done only once)
```
./zcutil/fetch-params.sh
```

### Obtain the ZERO Classic software from GitHub
```
git clone https://github.com/LEAD-Anoy74/ZeroClassic/
cd ZeroClassic
git checkout master
```

### Build the source code to produce binary executables:
```
cd ZeroClassic
chmod +x src/leveldb/build_detect_platform zcutil/build.sh zcutil/fetch-params.sh depends/config.guess depends/config.sub autogen.sh share/genbuild.sh
./zcutil/fetch-params.sh
./zcutil/build.sh --disable-rust -j$(nproc)
```
On a typical laptop -j3 works fine, while retaining some UI interactivity
```
./zcutil/build.sh --disable-rust -j3
```

### Create a ZERO Classic configuration file

```
<<<<<<< master
mkdir -p ~/.zeroclassic
echo "rpcuser=YOUR_USER" > ~/.zeroclassic/zero.conf
echo "rpcpassword=`head -c 32 /dev/urandom | base64`" >> ~/.zeroclassic/zero.conf
echo "rpcport=23800" >> ~/.zeroclassic/zero.conf
echo "addnode=163.172.49.214" >> ~/.zeroclassic/zero.conf
echo "addnode=95.179.141.123" >> ~/.zeroclassic/zero.conf
echo "addnode=173.249.40.205" >> ~/.zeroclassic/zero.conf
echo "addnode=149.56.97.170" >> ~/.zeroclassic/zero.conf
echo "addnode=173.212.214.174" >> ~/.zeroclassic/zero.conf
echo "addnode=172.93.98.162" >> ~/.zero/zero.conf
echo "addnode=51.68.153.137" >> ~/.zero/zero.conf
>>>>>>> master
```

### Seeder Nodes
As of 05/12/2018 the following seeder nodes are up and run a recent Linux version:
```
addnode=163.172.49.214
addnode=95.179.141.123
addnode=173.249.40.205
addnode=149.56.97.170
addnode=173.212.214.174
addnode=172.93.98.162
addnode=51.68.153.137
```

### Enable CPU mining (optional)
```
echo 'gen=1' >> ~/.zeroclassic/zero.conf
echo "genproclimit=1" >> ~/.zeroclassic/zero.conf
echo 'equihashsolver=tromp' >> ~/.zeroclassic/zero.conf
```

A sample of the current zero.conf
```
./contrib/zero.conf
```
A sample demonstrating a large number of command line options
```
./contrib/debian/examples/zero.conf
```

Running & Using ZERO Classic
--------------------
After a successful build ZERO Classic binaries are in `./src`. The two important binaries are `zerod` and `zero-cli`.

Your wallet will be created (on first zerod run) in: ~/.zeroclassic/wallet.zero
Please backup your wallet often and keep it safe.

The usage is currently the same ZCash. For more information see the [ZCash User Guide](https://github.com/zero/zero/wiki/1.0-User-Guide#running-zero).
This version of ZeroClassic cryptocurrency is based on Zcash 2.0.2 source code, introducing overwinter and sapling support but keeping Zero PoW algorithm and consensus rules.
Empty file modified autogen.sh
100644 → 100755
Empty file.
Loading

0 comments on commit 287d632

Please sign in to comment.