10
10
# spendfrom.py # Lists available funds
11
11
# spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00
12
12
#
13
- # Assumes it will talk to a betad or Beta -Qt running
13
+ # Assumes it will talk to a elementsd or Elements -Qt running
14
14
# on localhost.
15
15
#
16
16
# Depends on jsonrpc
@@ -44,7 +44,7 @@ def determine_db_dir():
44
44
return os .path .expanduser ("~/.bitcoin" )
45
45
46
46
def read_bitcoin_config (dbdir ):
47
- """Read the beta .conf file from dbdir, returns dictionary of settings"""
47
+ """Read the elements .conf file from dbdir, returns dictionary of settings"""
48
48
from ConfigParser import SafeConfigParser
49
49
50
50
class FakeSecHead (object ):
@@ -62,11 +62,11 @@ def readline(self):
62
62
return s
63
63
64
64
config_parser = SafeConfigParser ()
65
- config_parser .readfp (FakeSecHead (open (os .path .join (dbdir , "beta .conf" ))))
65
+ config_parser .readfp (FakeSecHead (open (os .path .join (dbdir , "elements .conf" ))))
66
66
return dict (config_parser .items ("all" ))
67
67
68
68
def connect_JSON (config ):
69
- """Connect to a beta JSON-RPC server"""
69
+ """Connect to a elements JSON-RPC server"""
70
70
testnet = config .get ('testnet' , '0' )
71
71
testnet = (int (testnet ) > 0 ) # 0/1 in config file, convert to True/False
72
72
if not 'rpcport' in config :
@@ -75,7 +75,7 @@ def connect_JSON(config):
75
75
try :
76
76
result = ServiceProxy (connect )
77
77
# ServiceProxy is lazy-connect, so send an RPC command mostly to catch connection errors,
78
- # but also make sure the betad we're talking to is/isn't testnet:
78
+ # but also make sure the elementsd we're talking to is/isn't testnet:
79
79
if result .getmininginfo ()['testnet' ] != testnet :
80
80
sys .stderr .write ("RPC server at " + connect + " testnet setting mismatch\n " )
81
81
sys .exit (1 )
0 commit comments