Refactoring to prepare multiple DerivationSchemes per store and invoices

This commit is contained in:
nicolas.dorier
2018-01-06 18:57:56 +09:00
parent 2f9afda0ab
commit 781b2885cc
18 changed files with 724 additions and 63 deletions

View File

@@ -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);