This commit is contained in:
Rick Falkvinge
2019-03-04 13:09:45 +01:00
parent c56904b02c
commit b244bdd261
+19 -2
View File
@@ -30,8 +30,8 @@ namespace Swarmops.Logic.Financial
{
Dictionary<BitcoinChain, Int64> result = new Dictionary<BitcoinChain, long>();
result[BitcoinChain.Cash] = ForOrganization(organization, BitcoinChain.Cash).BalanceSatoshisTotal;
result[BitcoinChain.Core] = ForOrganization(organization, BitcoinChain.Core).BalanceSatoshisTotal;
result[BitcoinChain.Cash] = ForOrganization(organization, BitcoinChain.Cash).Unspents.AmountSatoshisTotal;
result[BitcoinChain.Core] = ForOrganization(organization, BitcoinChain.Core).Unspents.AmountSatoshisTotal;
return result;
}
@@ -91,6 +91,23 @@ namespace Swarmops.Logic.Financial
get { return this.Sum (item => item.BalanceSatoshis); }
}
/*
public Int64 BalanceSatoshisTotalByUnspents
{
get
{
Int64 satoshis = 0;
foreach (HotBitcoinAddress address in this)
{
foreach (HotBitcoinAddressUnspent unspent in address.Unspents)
{
}
}
}
}*/
public HotBitcoinAddressUnspents Unspents
{
get