@@ -25,7 +25,7 @@ class BitcoinAPI
25
25
26
26
public:
27
27
/* === Constructor and Destructor === */
28
- BitcoinAPI (const std::string& user, const std::string& password, const std::string& host, int port, int httpTimeout);
28
+ BitcoinAPI (const std::string& user, const std::string& password, const std::string& host, int port, int httpTimeout = 50000 );
29
29
~BitcoinAPI ();
30
30
31
31
/* === Auxiliary functions === */
@@ -53,7 +53,7 @@ class BitcoinAPI
53
53
std::string dumpprivkey (const std::string& bitcoinaddress);
54
54
void importprivkey (const std::string& bitcoinprivkey);
55
55
void importprivkey (const std::string& bitcoinprivkey, const std::string& label, bool rescan = true );
56
- void importAddress (const std::string& address, const std::string& account, bool rescan);
56
+ void importaddress (const std::string& address, const std::string& account, bool rescan = true );
57
57
58
58
std::string addmultisigaddress (int nrequired, const std::vector<std::string>& keys);
59
59
std::string addmultisigaddress (int nrequired, const std::vector<std::string>& keys, const std::string& account);
@@ -74,8 +74,7 @@ class BitcoinAPI
74
74
75
75
/* === Accounting === */
76
76
double getbalance ();
77
- double getbalance (const std::string& account, int minconf = 1 );
78
- double getbalance (const std::string& account, int minconf = 1 , bool includeWatchOnly = false );
77
+ double getbalance (const std::string& account, int minconf = 1 , bool includewatchonly = false );
79
78
double getunconfirmedbalance ();
80
79
81
80
double getreceivedbyaccount (const std::string& account, int minconf = 1 );
0 commit comments