diff --git a/README.md b/README.md index 6b4dbf2..4782fc2 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,17 @@ Built with [`logos-module-builder`](https://github.com/logos-co/logos-module-bui nix run ``` -2. Generate a new config using initial peers from the live testnet. Find peers [here](https://www.notion.so/nomos-tech/Logos-Blockchain-Devnet-Lisbon-March-2026-2fe261aa09df8025ad94e380933b4cf9?source=copy_link#319261aa09df80a6ac9bcb7487d14d6a). +2. Generate a new config using initial peers from the live testnet. See the [⚙️ Initialize Your Node](https://github.com/logos-blockchain/logos-blockchain/releases/latest#-initialize-your-node) section of the latest release notes +> Note that what's shown in the release document is a CLI command. +> For the UI's "Initial peers" field, strip everything but the peer addresses themselves (no quotes, brackets, or commas) and paste one per line. +> +> Like so: +> ```text +> /ip4/203.0.113.10/udp/3000/quic-v1/p2p/12D3KooWh82pJGF9p7kpzb6eU326EFZf2cDnimbTFVeJtx1qtBmU +> /ip4/203.0.113.10/udp/3001/quic-v1/p2p/12D3KooWNJAEqN76R7PwPfHt3oWb8R6cKvhgyxQdDn53jFrK6wFx +> /ip4/203.0.113.10/udp/3002/quic-v1/p2p/12D3KooW7RJWhvQBQPEjJmki5fhBboGBWRJhmcFkMvrr4Fu3tMSJ +> /ip4/203.0.113.10/udp/3003/quic-v1/p2p/12D3KooW5EdynMEiYSyiWAH9GpcbHpeUzeSQF9ZY6q4x8AhBskUf +> ``` 3. Start the node and let it sync. Track progress: @@ -28,9 +38,9 @@ nix run watch -n1 'curl -s localhost:8080/cryptarchia/info' ``` -Compare the `height` with the [block explorer](https://devnet.blockchain.logos.co/web/explorer/). +Compare the `height` with the [block explorer](https://testnet.blockchain.logos.co/web/explorer/). -4. Request funds from the [faucet](https://devnet.blockchain.logos.co/web/faucet/) — copy one of the keys from the UI and paste it there. +4. Request funds from the [faucet](https://testnet.blockchain.logos.co/web/faucet/) — copy one of the keys from the UI and paste it there. 5. Once synced, refresh your balance to see your funds. diff --git a/src/BlockchainBackend.cpp b/src/BlockchainBackend.cpp index 158c478..f540484 100644 --- a/src/BlockchainBackend.cpp +++ b/src/BlockchainBackend.cpp @@ -393,17 +393,6 @@ QVariantMap BlockchainBackend::generateConfig( normalized.insert("external_address", externalAddress.trimmed()); if (noPublicIpCheck) normalized.insert("no_public_ip_check", true); - if (deploymentMode == 0) { - QVariantMap deployment; - deployment.insert("well_known_deployment", "devnet"); - normalized.insert("deployment", deployment); - } else if (deploymentMode == 1 - && !deploymentConfigPath.trimmed().isEmpty()) { - QVariantMap deployment; - deployment.insert("config_path", - toLocalPath(deploymentConfigPath.trimmed())); - normalized.insert("deployment", deployment); - } // An explicit node state dir still wins: the module leaves a pinned path // untouched even when use_persistence_paths routing is on. if (!statePath.trimmed().isEmpty()) diff --git a/src/qml/views/GenerateConfigView.qml b/src/qml/views/GenerateConfigView.qml index 80572bb..488a0ac 100644 --- a/src/qml/views/GenerateConfigView.qml +++ b/src/qml/views/GenerateConfigView.qml @@ -35,7 +35,7 @@ ColumnLayout { httpAddrField.text.trim(), externalAddrField.text.trim(), noPublicIpCheckBox.checked, - devnetRadio.checked ? 0 : 1, + defaultNetworkRadioButton.checked ? 0 : 1, customDeploymentField.text.trim(), statePathField.text.trim()) } @@ -166,28 +166,33 @@ ColumnLayout { } RowLayout { Layout.fillWidth: true + Layout.preferredHeight: Math.max(defaultNetworkRadioButton.implicitHeight, + customNetworkRadioButton.implicitHeight, + customDeploymentField.implicitHeight, + browseDeploymentButton.implicitHeight) spacing: Theme.spacing.medium RadioButton { - id: devnetRadio + id: defaultNetworkRadioButton font.pixelSize: Theme.typography.secondaryText palette.windowText: Theme.palette.text checked: true - text: qsTr("Devnet") + text: qsTr("Default") } RadioButton { - id: customRadio + id: customNetworkRadioButton font.pixelSize: Theme.typography.secondaryText palette.windowText: Theme.palette.text text: qsTr("Custom config") } LogosTextField { id: customDeploymentField - visible: customRadio.checked + visible: customNetworkRadioButton.checked Layout.fillWidth: true placeholderText: qsTr("Path to deployment config") } LogosButton { - visible: customRadio.checked + id: browseDeploymentButton + visible: customNetworkRadioButton.checked text: qsTr("Browse") onClicked: deploymentConfigFileDialog.open() } diff --git a/src/qml/views/StatusConfigView.qml b/src/qml/views/StatusConfigView.qml index 4c5b153..53473d2 100644 --- a/src/qml/views/StatusConfigView.qml +++ b/src/qml/views/StatusConfigView.qml @@ -107,7 +107,7 @@ Rectangle { text: (root.useGeneratedConfig && root.deploymentConfig ? root.deploymentConfig : root.useGeneratedConfig ? - qsTr("Devnet (default)") : + qsTr("Default") : (root.deploymentConfig || qsTr("No file selected"))) font.pixelSize: Theme.typography.secondaryText color: Theme.palette.textSecondary