Merge branch 'dev' of https://github.com/veruscoin/veruscoin into dev
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,6 +1,5 @@
|
||||
*.tar.gz
|
||||
*.deb
|
||||
*.exe
|
||||
src/bitcoin
|
||||
src/zcashd
|
||||
src/zcash-cli
|
||||
@@ -122,6 +121,9 @@ src/komodod
|
||||
src/komodo-tx
|
||||
src/komodo-test
|
||||
src/wallet-utility
|
||||
src/komodo-cli.exe
|
||||
src/komodod.exe
|
||||
src/komodo-tx.exe
|
||||
|
||||
#output during builds, symbol tables?
|
||||
*.dSYM
|
||||
|
||||
161
.gitlab-ci.yml
Normal file
161
.gitlab-ci.yml
Normal file
@@ -0,0 +1,161 @@
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
- deploy
|
||||
|
||||
variables:
|
||||
VERSION: "0.3.9"
|
||||
AGAMA_ARTIFACTS_LINUX: "linux64.tar.gz"
|
||||
AGAMA_ARTIFACTS_MACOS: "osx.tar.gz"
|
||||
AGAMA_ARTIFACTS_WINDOWS: "win64.zip"
|
||||
VERUS_CLI_DEBIAN: "verus-cli-v${VERSION}-beta-amd64.deb"
|
||||
VERUS_CLI_LINUX_PORTABLE: "verus-cli-linux-v$VERSION-beta.tar.gz"
|
||||
VERUS_CLI_WINDOWS_PORTABLE: "verus-cli-windows-v$VERSION-beta.zip"
|
||||
VERUS_CLI_MACOS_PORTABLE: "verus-cli-mac-v$VERSION-beta.tar.gz"
|
||||
|
||||
build:linux:
|
||||
image: asherd/veruscoin-cross-compiler:linux
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
stage: build
|
||||
cache:
|
||||
key: ${CI_JOB_NAME}
|
||||
paths:
|
||||
- depends/built
|
||||
- .ccache
|
||||
before_script:
|
||||
- mkdir .ccache || echo ccache exists
|
||||
- ln -s $PWD/.ccache /root/.ccache
|
||||
script:
|
||||
- "./zcutil/build.sh"
|
||||
##- "./zcutil/build-debian-package.sh"
|
||||
- "./makeReleaseLinux.sh"
|
||||
- "cd kmd/linux"
|
||||
- "tar -czvf $VERUS_CLI_LINUX_PORTABLE verus-cli"
|
||||
- "mv $VERUS_CLI_LINUX_PORTABLE ../.."
|
||||
- "mv verus-cli linux64"
|
||||
- "tar -czvf $AGAMA_ARTIFACTS_LINUX linux64"
|
||||
- "mv $AGAMA_ARTIFACTS_LINUX ../.."
|
||||
artifacts:
|
||||
paths:
|
||||
- $VERUS_CLI_LINUX_PORTABLE
|
||||
## - $VERUS_CLI_DEBIAN
|
||||
- $AGAMA_ARTIFACTS_LINUX
|
||||
expire_in: 1 week
|
||||
|
||||
|
||||
build:windows:
|
||||
image: asherd/veruscoin-cross-compiler:latest
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
stage: build
|
||||
cache:
|
||||
key: ${CI_JOB_NAME}
|
||||
paths:
|
||||
- depends/built
|
||||
- .ccache
|
||||
- .cargo
|
||||
before_script:
|
||||
- mkdir .ccache || echo ccache exists
|
||||
- ln -s $PWD/.ccache /root/.ccache
|
||||
- mkdir .zcash-params || echo zcash-params exists
|
||||
- ln -s $PWD/.zcash-params /root/.zcash-params
|
||||
- mkdir .cargo || echo .cargo exists
|
||||
- ln -s $PWD/.cargo /root/.cargo
|
||||
script:
|
||||
## add dos2unix
|
||||
- "./zcutil/build-win.sh"
|
||||
- "./makeReleaseWindows.sh"
|
||||
- "cd kmd/windows/"
|
||||
- "zip -r $VERUS_CLI_WINDOWS_PORTABLE verus-cli"
|
||||
- "mv $VERUS_CLI_WINDOWS_PORTABLE ../.."
|
||||
- "mv verus-cli win64"
|
||||
- "zip -r $AGAMA_ARTIFACTS_WINDOWS win64"
|
||||
- "mv $AGAMA_ARTIFACTS_WINDOWS ../.."
|
||||
artifacts:
|
||||
paths:
|
||||
- $VERUS_CLI_WINDOWS_PORTABLE
|
||||
- $AGAMA_ARTIFACTS_WINDOWS
|
||||
expire_in: 1 week
|
||||
|
||||
|
||||
build:mac:
|
||||
stage: build
|
||||
tags: ["osx"]
|
||||
cache:
|
||||
key: ${CI_JOB_NAME}
|
||||
paths:
|
||||
- depends/built
|
||||
script:
|
||||
- "./zcutil/build-mac.sh | xcpretty"
|
||||
- "./makeReleaseMac.sh"
|
||||
- "cd kmd/mac/"
|
||||
- "tar -czvf $VERUS_CLI_MACOS_PORTABLE verus-cli"
|
||||
- "mv verus-cli-mac-v$VERSION-beta.tar.gz ../.."
|
||||
- "mv verus-cli osx"
|
||||
- "tar -czvf $AGAMA_ARTIFACTS_MACOS osx"
|
||||
- "mv $AGAMA_ARTIFACTS_MACOS ../.."
|
||||
artifacts:
|
||||
paths:
|
||||
- $VERUS_CLI_MACOS_PORTABLE
|
||||
- $AGAMA_ARTIFACTS_MACOS
|
||||
expire_in: 1 week
|
||||
|
||||
|
||||
code_quality:
|
||||
image: docker:stable
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
allow_failure: true
|
||||
services:
|
||||
- docker:stable-dind
|
||||
script:
|
||||
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
|
||||
- docker run
|
||||
--env SOURCE_CODE="$PWD"
|
||||
--volume "$PWD":/code
|
||||
--volume /var/run/docker.sock:/var/run/docker.sock
|
||||
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
|
||||
artifacts:
|
||||
paths: [gl-code-quality-report.json]
|
||||
|
||||
|
||||
sast:
|
||||
image: docker:stable
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
allow_failure: true
|
||||
services:
|
||||
- docker:stable-dind
|
||||
script:
|
||||
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
|
||||
- docker run
|
||||
--env SAST_CONFIDENCE_LEVEL="${SAST_CONFIDENCE_LEVEL:-3}"
|
||||
--volume "$PWD:/code"
|
||||
--volume /var/run/docker.sock:/var/run/docker.sock
|
||||
"registry.gitlab.com/gitlab-org/security-products/sast:$SP_VERSION" /app/bin/run /code
|
||||
artifacts:
|
||||
paths: [gl-sast-report.json]
|
||||
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
image: google/cloud-sdk:alpine
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
dependencies:
|
||||
- build:linux
|
||||
- build:windows
|
||||
- build:mac
|
||||
script:
|
||||
- "mkdir $CI_COMMIT_REF_NAME"
|
||||
- "cd $CI_COMMIT_REF_NAME"
|
||||
- "mkdir Windows && mkdir Linux @&& mkdir MacOS"
|
||||
- "cd .."
|
||||
- "mv $VERUS_CLI_WINDOWS_PORTABLE $AGAMA_ARTIFACTS_WINDOWS $CI_COMMIT_REF_NAME/Windows"
|
||||
- "mv $VERUS_CLI_LINUX_PORTABLE $AGAMA_ARTIFACTS_LINUX $CI_COMMIT_REF_NAME/Linux"
|
||||
- "mv $AGAMA_ARTIFACTS_MACOS $VERUS_CLI_MACOS_PORTABLE $CI_COMMIT_REF_NAME/MacOS"
|
||||
- 'echo "$AUTH_KEY" > AUTH_KEY.json'
|
||||
- "gcloud auth activate-service-account --key-file AUTH_KEY.json"
|
||||
- "gsutil rsync -r $CI_COMMIT_REF_NAME/ $STAGING/VerusCoin/$CI_COMMIT_REF_NAME/"
|
||||
|
||||
@@ -27,7 +27,7 @@ matrix:
|
||||
libssl-dev libprotobuf-dev protobuf-compiler libqrencode-dev libdb++-dev software-properties-common
|
||||
libcurl4-openssl-dev curl"
|
||||
PACKAGE_NAME=verus-cli-linux.tar.gz
|
||||
PACKAGING_MATRIX="cp src/komodod src/komodo-cli kmd/linux/verus-cli && chmod -R +x kmd/linux/verus-cli/ && cd kmd/linux && tar -czf $PACKAGE_NAME verus-cli && ls"
|
||||
PACKAGING_MATRIX="cp src/komodod src/komodo-cli kmd/linux/verus-cli && chmod +x kmd/linux/verus-cli/komodod && chmod +x kmd/linux/verus-cli/komodo-cli && cd kmd/linux && tar -czf $PACKAGE_NAME verus-cli && ls"
|
||||
- compiler: ": Windows"
|
||||
env: RUST_TARGET=x86_64-pc-windows-gnu
|
||||
BUILD_SCRIPT=build-win.sh
|
||||
|
||||
3
COPYING
3
COPYING
@@ -1,5 +1,6 @@
|
||||
Copyright (c) 2016-2017 The Zcash developers
|
||||
Copyright (c) 2009-2017 The Bitcoin Core developers
|
||||
Copyright (c) 2018 The VerusCoin 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
|
||||
@@ -31,7 +32,7 @@ OpenSSL Toolkit (https://www.openssl.org/). This product includes cryptographic
|
||||
software written by Eric Young (eay@cryptsoft.com).
|
||||
|
||||
|
||||
Although almost all of the Zcash code is licensed under "permissive" open source
|
||||
Although almost all of the Zcash/Komodo/VerusCoin code is licensed under "permissive" open source
|
||||
licenses, users and distributors should note that when built using the default
|
||||
build options, Zcash depends on Oracle Berkeley DB 6.2.x, which is licensed
|
||||
under the GNU Affero General Public License.
|
||||
|
||||
@@ -13,14 +13,14 @@ pkgconfig_DATA = libzcashconsensus.pc
|
||||
endif
|
||||
|
||||
|
||||
BITCOIND_BIN=$(top_builddir)/src/zcashd$(EXEEXT)
|
||||
BITCOIN_CLI_BIN=$(top_builddir)/src/zcash-cli$(EXEEXT)
|
||||
BITCOIND_BIN=$(top_builddir)/src/komodod$(EXEEXT)
|
||||
BITCOIN_CLI_BIN=$(top_builddir)/src/komodo-cli$(EXEEXT)
|
||||
#WALLET_UTILITY_BIN=$(top_builddir)/src/wallet-utility$(EXEEXT)
|
||||
BITCOIN_WIN_INSTALLER=$(PACKAGE)-$(PACKAGE_VERSION)-win$(WINDOWS_BITS)-setup$(EXEEXT)
|
||||
|
||||
if TARGET_DARWIN
|
||||
OSX_APP=Bitcoin-Qt.app
|
||||
OSX_DMG=Bitcoin-Core.dmg
|
||||
OSX_APP=Agama.app
|
||||
OSX_DMG=Agama.dmg
|
||||
OSX_BACKGROUND_IMAGE=background.tiff
|
||||
OSX_DEPLOY_SCRIPT=$(top_srcdir)/contrib/macdeploy/macdeployqtplus
|
||||
OSX_FANCY_PLIST=$(top_srcdir)/contrib/macdeploy/fancy.plist
|
||||
|
||||
@@ -15,13 +15,12 @@ brew bundle
|
||||
Get all that installed, then run:
|
||||
|
||||
```shell
|
||||
git clone https://github.com/j-cimb-barker/komodo.git
|
||||
cd komodo
|
||||
git checkout dev
|
||||
git clone https://github.com/VerusCoin/VerusCoin.git
|
||||
cd VerusCoin
|
||||
./zcutil/build-mac.sh
|
||||
```
|
||||
|
||||
To build a distributable version of komodo then run the makeDistrib.sh script after building.
|
||||
To build a distributable version of VerusCoin then run the makeReleaseMac.sh script after building. This will fix the dependency references and move the komodod and komodo-cli binaries to the kmd/mac/verus-cli directory along with the 6 libraries required for it to work properly.
|
||||
|
||||
When you are done building, you need to do a few things in the [Configuration](https://github.com/zcash/zcash/wiki/1.0-User-Guide#configuration) section of the Zcash User Guide differently because we are on the Mac. All instances of `~/.zcash` need to be replaced by `~/Library/Application\ Support/Zcash`
|
||||
The fetch-params.sh script, however, has already been altered to fetch the proving keys into the correct directory to conform to Mac specific naming conventions.
|
||||
|
||||
149
README.md
149
README.md
@@ -1,14 +1,17 @@
|
||||
## VerusCoin
|
||||
Verus is a live fork of Komodo, which retains and improves upon its Zcash lineage. Verus will leverage the Komodo platform and dPoW notarization for enhanced security and cross-chain interoperability. At the same time, Verus is a new, mineable and stakeable cryptocurrency of its own. We have added a variation of a zawy12, lwma difficulty algorithm, a new CPU-optimized hash algorithm and a new algorithm for fair proof of stake. We plan to describe these changes and vision going forward in an upcoming white paper.
|
||||
## VerusCoin version 0.3.9-beta
|
||||
VerusCoin is a new, mineable and stakeable cryptocurrency. It is a live fork of Komodo that retains its Zcash lineage and improves it. VerusCoin will leverage the Komodo platform and dPoW notarization for enhanced security and cross-chain interoperability. We have added a variation of a zawy12, lwma difficulty algorithm, a new CPU-optimized hash algorithm and a new algorithm for fair proof of stake. We describe these changes and vision going forward in a [our Phase I white paper](http://185.25.51.16/papers/VerusPhaseI.pdf) and [our Vision](http://185.25.51.16/papers/VerusVision.pdf).
|
||||
- [VerusCoin web site https://veruscoin.io/ Wallets and CLI tools](https://veruscoin.io/)
|
||||
- [VerusCoin Explorer](https://explorer.veruscoin.io/)
|
||||
|
||||
## Komodo with Bitcore
|
||||
This version of Komodo contains Bitcore support for komodo and all its assetchains.
|
||||
|
||||
## Komodod
|
||||
This software is Komodo client, generally you will use this if you want to mine KMD or setup a full node.
|
||||
It downloads and stores the entire history of Komodo transactions; depending on the speed of your computer and network connection, the synchronization process could take a day or more once the blockchain has reached a significant size.
|
||||
This software is the VerusCoin enhanced Komodo client. Generally, you will use this if you want to mine VRSC or setup a full node. When you run the wallet it launches komodod automatically. On first launch it downloads Zcash parameters, roughly 1GB, which is mildly slow.
|
||||
The wallet downloads and stores the block chain or asset chain of the coin you select. It downloads and stores the entire history of the coins transactions; depending on the speed of your computer and network connection, the synchronization process could take a day or more once the blockchain has reached a significant size.
|
||||
|
||||
## Development Resources
|
||||
- VerusCoin:[https://veruscoin.io/](https://veruscoin.io/) Wallets and CLI tools
|
||||
- Komodo Web: [https://komodoplatform.com/](https://komodoplatform.com/)
|
||||
- Organization web: [https://komodoplatform.com/](https://komodoplatform.com/)
|
||||
- Forum: [https://forum.komodoplatform.com/](https://forum.komodoplatform.com/)
|
||||
@@ -52,7 +55,7 @@ sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoco
|
||||
Building
|
||||
--------
|
||||
|
||||
First time you'll need to get assorted startup values downloaded. This takes a moderate amount of time once but then does niot need to be repeated unless you bring a new system up. The command is:
|
||||
First time you'll need to get assorted startup values downloaded. This takes a moderate amount of time once but then does not need to be repeated unless you bring a new system up. The command is:
|
||||
```
|
||||
./zcutil/fetch-params.sh
|
||||
```
|
||||
@@ -69,46 +72,14 @@ Building for Windows:
|
||||
./zcutil/build-win.sh
|
||||
```
|
||||
|
||||
Building
|
||||
--------
|
||||
|
||||
First time you'll need to get assorted startup values downloaded. This takes a moderate amount of time once but then does niot need to be repeated unless you bring a new system up. The command is:
|
||||
```
|
||||
./zcutil/fetch-params.sh
|
||||
```
|
||||
Building for Ubunutu/Mint:
|
||||
```
|
||||
./zcutil/build.sh
|
||||
```
|
||||
Building for Mac OS/X:
|
||||
```
|
||||
./zcutil/build-mac.sh
|
||||
```
|
||||
Building for Windows:
|
||||
```
|
||||
./zcutil/build-win.sh
|
||||
```
|
||||
|
||||
Komodo
|
||||
VerusCoin
|
||||
------
|
||||
We have a release process that goes through several stages before it reaches master. This allows the most conservative users just use the master branch, which is only updated after the other branches have signed off on a release.
|
||||
We develop on dev and some other branches and produce releases of of the master branch, using pull requests to manage what goes into master.
|
||||
|
||||
99% of the activity is in the dev branch, this is where I am testing each change one by one and there are literally thousands of updates. Only use this branch if you really want to be on the bleeding edge. I try to keep things stable, but there are times where necessarily there are bugs in the dev branch, since I am actively developing and debugging here. A good rule is to wait for at least 4 hours from the last update before using the dev branch (unless you know what you are doing)
|
||||
|
||||
After things look good in the dev branch, it is propagated to the beta branch, this is the version the notary nodes use. They are knowledegable command line server guys and so they have a keen eye for anything that wasnt caught during the dev cycle.
|
||||
|
||||
After the notary nodes verify things are working and the latest release is deemed stable, it is propagated to the dPoW branch. From here an automated Jenkins process builds it for all OS, and since the notary nodes are all unix, it is possible for some issues to be caught at this stage. The dPoW branch is what goes into the GUI installers.
|
||||
|
||||
After the GUI are updated and released and it is verified that no significant support issues were created, the master branch is finally updated.
|
||||
|
||||
Master branch: exchanges and users that build from the repo without changing branches
|
||||
dPoW branch: autobuild into GUI installers, unix, osx, windows
|
||||
beta branch: notary nodes, command line unix
|
||||
dev branch: bleeding edge, possibly wont even compile, multiple updates per hour
|
||||
|
||||
```shell
|
||||
git clone https://github.com/jl777/komodo
|
||||
cd komodo
|
||||
git clone https://github.com/VerusCoin/VerusCoin
|
||||
cd VerusCoin
|
||||
#you might want to: git checkout <branch>; git pull
|
||||
./zcutil/fetch-params.sh
|
||||
# -j8 uses 8 threads - replace 8 with number of threads you want to use
|
||||
@@ -116,79 +87,16 @@ cd komodo
|
||||
#This can take some time.
|
||||
```
|
||||
|
||||
**komodo is experimental and a work-in-progress.** Use at your own risk.
|
||||
**The VerusCoin enhanced komodo is experimental and a work-in-progress.** Use at your own risk.
|
||||
|
||||
Deprecation Policy
|
||||
------------------
|
||||
|
||||
This release is considered deprecated one year after the release day. There
|
||||
is an automatic deprecation shutdown feature which will halt the node some
|
||||
time after this one year period. The automatic feature is based on block
|
||||
height and can be explicitly disabled.
|
||||
|
||||
|
||||
# to update an existing version, `git checkout dPoW` if not on that branch already
|
||||
```shell
|
||||
git pull
|
||||
./zcutil/fetch-params.sh
|
||||
./zcutil/build.sh -j8
|
||||
```
|
||||
To reset the blockchain, from *~/.komodo* `rm -rf blocks chainstate debug.log komodostate db.log`
|
||||
|
||||
Create komodo.conf
|
||||
------------------
|
||||
|
||||
```
|
||||
cd ~
|
||||
mkdir .komodo
|
||||
cd .komodo
|
||||
pico komodo.conf
|
||||
#Add the following lines to the komodo.conf file:
|
||||
rpcuser=bitcoinrpc
|
||||
rpcpassword=password
|
||||
txindex=1
|
||||
addnode=5.9.102.210
|
||||
addnode=78.47.196.146
|
||||
addnode=178.63.69.164
|
||||
addnode=88.198.65.74
|
||||
addnode=5.9.122.241
|
||||
addnode=144.76.94.38
|
||||
addnode=89.248.166.91
|
||||
```
|
||||
|
||||
Start mining
|
||||
------------
|
||||
|
||||
```shell
|
||||
#iguana documentation shows how to get the btcpubkey and wifstrs that need to be used
|
||||
#bitcoin also need to be installed with txindex=1 and with rpc enabled
|
||||
cd ~
|
||||
cd komodo
|
||||
#This will return your pubkey eg. "0259e137e5594cf8287195d13aed816af75bd5c04ae673296b51f66e7e8346e8d8" for your address
|
||||
./src/komodo-cli validateaddress <yourwalletaddres>
|
||||
#This will give the privkey of your wallet address
|
||||
./src/komodo-cli dumpprivkey <yourwalletaddres>
|
||||
#This will import the privkey to be sure the mined coins are placed into your wallet address
|
||||
./src/komodo-cli importprivkey <yourwalletprivkey>
|
||||
#To stop the daemon:
|
||||
./src/komodo-cli stop
|
||||
#This starts komodo notary - replace genproclimit with number of threads you want to use and add your pubkey
|
||||
./src/komodod -gen -genproclimit=2 -notary -pubkey="0259e137e5594cf8287195d13aed816af75bd5c04ae673296b51f66e7e8346e8d8" &
|
||||
#This will get the stats:
|
||||
./src/komodo-cli getinfo
|
||||
#To view the process:
|
||||
ps -ef | grep komodod
|
||||
#To stop the daemon:
|
||||
./src/komodo-cli stop
|
||||
|
||||
#To view komodod output:
|
||||
tail -f ~/.komodo/debug.log
|
||||
#To view VRSC output:
|
||||
tail -f ~/.komodo/VRSC/debug.log
|
||||
Note that this directory is correct for Linux, not Mac or Windows
|
||||
#To view all command
|
||||
./src/komodo-cli help
|
||||
ASSETCHAINS: -ac_name=name -ac_supply=nnnnn
|
||||
Both komodod and komodo-cli recognize -ac_name=option so you can create fork from the commandline
|
||||
```
|
||||
=======
|
||||
**Zcash is unfinished and highly experimental.** Use at your own risk.
|
||||
|
||||
Where do I begin?
|
||||
@@ -196,26 +104,8 @@ Where do I begin?
|
||||
We have a guide for joining the main Zcash network:
|
||||
https://github.com/zcash/zcash/wiki/1.0-User-Guide
|
||||
|
||||
### Need Help?
|
||||
* See the documentation at the [Zcash Wiki](https://github.com/zcash/zcash/wiki)
|
||||
for help and more information.
|
||||
* Ask for help on the [Zcash](https://forum.z.cash/) forum.
|
||||
Participation in the Zcash project is subject to a
|
||||
[Code of Conduct](code_of_conduct.md).
|
||||
|
||||
Building
|
||||
--------
|
||||
Build Zcash along with most dependencies from source by running
|
||||
`./zcutil/build.sh`. Currently only Linux is officially supported.
|
||||
|
||||
License
|
||||
-------
|
||||
For license information see the file [COPYING](COPYING).
|
||||
|
||||
**NOTE TO EXCHANGES:**
|
||||
https://bitcointalk.org/index.php?topic=1605144.msg17732151#msg17732151
|
||||
There is a small chance that an outbound transaction will give an error due to mismatched values in wallet calculations. There is a -exchange option that you can run komodod with, but make sure to have the entire transaction history under the same -exchange mode. Otherwise you will get wallet conflicts.
|
||||
|
||||
#Older Komodo Details
|
||||
The remaining text is from the komodo source we forked when creating VerusCoin/Veruscoin.
|
||||
**To change modes:**
|
||||
|
||||
a) backup all privkeys (launch komodod with `-exportdir=<path>` and `dumpwallet`)
|
||||
@@ -273,6 +163,3 @@ Instead of generating 1 secret address, generate 100 and make a script file with
|
||||
./komodo-cli jumblr_secret <addr99>
|
||||
```
|
||||
And make sure to delete all traces of this when the JUMBLR is finished. You will end up with 100 addresses that have an average of 1000 KMD each. So as long as you are careful and dont do a 10,000 KMD transaction (that will link 10 of your secret addresses together), you can appear as 100 different people each with 1000 KMD.
|
||||
|
||||
|
||||
|
||||
|
||||
14
configure.ac
14
configure.ac
@@ -7,16 +7,16 @@ 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)))
|
||||
define(_CLIENT_VERSION_IS_RELEASE, true)
|
||||
define(_COPYRIGHT_YEAR, 2017)
|
||||
AC_INIT([Zcash],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_SUFFIX(_ZC_BUILD_VAL)],[https://github.com/zcash/zcash/issues],[zcash])
|
||||
define(_COPYRIGHT_YEAR, 2018)
|
||||
AC_INIT([Verus-CLI],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_SUFFIX(_ZC_BUILD_VAL)],[https://github.com/VerusCoin/VerusCoin/issues],[verus-cli])
|
||||
AC_CONFIG_SRCDIR([src/main.cpp])
|
||||
AC_CONFIG_HEADERS([src/config/bitcoin-config.h])
|
||||
AC_CONFIG_AUX_DIR([build-aux])
|
||||
AC_CONFIG_MACRO_DIR([build-aux/m4])
|
||||
|
||||
BITCOIN_DAEMON_NAME=zcashd
|
||||
BITCOIN_CLI_NAME=zcash-cli
|
||||
BITCOIN_TX_NAME=zcash-tx
|
||||
BITCOIN_DAEMON_NAME=komodod
|
||||
BITCOIN_CLI_NAME=komodo-cli
|
||||
BITCOIN_TX_NAME=komodo-tx
|
||||
|
||||
dnl Unless the user specified ARFLAGS, force it to be cr
|
||||
AC_ARG_VAR(ARFLAGS, [Flags for the archiver, defaults to <cr> if not set])
|
||||
@@ -232,7 +232,7 @@ CPPFLAGS="$CPPFLAGS -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS"
|
||||
|
||||
AC_ARG_WITH([utils],
|
||||
[AS_HELP_STRING([--with-utils],
|
||||
[build zcash-cli zcash-tx wallet-utility (default=yes)])],
|
||||
[build komodo-cli komodo-tx wallet-utility (default=yes)])],
|
||||
[build_bitcoin_utils=$withval],
|
||||
[build_bitcoin_utils=yes])
|
||||
|
||||
@@ -805,7 +805,7 @@ AC_MSG_CHECKING([whether to build bitcoind])
|
||||
AM_CONDITIONAL([BUILD_BITCOIND], [test x$build_bitcoind = xyes])
|
||||
AC_MSG_RESULT($build_bitcoind)
|
||||
|
||||
AC_MSG_CHECKING([whether to build utils (zcash-cli zcash-tx wallet-utility)])
|
||||
AC_MSG_CHECKING([whether to build utils (komodo-cli komodo-tx wallet-utility)])
|
||||
AM_CONDITIONAL([BUILD_BITCOIN_UTILS], [test x$build_bitcoin_utils = xyes])
|
||||
AC_MSG_RESULT($build_bitcoin_utils)
|
||||
|
||||
|
||||
@@ -1,21 +1,22 @@
|
||||
Source: zcash
|
||||
Source: VerusCoin
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: Zcash Company <team@z.cash>
|
||||
Homepage: https://z.cash
|
||||
Maintainer: VerusCoin <team@z.cash>
|
||||
Homepage: https://veruscoin.io
|
||||
Build-Depends: autoconf, automake, bsdmainutils, build-essential,
|
||||
git, g++-multilib, libc6-dev, libtool,
|
||||
m4, ncurses-dev, pkg-config, python,
|
||||
unzip, wget, zlib1g-dev
|
||||
Vcs-Git: https://github.com/zcash/zcash.git
|
||||
Vcs-Browser: https://github.com/zcash/zcash
|
||||
Vcs-Git: https://github.com/VeruscCoin/VerusCoin.git
|
||||
Vcs-Browser: https://github.com/VerusCoin/VerusCoin
|
||||
|
||||
Package: zcash
|
||||
Package: Verus-CLI
|
||||
Architecture: amd64
|
||||
Depends: ${shlibs:Depends}
|
||||
Description: HTTPS for money.
|
||||
Based on Bitcoin's code, it intends to offer a far higher standard
|
||||
of privacy and anonymity through a sophisticiated zero-knowledge
|
||||
proving scheme which preserves confidentiality of transaction metadata.
|
||||
This package provides the daemon, zcashd, and the CLI tool,
|
||||
zcash-cli, to interact with the daemon.
|
||||
Description: VerusCoin is a new, mineable and stakeable cryptocurrency.
|
||||
It is a live fork of Komodo that retains its Zcash lineage and improves it.
|
||||
VerusCoin will leverage the Komodo platform and dPoW notarization for enhanced security and cross-chain interoperability.
|
||||
We have added a variation of a zawy12, lwma difficulty algorithm, a new CPU-optimized hash algorithm and a new algorithm for fair proof of stake.
|
||||
We describe these changes and vision going forward in a [our Phase I white paper](http://185.25.51.16/papers/VerusPhaseI.pdf) and
|
||||
[our Vision](http://185.25.51.16/papers/VerusVision.pdf).
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
usr/bin/zcashd
|
||||
usr/bin/zcash-cli
|
||||
usr/bin/komodod
|
||||
usr/bin/komodo-cli
|
||||
usr/bin/zcash-fetch-params
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
cp ../src/komodod .
|
||||
cp ../src/komodo-cli .
|
||||
tar -czf kmd.tar.gz komodod komodo-cli verus verusd
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
VerusCoin Command Line Tools v0.3.3-beta
|
||||
VerusCoin Command Line Tools v0.3.9-beta
|
||||
Contents:
|
||||
komodod - VerusCoin's enhanced Komodo daemon
|
||||
komodo-cli - VerusCoin's Komodo command line utility
|
||||
verus - wrapper for komodo-cli that applies the command to the VRSC coin
|
||||
verusd - wrapper for komodod that sets the VerusCoin parameters to defaults properly
|
||||
|
||||
The first time on a new system you will need to run ./fetchparams.sh before using komodod or verusd.
|
||||
On Ubuntu 18 systems you will need to run these two commands before running the command line tools:
|
||||
sudo apt-get install libgconf-2-4
|
||||
sudo apt-get install libcurl3
|
||||
The first time on a new system you will need to run ./fetch-params.sh before using komodod or verusd.
|
||||
|
||||
Run ./verusd to launch komodod, and use ./verus to run commands such as:
|
||||
Run ./verusd to launch komodod, and use verus to run commands such as:
|
||||
./verus stop
|
||||
Which signals komodod (if it is running) to stop running.
|
||||
|
||||
4
kmd/linux/verus-cli/verus
Normal file → Executable file
4
kmd/linux/verus-cli/verus
Normal file → Executable file
@@ -1,7 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
#set working directory to the location of this script
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
cd $DIR
|
||||
|
||||
./komodo-cli -ac_name=VRSC "$@"
|
||||
komodo-cli -ac_name=VRSC "$@"
|
||||
|
||||
5
kmd/linux/verus-cli/verusd
Normal file → Executable file
5
kmd/linux/verus-cli/verusd
Normal file → Executable file
@@ -1,7 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
#set working directory to the location of this script
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
cd $DIR
|
||||
|
||||
./komodod -ac_name=VRSC -ac_algo=verushash -ac_cc=1 -ac_supply=0 -ac_eras=3 -ac_reward=0,38400000000,2400000000 -ac_halving=1,43200,1051920 -ac_decay=100000000,0,0 -ac_end=10080,226080,0 -addnode=185.25.48.236 -addnode=185.64.105.111 -ac_timelockgte=19200000000 -ac_timeunlockfrom=129600 -ac_timeunlockto=1180800 -ac_veruspos=50 -gen -genproclimit=0 "$@"
|
||||
komodod -ac_name=VRSC -ac_algo=verushash -ac_cc=1 -ac_supply=0 -ac_eras=3 -ac_reward=0,38400000000,2400000000 -ac_halving=1,43200,1051920 -ac_decay=100000000,0,0 -ac_end=10080,226080,0 -addnode=185.25.48.236 -addnode=185.64.105.111 -ac_timelockgte=19200000000 -ac_timeunlockfrom=129600 -ac_timeunlockto=1180800 -ac_veruspos=50 -gen -genproclimit=0 "$@"
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
VerusCoin Command Line Tools v0.3.3-beta
|
||||
VerusCoin Command Line Tools v0.3.9-beta
|
||||
Contents:
|
||||
komodod - VerusCoin's enhanced Komodo daemon.
|
||||
komodo-cli - VerusCoin's enhanced Komodo command line utility.
|
||||
verus - wrapper for komodo-cli that applies the command to the VRSC coin
|
||||
verusd - wrapper for komodod that sets the VerusCoin parameters to defaults properly
|
||||
fetch_params.sh - utility to download the zcash parameters needed to start the VerusCoin command line tools and scripts
|
||||
lib*.dylib - assorted dynamic libraries, dependencies needed by fetch-params.sh, komodod and/or komodo-cli
|
||||
|
||||
The first time on a new system you will need to run ./fetchparams.sh before using komodod or verusd.
|
||||
You will need to install xcode from the Apple App Store and run the following two commands before running the command line tools:
|
||||
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||
brew install gcc@5
|
||||
Command line tools are run from the terminal. You can launch the terminal on a Mac by using the Finder, selecting Applications and from that select Utilities, finally selecting Terminal from the Utilities folder.
|
||||
You will need to switch to the directory you extracted the verus-cl into. If you extracted it in the Download folder then the change directory command is
|
||||
cd ~/Downloads/verus-cli
|
||||
The first time on a new system you will need to run ./fetch-params before using komodod or verusd.
|
||||
|
||||
If you already have xcode and brew installed you can skip those.
|
||||
Run ./verusd to launch komodod, and use ./verus to run commands such as:
|
||||
Run ./verusd to launch komodod, and use verus to run commands such as:
|
||||
./verus stop
|
||||
Which signals komodod (if it is running) to stop running.
|
||||
|
||||
@@ -1,165 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
curl "https://z.cash/downloads/sprout-proving.key" -o "$HOME/Library/Application Support/ZcashParams/sprout-proving.key"
|
||||
curl "https://z.cash/downloads/sprout-verifying.key" -o "$HOME/Library/Application Support/ZcashParams/sprout-verifying.key"
|
||||
|
||||
PARAMS_DIR="$HOME/.zcash-params"
|
||||
|
||||
SPROUT_PKEY_NAME='sprout-proving.key'
|
||||
SPROUT_VKEY_NAME='sprout-verifying.key'
|
||||
SPROUT_URL="https://z.cash/downloads"
|
||||
SPROUT_IPFS="/ipfs/QmZKKx7Xup7LiAtFRhYsE1M7waXcv9ir9eCECyXAFGxhEo"
|
||||
|
||||
SHA256CMD="$(command -v sha256sum || echo shasum)"
|
||||
SHA256ARGS="$(command -v sha256sum >/dev/null || echo '-a 256')"
|
||||
|
||||
WGETCMD="$(command -v wget || echo '')"
|
||||
IPFSCMD="$(command -v ipfs || echo '')"
|
||||
|
||||
# fetch methods can be disabled with ZC_DISABLE_SOMETHING=1
|
||||
ZC_DISABLE_WGET="${ZC_DISABLE_WGET:-}"
|
||||
ZC_DISABLE_IPFS="${ZC_DISABLE_IPFS:-}"
|
||||
|
||||
function fetch_wget {
|
||||
if [ -z "$WGETCMD" ] || ! [ -z "$ZC_DISABLE_WGET" ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
local filename="$1"
|
||||
local dlname="$2"
|
||||
|
||||
cat <<EOF
|
||||
|
||||
Retrieving (wget): $SPROUT_URL/$filename
|
||||
EOF
|
||||
|
||||
wget \
|
||||
--progress=dot:giga \
|
||||
--output-document="$dlname" \
|
||||
--continue \
|
||||
--retry-connrefused --waitretry=3 --timeout=30 \
|
||||
"$SPROUT_URL/$filename"
|
||||
}
|
||||
|
||||
function fetch_ipfs {
|
||||
if [ -z "$IPFSCMD" ] || ! [ -z "$ZC_DISABLE_IPFS" ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
local filename="$1"
|
||||
local dlname="$2"
|
||||
|
||||
cat <<EOF
|
||||
|
||||
Retrieving (ipfs): $SPROUT_IPFS/$filename
|
||||
EOF
|
||||
|
||||
ipfs get --output "$dlname" "$SPROUT_IPFS/$filename"
|
||||
}
|
||||
|
||||
function fetch_failure {
|
||||
cat >&2 <<EOF
|
||||
|
||||
Failed to fetch the Zcash zkSNARK parameters!
|
||||
Try installing one of the following programs and make sure you're online:
|
||||
|
||||
* ipfs
|
||||
* wget
|
||||
|
||||
EOF
|
||||
exit 1
|
||||
}
|
||||
|
||||
function fetch_params {
|
||||
local filename="$1"
|
||||
local output="$2"
|
||||
local dlname="${output}.dl"
|
||||
local expectedhash="$3"
|
||||
|
||||
if ! [ -f "$output" ]
|
||||
then
|
||||
for method in wget ipfs failure; do
|
||||
if "fetch_$method" "$filename" "$dlname"; then
|
||||
echo "Download successful!"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
"$SHA256CMD" $SHA256ARGS -c <<EOF
|
||||
$expectedhash $dlname
|
||||
EOF
|
||||
|
||||
# Check the exit code of the shasum command:
|
||||
CHECKSUM_RESULT=$?
|
||||
if [ $CHECKSUM_RESULT -eq 0 ]; then
|
||||
mv -v "$dlname" "$output"
|
||||
else
|
||||
echo "Failed to verify parameter checksums!" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Use flock to prevent parallel execution.
|
||||
function lock() {
|
||||
local lockfile=/tmp/fetch_params.lock
|
||||
# create lock file
|
||||
eval "exec 200>/$lockfile"
|
||||
# acquire the lock
|
||||
flock -n 200 \
|
||||
&& return 0 \
|
||||
|| return 1
|
||||
}
|
||||
|
||||
function exit_locked_error {
|
||||
echo "Only one instance of fetch-params.sh can be run at a time." >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
function main() {
|
||||
|
||||
lock fetch-params.sh \
|
||||
|| exit_locked_error
|
||||
|
||||
cat <<EOF
|
||||
Zcash - fetch-params.sh
|
||||
|
||||
This script will fetch the Zcash zkSNARK parameters and verify their
|
||||
integrity with sha256sum.
|
||||
|
||||
If they already exist locally, it will exit now and do nothing else.
|
||||
EOF
|
||||
|
||||
# Now create PARAMS_DIR and insert a README if necessary:
|
||||
if ! [ -d "$PARAMS_DIR" ]
|
||||
then
|
||||
mkdir -p "$PARAMS_DIR"
|
||||
README_PATH="$PARAMS_DIR/README"
|
||||
cat >> "$README_PATH" <<EOF
|
||||
This directory stores common Zcash zkSNARK parameters. Note that it is
|
||||
distinct from the daemon's -datadir argument because the parameters are
|
||||
large and may be shared across multiple distinct -datadir's such as when
|
||||
setting up test networks.
|
||||
EOF
|
||||
|
||||
# This may be the first time the user's run this script, so give
|
||||
# them some info, especially about bandwidth usage:
|
||||
cat <<EOF
|
||||
The parameters are currently just under 911MB in size, so plan accordingly
|
||||
for your bandwidth constraints. If the files are already present and
|
||||
have the correct sha256sum, no networking is used.
|
||||
|
||||
Creating params directory. For details about this directory, see:
|
||||
$README_PATH
|
||||
|
||||
EOF
|
||||
fi
|
||||
|
||||
cd "$PARAMS_DIR"
|
||||
|
||||
fetch_params "$SPROUT_PKEY_NAME" "$PARAMS_DIR/$SPROUT_PKEY_NAME" "8bc20a7f013b2b58970cddd2e7ea028975c88ae7ceb9259a5344a16bc2c0eef7"
|
||||
fetch_params "$SPROUT_VKEY_NAME" "$PARAMS_DIR/$SPROUT_VKEY_NAME" "4bd498dae0aacfd8e98dc306338d017d9c08dd0918ead18172bd0aec2fc5df82"
|
||||
}
|
||||
|
||||
main
|
||||
rm -f /tmp/fetch_params.lock
|
||||
exit 0
|
||||
|
||||
@@ -1,12 +1,17 @@
|
||||
VerusCoin Command Line Tools v0.3.3-beta
|
||||
VerusCoin Command Line Tools v0.3.9-beta
|
||||
Contents:
|
||||
komodod.exe - VerusCoin's enhanced Komodo daemon
|
||||
komodo-cli.exe - iVerusCoin's Komodo command line utility
|
||||
komodo-cli.exe - VerusCoin's Komodo command line utility
|
||||
verus.bat - wrapper for komodo-cli that applies the command to the VRSC coin
|
||||
verusd.bat - wrapper for komodod that sets the VerusCoin parameters to defaults properly
|
||||
|
||||
The first time on a new system you will need to run ./fetchparams.sh before using komodod or verusd.
|
||||
Many virus scanniong products interfere with the VerusCoin tool's ability to open ports and will need to be configfured to allow what the scanner says is unsafe behavior. Extreme cases can result in the virus scanner deleting Agama.exe or moving it to "protect" the system. You will needs to disable those features and re-extract the verus-cli-windows.zip file if that happens.
|
||||
You need to run a command prompt, for example hit <Ctrl><Esc> and type cmd<Enter>
|
||||
From the command prompt change to the directory where you installed verus-cli. If you downloaded the file to your Downloads directory and extracted it there then the change directory command is
|
||||
cd \Users\MyName\Downloads\verus-cli
|
||||
From this directory you can run the Verus command line utilities.
|
||||
The first time on a new system you will need to run fetch-params before using komodod.exe or verusd.
|
||||
Many anti-virus products interfere with the VerusCoin tool's ability to open ports and will need to be configured to allow what the scanner says is unsafe behavior.
|
||||
Extreme cases can result in the virus scanner deleting Agama.exe or moving it to "protect" the system. You will to add the executables to a whitelist and re-extract the verus-cli-windows.zip file if that happens.
|
||||
Run verusd.bat to launch komodod, and use verus.bat to run commands such as:
|
||||
verus.bat stop
|
||||
Which signals komodod.exe (if it is running) to stop running.
|
||||
|
||||
21
kmd/windows/verus-cli/fetch-params.bat
Normal file
21
kmd/windows/verus-cli/fetch-params.bat
Normal file
@@ -0,0 +1,21 @@
|
||||
@echo off
|
||||
call :GET_CURRENT_DIR
|
||||
cd %THIS_DIR%
|
||||
IF NOT EXIST %APPDATA%\ZcashParams (
|
||||
MKDIR %APPDATA%\ZcashParams
|
||||
)
|
||||
IF NOT EXIST %APPDATA%\ZcashParams\sprout-proving.key (
|
||||
ECHO Downloading Zcash trusted setup sprout-proving.key, this may take a while ...
|
||||
.\wget64.exe --progress=dot:giga --continue --retry-connrefused --waitretry=3 --timeout=30 https://z.cash/downloads/sprout-proving.key -O %APPDATA%\ZcashParams\sprout-proving.key
|
||||
)
|
||||
IF NOT EXIST %APPDATA%\ZcashParams\sprout-verifying.key (
|
||||
ECHO Downloading Zcash trusted setup sprout-verifying.key, this may take a while ...
|
||||
.\wget64.exe --progress=dot:giga --continue --retry-connrefused --waitretry=3 --timeout=30 https://z.cash/downloads/sprout-verifying.key -O %APPDATA%\ZcashParams\sprout-verifying.key
|
||||
)
|
||||
goto :EOF
|
||||
:GET_CURRENT_DIR
|
||||
pushd %~dp0
|
||||
set THIS_DIR=%CD%
|
||||
popd
|
||||
goto :EOF
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
komodo-cli.exe -ac_name=VRSC %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
@goto :EOF
|
||||
|
||||
@:GET_CURRENT_DIR
|
||||
:GET_CURRENT_DIR
|
||||
@pushd %~dp0
|
||||
@set THIS_DIR=%CD%
|
||||
@popd
|
||||
|
||||
BIN
kmd/windows/verus-cli/wget64.exe
Normal file
BIN
kmd/windows/verus-cli/wget64.exe
Normal file
Binary file not shown.
@@ -1,17 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
binaries=("komodo-cli" "komodod")
|
||||
|
||||
for binary in "${binaries[@]}";
|
||||
do
|
||||
# find the dylibs to copy for komodod
|
||||
DYLIBS=`otool -L src/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'`
|
||||
echo "copying $DYLIBS to $src"
|
||||
# copy the dylibs to the srcdir
|
||||
for dylib in $DYLIBS; do cp -rf $dylib src/; done
|
||||
|
||||
# modify komodod to point to dylibs
|
||||
echo "modifying $binary to use local libraries"
|
||||
for dylib in $DYLIBS; do install_name_tool -change $dylib @executable_path/`basename $dylib` src/$binary; done;
|
||||
chmod +x src/$binary
|
||||
done
|
||||
5
makeReleaseLinux.sh
Executable file
5
makeReleaseLinux.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
cp src/komodod src/komodo-cli kmd/linux/verus-cli
|
||||
chmod +x kmd/linux/verus-cli/komodo*
|
||||
chmod +x kmd/linux/verus-cli/veru*
|
||||
68
makeReleaseMac.sh
Executable file
68
makeReleaseMac.sh
Executable file
@@ -0,0 +1,68 @@
|
||||
#!/bin/sh
|
||||
|
||||
KMD_DIR=kmd/mac/verus-cli
|
||||
|
||||
binaries=("komodo-cli" "komodod")
|
||||
alllibs=()
|
||||
for binary in "${binaries[@]}";
|
||||
do
|
||||
# do the work in the destination directory
|
||||
cp src/$binary $KMD_DIR
|
||||
# find the dylibs to copy for komodod
|
||||
DYLIBS=`otool -L $KMD_DIR/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'`
|
||||
echo "copying $DYLIBS to $KMD_DIR"
|
||||
# copy the dylibs to the srcdir
|
||||
for dylib in $DYLIBS; do cp -rf $dylib $KMD_DIR; done
|
||||
done
|
||||
|
||||
libraries=("libgcc_s.1.dylib" "libgomp.1.dylib" "libidn2.0.dylib" "libstdc++.6.dylib")
|
||||
|
||||
for binary in "${libraries[@]}";
|
||||
do
|
||||
# Need to undo this for the dylibs when we are done
|
||||
chmod 755 $KMD_DIR/$binary
|
||||
# find the dylibs to copy for komodod
|
||||
DYLIBS=`otool -L $KMD_DIR/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'`
|
||||
echo "copying $DYLIBS to $KMD_DIR"
|
||||
# copy the dylibs to the srcdir
|
||||
for dylib in $DYLIBS; do cp -rf $dylib $KMD_DIR; alllibs+=($dylib); done
|
||||
done
|
||||
|
||||
indirectlibraries=("libintl.8.dylib" "libunistring.2.dylib")
|
||||
|
||||
for binary in "${indirectlibraries[@]}";
|
||||
do
|
||||
# Need to undo this for the dylibs when we are done
|
||||
chmod 755 src/$binary
|
||||
# find the dylibs to copy for komodod
|
||||
DYLIBS=`otool -L $KMD_DIR/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'`
|
||||
echo "copying indirect $DYLIBS to $KMD_DIR"
|
||||
# copy the dylibs to the dest dir
|
||||
for dylib in $DYLIBS; do cp -rf $dylib $KMD_DIR; alllibs+=($dylib); done
|
||||
done
|
||||
|
||||
for binary in "${binaries[@]}";
|
||||
do
|
||||
# modify komodod to point to dylibs
|
||||
echo "modifying $binary to use local libraries"
|
||||
for dylib in "${alllibs[@]}"
|
||||
do
|
||||
echo "Next lib is $dylib "
|
||||
install_name_tool -change $dylib @executable_path/`basename $dylib` $KMD_DIR/$binary
|
||||
done
|
||||
chmod +x $KMD_DIR/$binary
|
||||
done
|
||||
|
||||
for binary in "${libraries[@]}";
|
||||
do
|
||||
# modify libraries to point to dylibs
|
||||
echo "modifying $binary to use local libraries"
|
||||
for dylib in "${alllibs[@]}"
|
||||
do
|
||||
echo "Next lib is $dylib "
|
||||
install_name_tool -change $dylib @executable_path/`basename $dylib` $KMD_DIR/$binary
|
||||
done
|
||||
chmod +x $KMD_DIR/$binary
|
||||
done
|
||||
|
||||
|
||||
3
makeReleaseWindows.sh
Executable file
3
makeReleaseWindows.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
cp src/komodod.exe src/komodo-cli.exe src/komodo-tx.exe kmd/windows/verus-cli
|
||||
18
requirements-debian.txt
Normal file
18
requirements-debian.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
autoconf
|
||||
automake
|
||||
bsdmainutils
|
||||
build-essential
|
||||
curl
|
||||
g++-multilib
|
||||
git
|
||||
libc6-dev
|
||||
libcurl4-openssl-dev
|
||||
libtool
|
||||
ncurses-dev
|
||||
pkg-config
|
||||
python
|
||||
python-zmq
|
||||
m4
|
||||
unzip
|
||||
wget
|
||||
zlib1g-dev
|
||||
@@ -176,6 +176,8 @@ public:
|
||||
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x88)(0xAD)(0xE4).convert_to_container<std::vector<unsigned char> >();
|
||||
// guarantees the first two characters, when base58 encoded, are "zc"
|
||||
base58Prefixes[ZCPAYMENT_ADDRRESS] = {22,154};
|
||||
// guarantees the first 4 characters, when base58 encoded, are "ZiVK"
|
||||
base58Prefixes[ZCVIEWING_KEY] = {0xA8,0xAB,0xD3};
|
||||
// guarantees the first two characters, when base58 encoded, are "SK"
|
||||
base58Prefixes[ZCSPENDING_KEY] = {171,54};
|
||||
|
||||
@@ -262,15 +264,17 @@ void *chainparams_commandline(void *ptr)
|
||||
checkpointData = //(Checkpoints::CCheckpointData)
|
||||
{
|
||||
boost::assign::map_list_of
|
||||
(0, mainParams.consensus.hashGenesisBlock),
|
||||
//(2500, uint256S("0x0e6a3d5a46eba97c4e7618d66a39f115729e1176433c98481124c2bf733aa54e"))
|
||||
//(15000, uint256S("0x00f0bd236790e903321a2d22f85bd6bf8a505f6ef4eddb20458a65d37e14d142")),
|
||||
//(100000, uint256S("0x0f02eb1f3a4b89df9909fec81a4bd7d023e32e24e1f5262d9fc2cc36a715be6f")),
|
||||
(int64_t)1481120910, // * UNIX timestamp of last checkpoint block
|
||||
(int64_t)110415, // * total number of transactions between genesis and last checkpoint
|
||||
// (the tx=... number in the SetBestChain debug.log lines)
|
||||
(0, mainParams.consensus.hashGenesisBlock)
|
||||
(10000, uint256S("0xac2cd7d37177140ea4991cf630c0b9c7f94d707b84fb0351bf3a44856d2ae5dc"))
|
||||
(20000, uint256S("0xb0e8cb9f77aaa7ff5bd90d6c08d06f4c4bf03e00c2b8a35a042e760845590c8a"))
|
||||
(30000, uint256S("0xf2112ca577338ad7104bf905fa6a63d36b17a86f914c97b73cd31d43fcd7557c"))
|
||||
(40000, uint256S("0x00000000008f83378dab727864b763ce91a4ea5f75d55939c0c1390cfb8c38f1"))
|
||||
(49170, uint256S("0x2add646c0089871ec2379f02f7cd60b3af6efd9c152a6f16fc10925458c270cc")),
|
||||
(int64_t)1529910234, // * UNIX timestamp of last checkpoint block
|
||||
(int64_t)63661, // * total number of transactions between genesis and last checkpoint
|
||||
// (the tx=... number in the SetBestChain debug.log lines)
|
||||
(double)2777 // * estimated number of transactions per day after checkpoint
|
||||
// total number of tx / (checkpoint block height / (24 * 24))
|
||||
// total number of tx / (checkpoint block height / (24 * 24))
|
||||
};
|
||||
|
||||
}
|
||||
@@ -499,6 +503,8 @@ public:
|
||||
base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x04)(0x35)(0x87)(0xCF).convert_to_container<std::vector<unsigned char> >();
|
||||
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x35)(0x83)(0x94).convert_to_container<std::vector<unsigned char> >();
|
||||
base58Prefixes[ZCPAYMENT_ADDRRESS] = {20,81};
|
||||
// guarantees the first 4 characters, when base58 encoded, are "ZiVt"
|
||||
base58Prefixes[ZCVIEWING_KEY] = {0xA8,0xAC,0x0C};
|
||||
base58Prefixes[ZCSPENDING_KEY] = {177,235};
|
||||
|
||||
vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test));
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "uint256.h"
|
||||
#include "util.h"
|
||||
|
||||
#undef __cpuid
|
||||
#include <boost/thread.hpp>
|
||||
#include <boost/tuple/tuple_comparison.hpp>
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#include <map>
|
||||
|
||||
#undef __cpuid
|
||||
#include <boost/thread/mutex.hpp>
|
||||
#include <boost/thread/once.hpp>
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#include "threadsafety.h"
|
||||
|
||||
#undef __cpuid
|
||||
#include <boost/thread/condition_variable.hpp>
|
||||
#include <boost/thread/locks.hpp>
|
||||
#include <boost/thread/mutex.hpp>
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
./komodod -ac_name=VRSC -ac_algo=verushash -ac_cc=1 -ac_veruspos=50 -ac_supply=0 -ac_eras=3 -ac_reward=0,38400000000,2400000000 -ac_halving=1,43200,1051920 -ac_decay=100000000,0,0 -ac_end=10080,226080,0 -ac_timelockgte=19200000000 -ac_timeunlockfrom=129600 -ac_timeunlockto=1180800 -addnode=185.25.48.72 -addnode=185.25.48.236 -addnode=185.64.105.111 "$@"
|
||||
|
||||
#!/bin/bash
|
||||
#set working directory to the location of this script
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
cd $DIR
|
||||
./komodod -ac_name=VRSC -ac_algo=verushash -ac_cc=1 -ac_supply=0 -ac_eras=3 -ac_reward=0,38400000000,2400000000 -ac_halving=1,43200,1051920 -ac_decay=100000000,0,0 -ac_end=10080,226080,0 -addnode=185.25.48.72 -addnode=185.25.48.236 -addnode=185.64.105.111 -ac_timelockgte=19200000000 -ac_timeunlockfrom=129600 -ac_timeunlockto=1180800 -ac_veruspos=50 -gen -genproclimit=0 "$@"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
set -e
|
||||
set -x
|
||||
|
||||
BUILD_PATH="/tmp/zcbuild"
|
||||
PACKAGE_NAME="zcash"
|
||||
BUILD_PATH="/tmp/verus-cli"
|
||||
PACKAGE_NAME="verus-cli"
|
||||
SRC_PATH=`pwd`
|
||||
SRC_DEB=$SRC_PATH/contrib/debian
|
||||
SRC_DOC=$SRC_PATH/doc
|
||||
@@ -17,7 +17,13 @@ if [ ! -d $BUILD_PATH ]; then
|
||||
mkdir $BUILD_PATH
|
||||
fi
|
||||
|
||||
PACKAGE_VERSION=$($SRC_PATH/src/zcashd --version | grep version | cut -d' ' -f4 | tr -d v)
|
||||
## PACKAGE_VERSION=$($SRC_PATH/src/zcashd --version | grep version | cut -d' ' -f4 | tr -d v)
|
||||
## Need version setting from environment
|
||||
|
||||
PACKAGE_VERSION=0.3.9-beta
|
||||
|
||||
##
|
||||
## Also, what does the sed end up doing?
|
||||
DEBVERSION=$(echo $PACKAGE_VERSION | sed 's/-beta/~beta/' | sed 's/-rc/~rc/' | sed 's/-/+/')
|
||||
BUILD_DIR="$BUILD_PATH/$PACKAGE_NAME-$PACKAGE_VERSION-amd64"
|
||||
|
||||
@@ -38,8 +44,12 @@ chmod 0755 -R $BUILD_DIR/*
|
||||
#cp $SRC_DEB/preinst $BUILD_DIR/DEBIAN
|
||||
#cp $SRC_DEB/prerm $BUILD_DIR/DEBIAN
|
||||
# Copy binaries
|
||||
cp $SRC_PATH/src/zcashd $DEB_BIN
|
||||
cp $SRC_PATH/src/zcash-cli $DEB_BIN
|
||||
cp $SRC_PATH/src/komodod $DEB_BIN
|
||||
strip $DEB_BIN/komodod
|
||||
cp $SRC_PATH/src/verusd $DEB_BIN
|
||||
cp $SRC_PATH/src/komodo-cli $DEB_BIN
|
||||
strip $DEB_BIN/komodo-cli
|
||||
cp $SRC_PATH/src/verus $DEB_BIN
|
||||
cp $SRC_PATH/zcutil/fetch-params.sh $DEB_BIN/zcash-fetch-params
|
||||
# Copy docs
|
||||
cp $SRC_PATH/doc/release-notes/release-notes-1.0.0.md $DEB_DOC/changelog
|
||||
@@ -47,8 +57,8 @@ cp $SRC_DEB/changelog $DEB_DOC/changelog.Debian
|
||||
cp $SRC_DEB/copyright $DEB_DOC
|
||||
cp -r $SRC_DEB/examples $DEB_DOC
|
||||
# Copy manpages
|
||||
cp $SRC_DOC/man/zcashd.1 $DEB_MAN
|
||||
cp $SRC_DOC/man/zcash-cli.1 $DEB_MAN
|
||||
cp $SRC_DOC/man/komodod.1 $DEB_MAN
|
||||
cp $SRC_DOC/man/komodo-cli.1 $DEB_MAN
|
||||
cp $SRC_DOC/man/zcash-fetch-params.1 $DEB_MAN
|
||||
# Copy bash completion files
|
||||
cp $SRC_PATH/contrib/zcashd.bash-completion $DEB_CMP/zcashd
|
||||
@@ -56,14 +66,14 @@ cp $SRC_PATH/contrib/zcash-cli.bash-completion $DEB_CMP/zcash-cli
|
||||
# Gzip files
|
||||
gzip --best -n $DEB_DOC/changelog
|
||||
gzip --best -n $DEB_DOC/changelog.Debian
|
||||
gzip --best -n $DEB_MAN/zcashd.1
|
||||
gzip --best -n $DEB_MAN/zcash-cli.1
|
||||
gzip --best -n $DEB_MAN/komodod.1
|
||||
gzip --best -n $DEB_MAN/komodo-cli.1
|
||||
gzip --best -n $DEB_MAN/zcash-fetch-params.1
|
||||
|
||||
cd $SRC_PATH/contrib
|
||||
|
||||
# Create the control file
|
||||
dpkg-shlibdeps $DEB_BIN/zcashd $DEB_BIN/zcash-cli
|
||||
dpkg-shlibdeps $DEB_BIN/komodod $DEB_BIN/komodo-cli
|
||||
dpkg-gencontrol -P$BUILD_DIR -v$DEBVERSION
|
||||
|
||||
# Create the Debian package
|
||||
|
||||
Reference in New Issue
Block a user