You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Am I missing something or it's actually being verified?
At least as of initial research on create_with_params, it initially uses the Network from CreateParams, gets the genesis_hash, and then uses it on DescriptorToExtract and into_wallet_descriptor.
Later on into_wallet_descriptor implementation, it checks the given network with the parsed descriptor here.
I think I got what I was missing, it's indeed not checking the given genesis_hash in CreateParams with the given Network, when it's a None it'll default to the used one from Network, but the problem relies on the explicitly passed as parameter 🤔.
Alright, we'd probably need a new (e.g. NetworkMistach) error variant, but on DescriptorError, as we need to catch this on both wallet creation and loading. We do have a LoadMismatch::Network but it's only when loading from persisted, and checks the network field.
"Consistency between descriptor network and chain genesis hash isn't checked in load_with_params nor in create_with_params."
The text was updated successfully, but these errors were encountered: