mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-04 14:44:30 +01:00
Refactoring to prepare multiple DerivationSchemes per store and invoices
This commit is contained in:
@@ -11,7 +11,7 @@ namespace BTCPayServer
|
||||
Dictionary<string, BTCPayNetwork> _Networks = new Dictionary<string, BTCPayNetwork>();
|
||||
public BTCPayNetworkProvider(Network network)
|
||||
{
|
||||
if(network == Network.Main)
|
||||
if (network == Network.Main)
|
||||
{
|
||||
Add(new BTCPayNetwork()
|
||||
{
|
||||
@@ -45,6 +45,15 @@ namespace BTCPayServer
|
||||
}
|
||||
}
|
||||
|
||||
[Obsolete("Should not be needed")]
|
||||
public BTCPayNetwork BTC
|
||||
{
|
||||
get
|
||||
{
|
||||
return GetNetwork("BTC");
|
||||
}
|
||||
}
|
||||
|
||||
public void Add(BTCPayNetwork network)
|
||||
{
|
||||
_Networks.Add(network.CryptoCode, network);
|
||||
|
||||
Reference in New Issue
Block a user