chore/tn-12#3
Conversation
|
New branch name is |
|
@IzioDev why don’t you install VirtualBox with Ubuntu. That would be a proper environment for testing, other than a cheap VM at hetzner. |
|
The problem is the branch name. “covpp” is “some branch”. If another branch appears then we will need to 1) republish khost 2) ask everyone to upgrade vs anyone running khost and it detecting new latest commit hash. so there needs to be an official “tn12” branch that would be pulled into whenever tn12 is updated. also kaspa-resolver needs to be updated before that to support tn12. I saw someone talking about resetting tn12 when sufficient updates come in and thus I think it will be better to hold off. (we do have to ping many ppl to run updates). |
There already is a PR on the resolver: aspectron/kaspa-resolver#5 tn-12 just got reset for information, that's why I posted a comment here. About having a dedicated branch for tn-12, I'll start the discussion. |
|
Thanks for the PR! Built and ran clippy on the branch — both clean. A few findings to flag before merge: 1. Port collision in Network::Mainnet => (16110, 17110, 18110),
Network::Testnet10 => (16210, 17210, 18210),
Network::Testnet12 => (16311, 17210, 18210),
2. No config migration for existing
3.
4. Minor: redundant clone in let selected_origin = match network { … };
kaspad::Config::new(selected_origin.clone(), network)The match arms already produce owned Verified to compile cleanly on:
|
…nore - src/kaspad.rs: tn-12 wrpc-borsh/json ports collided with tn-10 (17210/18210). Use (16312, 17312, 18312) following the netsuffix-numbered pattern. - Use the official `tn12` branch on kaspanet/rusty-kaspa (the `covpp` branch has been removed). Rename Preset::Covpp -> Preset::Tn12 in src/git.rs for consistency. - src/config.rs: drop redundant `.clone()` on selected_origin (match arms already produce owned values). - .gitignore: remove `.khost-data` — code uses `.khost` / `00-khost-dev` per folders.rs.
|
Thanks for the good review and test @demisrael, on it. |
|
Oh I just saw you impl fixes, thanks! ❤️ |
fix tn-12 branch + ports, drop redundant clone, remove .khost-data ignore
* wip * wip: legacy network handling * wip * wip * wip * wip --------- Co-authored-by: IzioDev <9900846+IzioDev@users.noreply.github.com>
| Preset::PNNv1 => { | ||
| Origin::try_new("https://github.com/aspectron/rusty-kaspa", Some("pnn-v1"))? | ||
| } |
There was a problem hiding this comment.
shouldnt we add master here too?
There was a problem hiding this comment.
as discussed, rolled back to aspectron origins: roll back origins to aspectron/*
| Supported(Testnet12) => (16312, 17312, 18312), | ||
| Deprecated(Testnet11) => (16311, 17311, 18311), |
There was a problem hiding this comment.
are these correct ports? looks non canonical
There was a problem hiding this comment.
difficulty is that on kaspad, we use same default ports for tn11 and tn12 (tn11 support has been removed).
khost can have its own independent default ports, they are opaque to clients (because of nginx reverse-proxy).
what ports would you suggest to set here?
There was a problem hiding this comment.
tn11 can keep 310. tn12 probably 410
work in pair with: aspectron/kaspa-resolver#5
I initially didn't want to mess with deprecated network (mostly because impact is a bit wide), but it seemed wrong to stop systemd service on behalf of user operator