3728 | @@ -3727,23 +3729,23 @@ std::unique_ptr<WalletDatabase> MakeWalletDatabase(const std::string& name, cons
3729 | return MakeDatabase(wallet_path, options, status, error_string);
3730 | }
3731 |
3732 | -std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain, const std::string& name, bilingual_str& error, std::vector<bilingual_str>& warnings, uint64_t wallet_creation_flags)
3733 | +std::shared_ptr<CWallet> CWallet::Create(interfaces::Chain& chain, const std::string& name, std::unique_ptr<WalletDatabase> database, uint64_t wallet_creation_flags, bilingual_str& error, std::vector<bilingual_str>& warnings)
ee5bb1bb09d9834edb6cd15d233be504f00615db
Why not take name from database? Is it intentional to allow independent names and filenames?
re: #19619 (review)
ee5bb1b
Why not take name from database? Is it intentional to allow independent names and filenames?
Yes it's intentional. Database objects don't have names. They aren't passed names, can't construct names, and don't need names because they don't need to route GUI or RPC requests, unlike wallet objects.