-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Network
is not fully descriptive enough
#2169
Comments
I am honored that Mutinynet has caused this issue 😂 I think a simple soultion would just be to make the signet enum variant contain the challenge script |
This might be the right way to go, though it makes the enum non- |
Maybe put it into Also we would have to break |
We could move the |
I've been thinking about it a bit more and I believe it'd be a wrong move to unify them. There are already multiple applications using However there is a legit issue having them separated: multiple methods accept Back to the original issue, neither Possible counterpoint: this is too many structs and applications should just support custom signets and are already broken if they don't. If we were to accept this then custom parameters should live in RantIt really sucks that "signet" is the name used for both "the signet" - global, well-defined signet network, and custom networks. Confusing and annoying to deal with (in code). Also it really sucks you can't just load arbitrary |
Agreed. We have this in Elements (you can use |
Also, I agree with your comments about the relationship between I wonder whether we want a dedicated |
How does this fit in with #1832? In that we add |
Custom signet is the same hrp, only real difference is the network magic and challenge script. For mutinynet we have a different target block time but that's not officially supported by core. |
Unhelpful note: Reminder that this is all caused in the first place by a completely unnecessary complication. There is just one distinction that Bitcoin ecosystem at large really needs to make: is it a real Bitcoin, or is it not. With the exception software connecting with p2p network itself, which are a minority and can handle it separately, like they already do (example: Mutinynet requiring patching / custom args). One bit. We only care about protecting users from loosing real Bitcoin. Any other distinctions are a waste of time. Someone sent testnet BTC to signet wallet? Boohoo. Go to a faucet and try again. Bitcoin community could still migrate to a state where all software is using either mainnet or testnet addresses and constants for everything but p2p, and all wallet/blockchain code in particular could be oblivious to everything but |
Morally I agree with you @dpc. But there are a few things we can help with (and which test networks are hard to use, without):
But I agree we don't need to foreground these and we shouldn't waste API complexity trying to make it easy for people to distinguish between different test networks, or for us to try to exhaustively enumerate all test networks. For test networks we should assume all the constants match testnet (though have some sort of escape hatch) because there's no harm if we're wrong. Maybe we could collapse our network enum into |
If we had such an enum we could also make it exhaustive. We got a lot of pushback on putting |
I really don't like making it non- |
I would really like to have this issue closed for the next release but have no idea how to make forward progress. |
I think replacing |
Ok, this morning (I'm working mornings without internet access) I replaced everything with |
From the description of the issue I don't see how |
@benthecarman if you have the time and the inclination could you please confirm that #2541 solves the issue for Mutiny. (Just a quick "I think so" is fine, thanks.) |
Seems fine to me, using the |
We have added |
Our
Network
enum has a single variant for signet but these days folks are using multiple signets e.g., mutinynet. It would be sweet if we could support this some how.The text was updated successfully, but these errors were encountered: