@@ -17,13 +17,6 @@ _bitcoin_rpc() {
17
17
$bitcoin_cli " ${rpcargs[@]} " " $@ "
18
18
}
19
19
20
- # Add wallet accounts to COMPREPLY
21
- _bitcoin_accounts () {
22
- local accounts
23
- accounts=$( _bitcoin_rpc listaccounts | awk -F ' "' ' { print $2 }' )
24
- COMPREPLY=( " ${COMPREPLY[@]} " $( compgen -W " $accounts " -- " $cur " ) )
25
- }
26
-
27
20
_bitcoin_cli () {
28
21
local cur prev words=() cword
29
22
local bitcoin_cli
@@ -60,10 +53,9 @@ _bitcoin_cli() {
60
53
if (( cword > 3 )) ; then
61
54
case ${words[cword-3]} in
62
55
addmultisigaddress)
63
- _bitcoin_accounts
64
56
return 0
65
57
;;
66
- getbalance|gettxout|importaddress|importpubkey|importprivkey|listreceivedbyaccount| listreceivedbyaddress|listsinceblock)
58
+ getbalance|gettxout|importaddress|importpubkey|importprivkey|listreceivedbyaddress|listsinceblock)
67
59
COMPREPLY=( $( compgen -W " true false" -- " $cur " ) )
68
60
return 0
69
61
;;
@@ -80,14 +72,10 @@ _bitcoin_cli() {
80
72
COMPREPLY=( $( compgen -W " add remove" -- " $cur " ) )
81
73
return 0
82
74
;;
83
- fundrawtransaction|getblock|getblockheader|getmempoolancestors|getmempooldescendants|getrawtransaction|gettransaction|listaccounts|listreceivedbyaccount| listreceivedbyaddress|sendrawtransaction)
75
+ fundrawtransaction|getblock|getblockheader|getmempoolancestors|getmempooldescendants|getrawtransaction|gettransaction|listreceivedbyaddress|sendrawtransaction)
84
76
COMPREPLY=( $( compgen -W " true false" -- " $cur " ) )
85
77
return 0
86
78
;;
87
- move|setaccount)
88
- _bitcoin_accounts
89
- return 0
90
- ;;
91
79
esac
92
80
fi
93
81
@@ -96,12 +84,11 @@ _bitcoin_cli() {
96
84
_filedir
97
85
return 0
98
86
;;
99
- getaddednodeinfo|getrawmempool|lockunspent|setgenerate )
87
+ getaddednodeinfo|getrawmempool|lockunspent)
100
88
COMPREPLY=( $( compgen -W " true false" -- " $cur " ) )
101
89
return 0
102
90
;;
103
- getaccountaddress|getaddressesbyaccount|getbalance|getnewaddress|getreceivedbyaccount|listtransactions|move|sendfrom|sendmany)
104
- _bitcoin_accounts
91
+ getbalance|getnewaddress|listtransactions|sendmany)
105
92
return 0
106
93
;;
107
94
esac
0 commit comments