Commit ea73e3f
Marek Miller
Do not assume that bitcoin.conf file specifies rpcuser
and raise an exception if rpcpassword is not specified.
Comment: You can make RPC calls to bitcoind when bitcoin.conf specifies
just rpcpassword and leaves user name empty. The class bitcoin.rpc.RawProxy
creates keys of the internal dictionary: conf = {}, based on the entries
in the configuration file. Then assumes that the rpcuser key exists and
uses it to create service_url. This results in an error
when bitcoin.conf contains only rcppassword field and the following code
is executed:
> proxy = bitcoin.rpc.RawProxy()1 parent 3d796d8 commit ea73e3f
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
| |||
0 commit comments