Craig B Agricola [ARCHIVE] on Nostr: 📅 Original date posted:2012-02-02 📝 Original message:On Thu, Feb 02, 2012 at ...
📅 Original date posted:2012-02-02
📝 Original message:On Thu, Feb 02, 2012 at 09:32:24AM +0100, Michael Gr?nager wrote:
>
> // Register Wallet methods. - note that we don't have any auth, so anyone (on localhost) can read your balance!
> server.registerMethod(method_ptr(new GetBalance(wallet)));
> server.registerMethod(method_ptr(new SendToAddress(wallet)), Auth("username","password"));
> server.registerMethod(method_ptr(new ExtraGetBalance(wallet)));
> server.registerMethod(method_ptr(new ExtraSendToAddress(wallet)), Auth("username","password"));
> server.run();
This should probably be
* server.registerMethod(method_ptr(new ExtraGetBalance(extrawallet)));
* server.registerMethod(method_ptr(new ExtraSendToAddress(extrawallet)), Auth("username","password"));
right? Easy to miss if both wallets were empty in your quick test... Awesome job with libcoin, BTW!
-Craig
📝 Original message:On Thu, Feb 02, 2012 at 09:32:24AM +0100, Michael Gr?nager wrote:
>
> // Register Wallet methods. - note that we don't have any auth, so anyone (on localhost) can read your balance!
> server.registerMethod(method_ptr(new GetBalance(wallet)));
> server.registerMethod(method_ptr(new SendToAddress(wallet)), Auth("username","password"));
> server.registerMethod(method_ptr(new ExtraGetBalance(wallet)));
> server.registerMethod(method_ptr(new ExtraSendToAddress(wallet)), Auth("username","password"));
> server.run();
This should probably be
* server.registerMethod(method_ptr(new ExtraGetBalance(extrawallet)));
* server.registerMethod(method_ptr(new ExtraSendToAddress(extrawallet)), Auth("username","password"));
right? Easy to miss if both wallets were empty in your quick test... Awesome job with libcoin, BTW!
-Craig