Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/target
/fail
.khost-data
8 changes: 4 additions & 4 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ impl Config {
.with_local_interface(8989);

let origin = Origin::try_new("https://github.com/aspectron/rusty-kaspa", Some("pnn-v1"))?;
let covpp_origin =
Origin::try_new("https://github.com/kaspanet/rusty-kaspa", Some("covpp"))?;
let tn12_origin =
Origin::try_new("https://github.com/kaspanet/rusty-kaspa", Some("tn12"))?;

let kaspad = Network::into_iter()
.map(|network| {
let selected_origin = match network {
Network::Mainnet => origin.clone(),
Network::Testnet10 => origin.clone(),
Network::Testnet12 => covpp_origin.clone(),
Network::Testnet12 => tn12_origin.clone(),
};
kaspad::Config::new(selected_origin.clone(), network)
kaspad::Config::new(selected_origin, network)
})
.collect::<Vec<_>>();

Expand Down
6 changes: 3 additions & 3 deletions src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ where
enum Preset {
PNNv1,
// Delta,
Covpp,
Tn12,
Custom,
}

let preset = if name == "rusty-kaspa" {
cliclack::select(format!("Select git origin for '{name}':"))
.item(Preset::PNNv1, "pnn-v1 (aspectron/pnn-v1)", "")
.item(Preset::Covpp, "covpp (kaspanet/covpp)", "")
.item(Preset::Tn12, "tn12 (kaspanet/tn12)", "")
// .item(
// Preset::Delta,
// "Delta",
Expand All @@ -203,7 +203,7 @@ where
Preset::PNNv1 => {
Origin::try_new("https://github.com/aspectron/rusty-kaspa", Some("pnn-v1"))?
}
Preset::Covpp => Origin::try_new("https://github.com/kaspanet/rusty-kaspa", Some("covpp"))?,
Preset::Tn12 => Origin::try_new("https://github.com/kaspanet/rusty-kaspa", Some("tn12"))?,
// Preset::Delta => {
// Origin::try_new("https://github.com/aspectron/rusty-kaspa", Some("delta"))?
// }
Expand Down
2 changes: 1 addition & 1 deletion src/kaspad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl Config {
let (grpc, wrpc_borsh, wrpc_json) = match network {
Network::Mainnet => (16110, 17110, 18110),
Network::Testnet10 => (16210, 17210, 18210),
Network::Testnet12 => (16311, 17210, 18210),
Network::Testnet12 => (16312, 17312, 18312),
};

Self {
Expand Down