Skip to content
Permalink
Browse files

debian

  • Loading branch information...
bitzec committed Aug 29, 2018
1 parent 22ea17d commit 199e387f91efb3bace91627f68169a24bbe11740
@@ -1,8 +1,8 @@
<!--- Remove text and sections that do not apply -->

This issue tracker is only for technical issues related to zcashd.
This issue tracker is only for technical issues related to bitzecd.

General Zcash questions and/or support requests and are best directed to the [Zcash Forums](https://forum.z.cash) or [Community Rocket.Chat](https://chat.zcashcommunity.com).
General bitzec questions and/or support requests and are best directed to the Forums

For reporting security vulnerabilities or for sensitive discussions with our security team, please contact [security@z.cash](mailto:security@z.cash). You can use the [GPG key](https://z.cash/gpg-pubkeys/security.asc) (fingerprint: `AF85 0445 546C 18B7 86F9 2C62 88FB 8B86 D8B5 A68C`) to send an encrypted message. The key and fingerprint are duplicated on our [Public Keys page](https://z.cash/support/pubkeys.html).

@@ -21,8 +21,8 @@ Tell us what should happen
### Actual behaviour + errors
Tell us what happens instead including any noticable error output (any messages displayed on-screen when e.g. a crash occurred)

### The version of Zcash you were using:
Run `zcashd --version` to find out
### The version of bitzec you were using:
Run `bitzecd --version` to find out

### Machine specs:
- OS name + version:
@@ -1,4 +1,4 @@
Building bitzec
Building Bitzec

See the Zcash github wiki (https://github.com/zcash/zcash/wiki) for instructions on building zcashd,
the intended-for-services, no-graphical-interface, reference
@@ -11,7 +11,7 @@


if rpcpass == "":
access = ServiceProxy("http://127.0.0.1:8233")
access = ServiceProxy("http://127.0.0.1:8232")
else:
access = ServiceProxy("http://"+rpcuser+":"+rpcpass+"@127.0.0.1:8233")
cmd = sys.argv[1].lower()
@@ -1,4 +1,4 @@
# bash programmable completion for zcash-cli(1)
# bash programmable completion for bitzec-cli(1)
# Copyright (c) 2012-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
@@ -31,8 +31,8 @@ _bitzec_cli() {
local bitzec_cli

# save and use original argument to invoke bitzec-cli for -help, help and RPC
# as zcash-cli might not be in $PATH
zcash_cli="$1"
# as bitzec-cli might not be in $PATH
bitzec_cli="$1"

COMPREPLY=()
_get_comp_words_by_ref -n = cur prev words cword
@@ -149,7 +149,7 @@ _bitzec_cli() {
;;
esac
} &&
complete -F _zcash_cli zcash-cli
complete -F _bitzec_cli bitzec-cli

# Local variables:
# mode: shell-script
@@ -1,15 +1,15 @@
# bash programmable completion for zcash-tx(1)
# bash programmable completion for bitzec-tx(1)
# Copyright (c) 2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

_zcash_tx() {
_bitzec_tx() {
local cur prev words=() cword
local zcash_tx
local bitzec_tx

# save and use original argument to invoke zcash-tx for -help
# save and use original argument to invoke bitzec-tx for -help
# it might not be in $PATH
zcash_tx="$1"
bitzec_tx="$1"

COMPREPLY=()
_get_comp_words_by_ref -n =: cur prev words cword
@@ -27,15 +27,15 @@ _zcash_tx() {

if [[ "$cword" == 1 || ( "$prev" != "-create" && "$prev" == -* ) ]]; then
# only options (or an uncompletable hex-string) allowed
# parse zcash-tx -help for options
# parse bitzec-tx -help for options
local helpopts
helpopts=$($zcash_tx -help | sed -e '/^ -/ p' -e d )
helpopts=$($bitzec_tx -help | sed -e '/^ -/ p' -e d )
COMPREPLY=( $( compgen -W "$helpopts" -- "$cur" ) )
else
# only commands are allowed
# parse -help for commands
local helpcmds
helpcmds=$($zcash_tx -help | sed -e '1,/Commands:/d' -e 's/=.*/=/' -e '/^ [a-z]/ p' -e d )
helpcmds=$($bitzec_tx -help | sed -e '1,/Commands:/d' -e 's/=.*/=/' -e '/^ [a-z]/ p' -e d )
COMPREPLY=( $( compgen -W "$helpcmds" -- "$cur" ) )
fi

@@ -46,7 +46,7 @@ _zcash_tx() {

return 0
} &&
complete -F _zcash_tx zcash-tx
complete -F _bitzec_tx bitzec-tx

# Local variables:
# mode: shell-script
@@ -1,16 +1,16 @@
# bash programmable completion for zcashd(1)
# bash programmable completion for bitzecd(1)
# Copyright (c) 2012-2017 The Bitcoin Core developers
# Copyright (c) 2016-2017 The Zcash developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

_bitzecd() {
local cur prev words=() cword
local zcashd
local bitzecd

# save and use original argument to invoke bitzecd for -help
# it might not be in $PATH
bitcoinzd="$1"
bitzecd="$1"

COMPREPLY=()
_get_comp_words_by_ref -n = cur prev words cword
@@ -8,12 +8,12 @@ Build-Depends: autoconf, automake, bsdmainutils, build-essential,
m4, ncurses-dev, pkg-config, python,
unzip, wget, zlib1g-dev
Vcs-Git: https://github.com/bitzec/bitzec.git
Vcs-Browser: https://github.com/bitzec/bitzec
Vcs-Browser: https://github.com/bitzec

Package: bitzec
Architecture: amd64
Depends: ${shlibs:Depends}
Description: HTTPS for money.
Description:
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.
@@ -57,7 +57,7 @@
#maxconnections=

#
# JSON-RPC options (for controlling a running Zcash/zcashd process)
# JSON-RPC options (for controlling a running Bitzec/bitzecd process)
#

# server=1 tells bitzecd to accept JSON-RPC commands (set as default if not specified)
@@ -53,7 +53,7 @@
CPPFILT_CMD = os.getenv('CPPFILT', '/usr/bin/c++filt')
# Allowed NEEDED libraries
ALLOWED_LIBRARIES = {
# zcashd
# bitzecd
'libgcc_s.so.1', # GCC base support
'libc.so.6', # C library
'libstdc++.so.6', # C++ standard library
@@ -1,21 +1,21 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3.
.TH ZCASH-CLI "1" "August 2018" "zcash-cli v2.0.0" "User Commands"
.TH ZCASH-CLI "1" "August 2018" "bitzec-cli v2.0.0" "User Commands"
.SH NAME
zcash-cli \- manual page for zcash-cli v2.0.0
bitzec-cli \- manual page for bitzec-cli v2.0.0
.SH DESCRIPTION
Zcash RPC client version v2.0.0
.PP
In order to ensure you are adequately protecting your privacy when using Zcash,
In order to ensure you are adequately protecting your privacy when using Bitzec,
please see <https://z.cash/support/security/>.
.SS "Usage:"
.TP
zcash\-cli [options] <command> [params]
Send command to Zcash
bitzec\-cli [options] <command> [params]
Send command to Bitzec
.TP
zcash\-cli [options] help
bitzec\-cli [options] help
List commands
.TP
zcash\-cli [options] help <command>
bitzec\-cli [options] help <command>
Get help for a command
.SH OPTIONS
.HP
@@ -47,7 +47,7 @@ Send commands to node running on <ip> (default: 127.0.0.1)
.HP
\fB\-rpcport=\fR<port>
.IP
Connect to JSON\-RPC on <port> (default: 8232 or testnet: 18232)
Connect to JSON\-RPC on <port> (default: 8233 or testnet: 18232)
.HP
\fB\-rpcwait\fR
.IP
@@ -1,15 +1,15 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3.
.TH ZCASH-TX "1" "August 2018" "zcash-tx v2.0.0" "User Commands"
.TH ZCASH-TX "1" "August 2018" "bitzec-tx v2.0.0" "User Commands"
.SH NAME
zcash-tx \- manual page for zcash-tx v2.0.0
zcash-tx \- manual page for bitzec-tx v2.0.0
.SH DESCRIPTION
Zcash zcash\-tx utility version v2.0.0
Bitzec bitzec\-tx utility version v2.0.0
.SS "Usage:"
.TP
zcash\-tx [options] <hex\-tx> [commands]
Update hex\-encoded zcash transaction
bitzec\-tx [options] <hex\-tx> [commands]
Update hex\-encoded bitzec transaction
.TP
zcash\-tx [options] \fB\-create\fR [commands]
bitzec\-tx [options] \fB\-create\fR [commands]
Create hex\-encoded zcash transaction
.SH OPTIONS
.HP
@@ -7,7 +7,7 @@

#include "tinyformat.h"

const std::string CURRENCY_UNIT = "ZEC";
const std::string CURRENCY_UNIT = "BZC";

CFeeRate::CFeeRate(const CAmount& nFeePaid, size_t nSize)
{
@@ -52,10 +52,11 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead

arith_uint256 bnAvg {bnTot / params.nPowAveragingWindow};

return CalculateNextWorkRequired(bnAvg, pindexLast->GetMedianTimePast(), pindexFirst->GetMedianTimePast(), params);
return ZC_CalculateNextWorkRequired(bnAvg, pindexLast->GetMedianTimePast(), pindexFirst->GetMedianTimePast(), params);
}

unsigned int CalculateNextWorkRequired(arith_uint256 bnAvg,
//Original Zcash work calculation
unsigned int ZC_CalculateNextWorkRequired(arith_uint256 bnAvg,
int64_t nLastBlockTime, int64_t nFirstBlockTime,
const Consensus::Params& params)
{
@@ -17,7 +17,10 @@ class uint256;
class arith_uint256;

unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params&);
unsigned int CalculateNextWorkRequired(arith_uint256 bnAvg,
unsigned int LwmaGetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params& params);
unsigned int LwmaCalculateNextWorkRequired(const CBlockIndex* pindexLast, const Consensus::Params& params);
unsigned int ZC_GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params&);
unsigned int ZC_CalculateNextWorkRequired(arith_uint256 bnAvg,
int64_t nLastBlockTime, int64_t nFirstBlockTime,
const Consensus::Params&);

0 comments on commit 199e387

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.