Sync Wallets Between Nodes

+1 vote

I started learning MC 2.0 I noticed something I'd like to ask about.

My setup: 2 nodes on two different computers running locally.

When I created a new account on one node, I couldn't interact or use the address from the other node unless I imported the address or the wallet.

Is there a way to keep all addresses/wallets synced between the nodes? Or is there a method to add an address to all wallets on all the nodes so the user can interact with the blockchain using any node.

Thank you for your time.

[edit] I tried setting up cluster nodes using -initprivkey. However, when I imported a new account, it wasn't added to the other nodes.
asked Nov 5, 2018 by Houmam Hatahet
edited Nov 7, 2018

1 Answer

+1 vote

I'm afraid there is not currently a way to automatically synchronize wallets between nodes, so this would be a matter of creating something at the application level that uses APIs like dumpprivkey, importprivkey, importaddress, etc... You might also find the createkeypairs API useful to generate a key pair without yet adding it to the wallet.

answered Nov 8, 2018 by MultiChain