go-ethereum/accounts
Daniel Liu aec5f28dab
accounts: fix data race when closing manager #31982 (#1423)
Fixes a data race on the `wallets` slice when closing account Manager.

At the moment, there is a data race between a go-routine calling the
Manager's `Close` function and the background go-routine handling most
operations on the `Manager`. The `Manager`'s `wallets` field is accessed
without proper synchronization.

By moving the closing of wallets from the `Close()` function into the
background thread, this issue can be resolved.

Co-authored-by: Herbert <herbert.jordan.jun@gmail.com>
2025-09-03 15:49:24 +08:00
..
abi accounts/abi: error when packing negative values in unsigned types #31790 (#1422) 2025-09-03 15:48:44 +08:00
keystore cmd/abigen, accounts/abi/bind: implement abigen version 2 #31379 (#1416) 2025-09-03 15:47:12 +08:00
scwallet accounts: avoid duplicate regex compilation (#29943) 2025-01-24 16:54:12 +08:00
usbwallet accounts/usbwallet: full 32bit chainId support for Trezor #17439 (#1419) 2025-09-03 15:48:01 +08:00
accounts.go accounts: fix typo (#1413) 2025-09-03 15:44:49 +08:00
accounts_test.go accounts: run tests in parallel (#28544) 2025-01-24 16:54:12 +08:00
errors.go accounts: fix typo in comments (#24805) 2025-01-24 16:54:11 +08:00
hd.go accounts: fix typo in comments (#24805) 2025-01-24 16:54:11 +08:00
hd_test.go accounts: run tests in parallel (#28544) 2025-01-24 16:54:12 +08:00
manager.go accounts: fix data race when closing manager #31982 (#1423) 2025-09-03 15:49:24 +08:00
sort.go accounts: smartcard wallet without the dependency on libpcsclite (#19273) 2025-01-24 16:18:29 +08:00
url.go accounts: add unit tests for URL (#17182) 2025-01-24 16:18:28 +08:00
url_test.go accounts: add unit tests for URL (#17182) 2025-01-24 16:18:28 +08:00