bitpay / bitcore

A full stack for bitcoin and blockchain-based applications
https://bitcore.io/
MIT License
4.83k stars 2.08k forks source link

Fix zombie object when deleting a network #3361

Closed SmartArray closed 2 years ago

SmartArray commented 2 years ago

When deleting a network, undefined remains in the map networkMaps.

The following PR https://github.com/bitpay/bitcore/pull/3360 fixes this by utilizing .splice() instead of deleting the object from the array.

kajoseph commented 2 years ago

This was addressed in https://github.com/bitpay/bitcore/pull/3377