daemon: add '--no-sync' arg to optionally disable blockchain sync#5195
daemon: add '--no-sync' arg to optionally disable blockchain sync#5195fluffypony merged 1 commit intomonero-project:masterfrom
Conversation
|
Just as an aside, I think this feature could also be used for a "listen-only" mode - i.e., you could imagine a phone wallet / node that has some pruned version of the blockchain (well, enough of it to craft a transaction with enough random inputs). This wallet / node needs to reduce resources, so it could just listen to the network on demand (like, when your standing next to your friend and say "send me some monero") and just scan the txpool. If the daemon sees the transaction, it downloads the block (or just the transaction). This flag is cool because I think it begins to open the idea that you can use the monero daemon to interface with the monero network without requiring a copy of the blockchain. |
|
I would not say this flag is cool. It's more... pragmatic. Ideally it would not exist, because it means your node is useless to the network. It's like adding a broken ring to a chainmain. If you add enough, your chainmail becomes shit and useless. |
| { | ||
| context.m_state = cryptonote_connection_context::state_normal; | ||
| return true; | ||
| } |
There was a problem hiding this comment.
I'm not 100% sure this will be enough, but I suppose we can fix it if/when it pops up.
a54e81e daemon: add '--no-sync' arg to optionally disable blockchain sync (xiphon)
Allows to run a daemon that will connect to other peers, but won't download the blockchain.
Could be used in Monero GUI to find public RPC nodes by exploring P2P peers advertising such a service.
If
--bootstrap-daemon-address autogets implemented, the local daemon will automatically discover public nodes and provide transparent RPC proxy to the wallets.Both CLI and GUI wallets will use automatically discovered public nodes with zero to no additional overhead on the wallet side.
Also
--bootstrap-daemon-address auto --no-syncwill be useful to users who don't want to store the blockchain locally.As well it seems to be useful in conjunction with forthcoming
share-rpcfeature.