Closed ogabrielides closed 1 day ago
[!IMPORTANT]
Review skipped
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
The pull request introduces several updates across multiple files, primarily focusing on enhancing the application settings and database initialization. Key changes include the addition of a new dependency in Cargo.toml
, modifications to the AppState
struct to accommodate new settings fields, and updates to the CoreTask
enum and associated methods to handle additional parameters. The database initialization logic is also updated to support a new schema version, including new columns for settings. Overall, these changes enhance the configuration options for the Dash-QT application.
File Path | Change Summary |
---|---|
Cargo.toml |
Added new dependency: rfd = "0.15.1" . |
src/app.rs |
Expanded settings tuple in AppState from three to five elements; updated new method. |
src/backend_task/core/mod.rs |
Updated StartDashQT variant in CoreTask enum to include two new parameters. |
src/backend_task/core/start_dash_qt.rs |
Modified start_dash_qt method to accept new parameters and adjusted logic for starting Dash-Qt. |
src/context.rs |
Updated get_settings method signature to include new fields. |
src/database/initialization.rs |
Incremented DEFAULT_DB_VERSION to 3; added migration logic for new version. |
src/database/settings.rs |
Added methods to update settings and alter the database schema; modified get_settings method. |
src/ui/components/top_panel.rs |
Enhanced add_connection_indicator to utilize new settings for starting DashQT. |
src/ui/network_chooser_screen.rs |
Added new fields to NetworkChooserScreen struct; updated methods to handle custom Dash-QT configurations. |
Cargo.toml
file, specifically adding a new dependency, which is relevant to the main PR's update of dependencies.Cargo.toml
file as well, changing the dash-sdk
dependency, which is related to the dependency management aspect of the main PR.🐇 In the garden of code, we hop with delight,
New paths for Dash-QT, shining so bright.
With settings expanded, our options now bloom,
Custom paths and flags, dispelling the gloom.
So let’s start the journey, with joy we will sing,
For every new feature, a dance of the spring! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai review
I got the same error as Paul. In my case it appears to be because it tried starting Core mainnet even though I have testnet selected in DET (and I already had mainnet running).
@thephez @pauldelucia Addressed the issue. Please check again
The issue before was that mainnet and testnet both use the same dash.conf when you are not overwriting, so it was trying to open the same version of dashcore (testnet or mainnet) twice, so I suggest for this PR or a future PR to disable the network selector when not overwriting, and display a general "start network" button - or something like that.
@pauldelucia @ogabrielides It is possible to run both testnet and mainnet with the same conf file, so having select network is still relevant. One button would just run dash-qt
(mainnet) and the other would run dash-qt -testnet
(starting it in testnet mode). I would rather see the 2 confs in this repo get condensed into one (not in this PR). I believe that unified conf would look like this:
[main]
rpcport=9998
rpcallowip=127.0.0.1/32
rpcuser=dashrpc
rpcpassword=password
server=1
zmqpubrawtxlocksig=tcp://0.0.0.0:23708
zmqpubrawchainlock=tcp://0.0.0.0:23708
[test]
rpcport=19998
rpcallowip=127.0.0.1/32
rpcuser=dashrpc
rpcpassword=password
server=1
zmqpubrawtxlocksig=tcp://0.0.0.0:23709
zmqpubrawchainlock=tcp://0.0.0.0:23709
Oh, perfect. Disregard my previous comment then, and yeah let's do this in another PR. @thephez @ogabrielides
In the Network Chooser Screen, possibility to:
Both settings are persistent in database. Database version was bumped to 3 and migration queries were added.
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Documentation
These updates improve user experience and flexibility when configuring Dash-QT settings.