Skip to content

Commit

Permalink
[kv store] explicitly disable for testnet (#19426)
Browse files Browse the repository at this point in the history
## Description 

disable kv store for testnet

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
  • Loading branch information
phoenix-o authored Sep 18, 2024
1 parent 30048a0 commit d12505f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/sui-node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1929,9 +1929,8 @@ fn build_kv_store(

let network_str = match state.get_chain_identifier().map(|c| c.chain()) {
Some(Chain::Mainnet) => "/mainnet",
Some(Chain::Testnet) => "/testnet",
_ => {
info!("using local db only for kv store for unknown chain");
info!("using local db only for kv store");
return Ok(Arc::new(db_store));
}
};
Expand Down

0 comments on commit d12505f

Please sign in to comment.