-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persist network_id
with ~/.kindelia/state
and check on start
#163
Comments
how should it be persisted? I'm thinking something like: ~/.kindelia/state/<network_id>/{blocks,heaps} That way, state for various networks can be stored side by side. And the active network_id can be selected from the config file. |
That's sensible. I was thinking of just storing it and showing an error when the persisted state is incompatible with the current network id and prompting the user to remove it. That's more useful — much easier to switch between networks. We can even have config like this:
Do you intend to work on it? btw, are you on our Discord server? can you DM me? |
yeah, I can take a stab at it. I'll sign up for discord later today. |
Addresses kindelia#163 Previously chain state was stored under a path such as: ~/.kindelia/state/{blocks,heaps} With this change, the data is stored at: ~/.kindelia/state/<network_id>/{blocks,heaps} This enables for example flipping back and forth between a testnet and mainnet just by changing network_id in the config, or even via cli arg.
Addresses kindelia#163 node.network setting is now specified on a per network basis, eg: [node.network.0xCAFE0004] initial_peers = [ "64.227.110.69", "188.166.3.140", ] [node.network.0xCAFE0005] initial_peers = [ ... ] Additionally: * updated default.toml to use the new config syntax * AppSettings::prop is now a String instead of &'static str * fixed a typo in error string
@steinerkelvin I sent you an email... discord signup failed. |
Addresses kindelia#163 Previously chain state was stored under a path such as: ~/.kindelia/state/{blocks,heaps} With this change, the data is stored at: ~/.kindelia/state/<network_id>/{blocks,heaps} This enables for example flipping back and forth between a testnet and mainnet just by changing network_id in the config, or even via cli arg.
Addresses kindelia#163 node.network setting is now specified on a per network basis, eg: [node.network.0xCAFE0004] initial_peers = [ "64.227.110.69", "188.166.3.140", ] [node.network.0xCAFE0005] initial_peers = [ ... ] Additionally: * updated default.toml to use the new config syntax * AppSettings::prop is now a String instead of &'static str * fixed a typo in error string
Addresses kindelia#163 Previously chain state was stored under a path such as: ~/.kindelia/state/{blocks,heaps} With this change, the data is stored at: ~/.kindelia/state/<network_id>/{blocks,heaps} This enables for example flipping back and forth between a testnet and mainnet just by changing network_id in the config, or even via cli arg.
Addresses kindelia#163 Previously chain state was stored under a path such as: ~/.kindelia/state/{blocks,heaps} With this change, the data is stored at: ~/.kindelia/state/<network_id>/{blocks,heaps} This enables for example flipping back and forth between a testnet and mainnet just by changing network_id in the config, or even via cli arg.
Addresses kindelia#163 Previously chain state was stored under a path such as: ~/.kindelia/state/{blocks,heaps} With this change, the data is stored at: ~/.kindelia/state/<network_id>/{blocks,heaps} This enables for example flipping back and forth between a testnet and mainnet just by changing network_id in the config, or even via cli arg.
Addresses kindelia#163 Previously chain state was stored under a path such as: ~/.kindelia/state/{blocks,heaps} With this change, the data is stored at: ~/.kindelia/state/<network_id>/{blocks,heaps} This enables for example flipping back and forth between a testnet and mainnet just by changing network_id in the config, or even via cli arg.
Addresses kindelia#163 Previously chain state was stored under a path such as: ~/.kindelia/state/{blocks,heaps} With this change, the data is stored at: ~/.kindelia/state/<network_id>/{blocks,heaps} This enables for example flipping back and forth between a testnet and mainnet just by changing network_id in the config, or even via cli arg.
Addresses kindelia#163 Previously chain state was stored under a path such as: ~/.kindelia/state/{blocks,heaps} With this change, the data is stored at: ~/.kindelia/state/<network_id>/{blocks,heaps} This enables for example flipping back and forth between a testnet and mainnet just by changing network_id in the config, or even via cli arg.
No description provided.
The text was updated successfully, but these errors were encountered: