forked from jl777/komodo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'zcash/master' into rebase
# Conflicts: # README.md # src/Makefile.gtest.include # src/chainparams.cpp # src/init.cpp # src/miner.cpp # src/wallet/wallet.cpp
- Loading branch information
Showing
94 changed files
with
3,459 additions
and
806 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,7 @@ src/qt/test/moc*.cpp | |
*.a | ||
*.pb.cc | ||
*.pb.h | ||
.vscode | ||
|
||
*.log | ||
*.trs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
zcash (1.0.3) jessie; urgency=medium | ||
|
||
* 1.0.3 release. | ||
|
||
-- Zcash Company <[email protected]> Wed, 17 Nov 2016 15:56:00 -0700 | ||
|
||
zcash (1.0.2) jessie; urgency=medium | ||
|
||
* 1.0.2 release. | ||
|
||
-- Zcash Company <[email protected]> Mon, 07 Nov 2016 19:01:35 -0600 | ||
|
||
zcash (1.0.1) jessie; urgency=medium | ||
|
||
* 1.0.1 release. | ||
|
||
-- Zcash Company <[email protected]> Thu, 03 Nov 2016 23:21:09 -0500 | ||
|
||
zcash (1.0.0-sprout) jessie; urgency=medium | ||
|
||
* 1.0.0 release. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
# bash programmable completion for bitcoin-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. | ||
|
||
# call $bitcoin-cli for RPC | ||
_zcash_rpc() { | ||
# determine already specified args necessary for RPC | ||
local rpcargs=() | ||
for i in ${COMP_LINE}; do | ||
case "$i" in | ||
-conf=*|-datadir=*|-regtest|-rpc*|-testnet) | ||
rpcargs=( "${rpcargs[@]}" "$i" ) | ||
;; | ||
esac | ||
done | ||
$bitcoin_cli "${rpcargs[@]}" "$@" | ||
} | ||
|
||
# Add wallet accounts to COMPREPLY | ||
_zcash_accounts() { | ||
local accounts | ||
# Accounts are deprecated in Zcash | ||
#accounts=$(_zcash_rpc listaccounts | awk -F '"' '{ print $2 }') | ||
accounts="\\\"\\\"" | ||
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W "$accounts" -- "$cur" ) ) | ||
} | ||
|
||
_zcash_cli() { | ||
local cur prev words=() cword | ||
local bitcoin_cli | ||
|
||
# save and use original argument to invoke bitcoin-cli for -help, help and RPC | ||
# as bitcoin-cli might not be in $PATH | ||
bitcoin_cli="$1" | ||
|
||
COMPREPLY=() | ||
_get_comp_words_by_ref -n = cur prev words cword | ||
|
||
if ((cword > 5)); then | ||
case ${words[cword-5]} in | ||
sendtoaddress) | ||
COMPREPLY=( $( compgen -W "true false" -- "$cur" ) ) | ||
return 0 | ||
;; | ||
esac | ||
fi | ||
|
||
if ((cword > 4)); then | ||
case ${words[cword-4]} in | ||
importaddress|listtransactions|setban) | ||
COMPREPLY=( $( compgen -W "true false" -- "$cur" ) ) | ||
return 0 | ||
;; | ||
signrawtransaction) | ||
COMPREPLY=( $( compgen -W "ALL NONE SINGLE ALL|ANYONECANPAY NONE|ANYONECANPAY SINGLE|ANYONECANPAY" -- "$cur" ) ) | ||
return 0 | ||
;; | ||
esac | ||
fi | ||
|
||
if ((cword > 3)); then | ||
case ${words[cword-3]} in | ||
addmultisigaddress) | ||
_zcash_accounts | ||
return 0 | ||
;; | ||
getbalance|gettxout|importaddress|importpubkey|importprivkey|listreceivedbyaccount|listreceivedbyaddress|listsinceblock) | ||
COMPREPLY=( $( compgen -W "true false" -- "$cur" ) ) | ||
return 0 | ||
;; | ||
esac | ||
fi | ||
|
||
if ((cword > 2)); then | ||
case ${words[cword-2]} in | ||
addnode) | ||
COMPREPLY=( $( compgen -W "add remove onetry" -- "$cur" ) ) | ||
return 0 | ||
;; | ||
setban) | ||
COMPREPLY=( $( compgen -W "add remove" -- "$cur" ) ) | ||
return 0 | ||
;; | ||
fundrawtransaction|getblock|getblockheader|getmempoolancestors|getmempooldescendants|getrawtransaction|gettransaction|listaccounts|listreceivedbyaccount|listreceivedbyaddress|sendrawtransaction|z_importkey) | ||
COMPREPLY=( $( compgen -W "true false" -- "$cur" ) ) | ||
return 0 | ||
;; | ||
move|setaccount) | ||
_zcash_accounts | ||
return 0 | ||
;; | ||
esac | ||
fi | ||
|
||
case "$prev" in | ||
backupwallet|dumpwallet|importwallet|z_exportwallet|z_importwallet) | ||
_filedir | ||
return 0 | ||
;; | ||
getaddednodeinfo|getrawmempool|lockunspent|setgenerate) | ||
COMPREPLY=( $( compgen -W "true false" -- "$cur" ) ) | ||
return 0 | ||
;; | ||
getaccountaddress|getaddressesbyaccount|getbalance|getnewaddress|getreceivedbyaccount|listtransactions|move|sendfrom|sendmany) | ||
_zcash_accounts | ||
return 0 | ||
;; | ||
esac | ||
|
||
case "$cur" in | ||
-conf=*) | ||
cur="${cur#*=}" | ||
_filedir | ||
return 0 | ||
;; | ||
-datadir=*) | ||
cur="${cur#*=}" | ||
_filedir -d | ||
return 0 | ||
;; | ||
-*=*) # prevent nonsense completions | ||
return 0 | ||
;; | ||
*) | ||
local helpopts commands | ||
|
||
# only parse -help if senseful | ||
if [[ -z "$cur" || "$cur" =~ ^- ]]; then | ||
helpopts=$($bitcoin_cli -help 2>&1 | awk '$1 ~ /^-/ { sub(/=.*/, "="); print $1 }' ) | ||
fi | ||
|
||
# only parse help if senseful | ||
if [[ -z "$cur" || "$cur" =~ ^[a-z] ]]; then | ||
commands=$(_zcash_rpc help 2>/dev/null | awk '$1 ~ /^[a-z]/ { print $1; }') | ||
fi | ||
|
||
COMPREPLY=( $( compgen -W "$helpopts $commands" -- "$cur" ) ) | ||
|
||
# Prevent space if an argument is desired | ||
if [[ $COMPREPLY == *= ]]; then | ||
compopt -o nospace | ||
fi | ||
return 0 | ||
;; | ||
esac | ||
} && | ||
complete -F _zcash_cli zcash-cli | ||
|
||
# Local variables: | ||
# mode: shell-script | ||
# sh-basic-offset: 4 | ||
# sh-indent-comment: t | ||
# indent-tabs-mode: nil | ||
# End: | ||
# ex: ts=4 sw=4 et filetype=sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# bash programmable completion for bitcoin-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. | ||
|
||
_bitcoin_tx() { | ||
local cur prev words=() cword | ||
local bitcoin_tx | ||
|
||
# save and use original argument to invoke bitcoin-tx for -help | ||
# it might not be in $PATH | ||
bitcoin_tx="$1" | ||
|
||
COMPREPLY=() | ||
_get_comp_words_by_ref -n =: cur prev words cword | ||
|
||
case "$cur" in | ||
load=*:*) | ||
cur="${cur#load=*:}" | ||
_filedir | ||
return 0 | ||
;; | ||
*=*) # prevent attempts to complete other arguments | ||
return 0 | ||
;; | ||
esac | ||
|
||
if [[ "$cword" == 1 || ( "$prev" != "-create" && "$prev" == -* ) ]]; then | ||
# only options (or an uncompletable hex-string) allowed | ||
# parse bitcoin-tx -help for options | ||
local helpopts | ||
helpopts=$($bitcoin_tx -help | sed -e '/^ -/ p' -e d ) | ||
COMPREPLY=( $( compgen -W "$helpopts" -- "$cur" ) ) | ||
else | ||
# only commands are allowed | ||
# parse -help for commands | ||
local helpcmds | ||
helpcmds=$($bitcoin_tx -help | sed -e '1,/Commands:/d' -e 's/=.*/=/' -e '/^ [a-z]/ p' -e d ) | ||
COMPREPLY=( $( compgen -W "$helpcmds" -- "$cur" ) ) | ||
fi | ||
|
||
# Prevent space if an argument is desired | ||
if [[ $COMPREPLY == *= ]]; then | ||
compopt -o nospace | ||
fi | ||
|
||
return 0 | ||
} && | ||
complete -F _bitcoin_tx zcash-tx | ||
|
||
# Local variables: | ||
# mode: shell-script | ||
# sh-basic-offset: 4 | ||
# sh-indent-comment: t | ||
# indent-tabs-mode: nil | ||
# End: | ||
# ex: ts=4 sw=4 et filetype=sh |
Oops, something went wrong.