accounts/scwallet: remove selfDerive start from Initialize to avoid goroutine leak

This commit is contained in:
Galoretka 2025-10-13 11:21:33 +03:00 committed by GitHub
parent a3aae29845
commit 84f9c2e68f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -617,7 +617,6 @@ func (w *Wallet) Contains(account accounts.Account) bool {
// Initialize installs a keypair generated from the provided key into the wallet.
func (w *Wallet) Initialize(seed []byte) error {
go w.selfDerive()
// DO NOT lock at this stage, as the initialize
// function relies on Status()
return w.session.initialize(seed)