Skip to content

Commit

Permalink
fix for full nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Dec 5, 2024
1 parent 912e4e1 commit e32e003
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion chain/namada/namada_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ func (n *NamadaNode) CreateContainer(ctx context.Context) error {

mvCmd := "echo 'starting a validator node'"
if !n.Validator {
mvCmd = fmt.Sprintf(`mv %s/wallet.toml %s/%s`, n.HomeDir(), n.HomeDir(), n.Chain.Config().ChainID)
baseDir := fmt.Sprintf("%s/%s", n.HomeDir(), n.Chain.Config().ChainID)
mvCmd = fmt.Sprintf(`mv %s/wallet.toml %s && sed -i 's/127.0.0.1:26657/0.0.0.0:26657/g' %s/config.toml`, n.HomeDir(), baseDir, baseDir)
}

ledgerCmd := fmt.Sprintf(`%s node --base-dir %s ledger`, n.Chain.Config().Bin, n.HomeDir())
Expand Down
4 changes: 2 additions & 2 deletions examples/namada/namada_chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func TestNamadaNetwork(t *testing.T) {
t.Parallel()
client, network := interchaintest.DockerSetup(t)

nv := 1
fn := 0
nv := 2
fn := 1

coinDecimals := namadachain.NamTokenDenom
chains, err := interchaintest.NewBuiltinChainFactory(zaptest.NewLogger(t), []*interchaintest.ChainSpec{
Expand Down

0 comments on commit e32e003

Please sign in to comment.