Skip to content

#397: Replace singletons with @functools.lru_cache() decorator

Moul requested to merge 397_rm_singleton into main
  • Replace BlockchainParams() singleton with @functools.lru_cache()
  • Replace HeadBlock() singleton with @functools.lru_cache()
  • Replace UDValue() singleton with @functools.lru_cache()
  • Replace CurrencySymbol() singleton with @functools.lru_cache()
  • Replace ClientInstance() singleton with @functools.lru_cache()

Close #397 (closed).

Edited by Moul

Merge request reports