From b11d69e13bd9a180af229af2edc82d3123aebd75 Mon Sep 17 00:00:00 2001 From: Marco Granelli Date: Mon, 8 May 2023 18:51:04 +0200 Subject: [PATCH 1/3] Fixes env variable names in docs --- documentation/docs/src/testnets/running-a-full-node.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/docs/src/testnets/running-a-full-node.md b/documentation/docs/src/testnets/running-a-full-node.md index 13e6387fc2..f0db942715 100644 --- a/documentation/docs/src/testnets/running-a-full-node.md +++ b/documentation/docs/src/testnets/running-a-full-node.md @@ -11,11 +11,11 @@ ``` Optional: If you want more logs, you can instead run ```bash -NAMADA_LOG=debug ANOMA_TM_STDOUT=true namada node ledger run +NAMADA_LOG=debug NAMADA_TM_STDOUT=true namada node ledger run ``` And if you want to save your logs to a file, you can instead run: ```bash TIMESTAMP=$(date +%s) -ANOMA_LOG=debug NAMADA_TM_STDOUT=true namada node ledger run &> logs-${TIMESTAMP}.txt +NAMADA_LOG=debug NAMADA_TM_STDOUT=true namada node ledger run &> logs-${TIMESTAMP}.txt tail -f -n 20 logs-${TIMESTAMP}.txt ## (in another shell) ``` \ No newline at end of file From 585da29aa805cd87fd59919320ee2b93e5ed5654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Fri, 12 May 2023 12:55:19 +0200 Subject: [PATCH 2/3] apps/client/utils/init-network: avoid adding tokens to wallet twice --- apps/src/lib/client/utils.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/src/lib/client/utils.rs b/apps/src/lib/client/utils.rs index a73df375b1..9e9da945db 100644 --- a/apps/src/lib/client/utils.rs +++ b/apps/src/lib/client/utils.rs @@ -601,11 +601,10 @@ pub fn init_network( }) } - config.token.iter_mut().for_each(|(name, config)| { + config.token.iter_mut().for_each(|(_name, config)| { if config.address.is_none() { let address = address::gen_established_address("token"); config.address = Some(address.to_string()); - wallet.add_address(name.clone(), address); } if config.vp.is_none() { config.vp = Some("vp_token".to_string()); From 36545224859dc7486a76e298157eab07d821fa86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Fri, 12 May 2023 13:13:17 +0200 Subject: [PATCH 3/3] changelog: add #1362 --- .../unreleased/improvements/1362-init-network-dup-tokens.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .changelog/unreleased/improvements/1362-init-network-dup-tokens.md diff --git a/.changelog/unreleased/improvements/1362-init-network-dup-tokens.md b/.changelog/unreleased/improvements/1362-init-network-dup-tokens.md new file mode 100644 index 0000000000..e3de992cae --- /dev/null +++ b/.changelog/unreleased/improvements/1362-init-network-dup-tokens.md @@ -0,0 +1,2 @@ +- Client/utils: Avoid adding token addresses twice in wallets created for new + networks. ([\#1362](https://github.com/anoma/namada/pull/1362)) \ No newline at end of file