Browse Source

no use for setting/getting defaultuser, it just adds confusion.

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
277c917b53
  1. 1
      INSTALL
  2. 2
      src/bitcoinrpc.cpp
  3. 2
      src/bitcoinrpc.h
  4. 6
      src/rpcwallet.cpp

1
INSTALL

@ -14,6 +14,7 @@ libtorrent's.
1) Start with libtorrent: 1) Start with libtorrent:
$ cd libtorrent $ cd libtorrent
$ ./bootstrap.sh
$ ./configure --enable-logging --enable-debug --enable-dht $ ./configure --enable-logging --enable-debug --enable-dht
Note1: 64-bit systems may need "--with-boost-libdir=/usr/lib64" Note1: 64-bit systems may need "--with-boost-libdir=/usr/lib64"

2
src/bitcoinrpc.cpp

@ -255,8 +255,6 @@ static const CRPCCommand vRPCCommands[] =
{ "getfollowing", &getfollowing, false, true }, { "getfollowing", &getfollowing, false, true },
{ "getlasthave", &getlasthave, false, true }, { "getlasthave", &getlasthave, false, true },
{ "listusernamespartial", &listusernamespartial, false, true }, { "listusernamespartial", &listusernamespartial, false, true },
{ "getdefaultuser", &getdefaultuser, false, true },
{ "setdefaultuser", &setdefaultuser, false, true },
{ "rescandirectmsgs", &rescandirectmsgs, false, true }, { "rescandirectmsgs", &rescandirectmsgs, false, true },
}; };

2
src/bitcoinrpc.h

@ -207,8 +207,6 @@ extern json_spirit::Value unfollow(const json_spirit::Array& params, bool fHelp)
extern json_spirit::Value getfollowing(const json_spirit::Array& params, bool fHelp); extern json_spirit::Value getfollowing(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value getlasthave(const json_spirit::Array& params, bool fHelp); extern json_spirit::Value getlasthave(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value listusernamespartial(const json_spirit::Array& params, bool fHelp); extern json_spirit::Value listusernamespartial(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value getdefaultuser(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value setdefaultuser(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value rescandirectmsgs(const json_spirit::Array& params, bool fHelp); extern json_spirit::Value rescandirectmsgs(const json_spirit::Array& params, bool fHelp);
#endif #endif

6
src/rpcwallet.cpp

@ -153,6 +153,10 @@ Value listwalletusers(const Array& params, bool fHelp)
return ret; return ret;
} }
/* [mf] no use for setting/getting defaultuser, it just adds confusion.
all commands should receive user as parameter (including the user for spammsg).
*/
#if 0
Value setdefaultuser(const Array& params, bool fHelp) Value setdefaultuser(const Array& params, bool fHelp)
{ {
if (fHelp || params.size() != 1) if (fHelp || params.size() != 1)
@ -199,7 +203,7 @@ Value getdefaultuser(const Array& params, bool fHelp)
return username; return username;
} }
#endif
Value signmessage(const Array& params, bool fHelp) Value signmessage(const Array& params, bool fHelp)
{ {

Loading…
Cancel
Save