Add Bitcoin Only Build

This commit is contained in:
XPayServer
2020-07-28 22:48:51 +02:00
parent b7d66efb20
commit 92ae1109d0
41 changed files with 270 additions and 74 deletions

View File

@@ -16,6 +16,7 @@ namespace BTCPayServer
return money.ToDecimal(MoneyUnit.BTC);
case MoneyBag mb:
return mb.Select(money => money.GetValue(network)).Sum();
#if ALTCOINS_RELEASE || DEBUG
case AssetMoney assetMoney:
if (network is ElementsBTCPayNetwork elementsBTCPayNetwork)
{
@@ -24,6 +25,7 @@ namespace BTCPayServer
: 0;
}
throw new NotSupportedException("IMoney type not supported");
#endif
default:
throw new NotSupportedException("IMoney type not supported");
}