mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 06:21:44 +01:00
Remove reliance on static field
This commit is contained in:
parent
a9252fd741
commit
1ad93838c9
1 changed files with 1 additions and 5 deletions
|
@ -44,13 +44,9 @@ namespace BTCPayServer
|
|||
{
|
||||
public static class Extensions
|
||||
{
|
||||
|
||||
private static readonly ConcurrentDictionary<BTCPayNetwork, DerivationSchemeParser> _derivationSchemeParsers =
|
||||
new();
|
||||
|
||||
public static DerivationSchemeParser GetDerivationSchemeParser(this BTCPayNetwork network)
|
||||
{
|
||||
return _derivationSchemeParsers.GetOrAdd(network, n => new DerivationSchemeParser(n));
|
||||
return new DerivationSchemeParser(n);
|
||||
}
|
||||
|
||||
public static bool TryParseXpub(this DerivationSchemeParser derivationSchemeParser, string xpub,
|
||||
|
|
Loading…
Add table
Reference in a new issue