If no backend is specified, then the backend defaults to JSONRPCDaemon and JSONRPCWallet for Daemon and Wallet, respectively. Also if no backend is specified, then any kwargs passed to Daemon and Wallet initializers will be used to construct a backend with the default JSONRPC- backends. This will make using Daemon and Wallet much more seamless for the user. The following code snippets are functionally identical: Old: ``` from monero.daemon import Daemon from monero.backends.jsonrpc import JSONRPCDaemon daemon1 = Daemon(JSONRPCDaemon()) daemon2 = Daemon(JSONRPCDaemon(host='node.xmr.to')) ``` New: ``` from monero.daemon import Daemon daemon1 = Daemon() daemon2 = Daemon(host='node.xmr.to') ```pull/81/head
parent
047c26686b
commit
e929312e1a
Loading…
Reference in new issue