What is Nostr?
Craig B Agricola [ARCHIVE] /
npub1lj5…kq2a
2023-06-07 03:03:25
in reply to nevent1q…dyja

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
Author Public Key
npub1lj56q7c5d4dwq00say35ts92hmn8pe0lh2jj5c23dph236ev0dcsyskq2a