From 079f50992f0ee376ee9bc29dad72dc3928c81f2a Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sat, 6 Jan 2018 17:02:06 +0100 Subject: [PATCH] Removed more warnings --- Logic/Cache/GeographyCache.cs | 4 ++-- Logic/Cache/OrganizationCache.cs | 1 + Logic/Financial/HotBitcoinAddress.cs | 2 +- Logic/Financial/HotBitcoinAddresses.cs | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Logic/Cache/GeographyCache.cs b/Logic/Cache/GeographyCache.cs index c08f4b6d..b77779ab 100644 --- a/Logic/Cache/GeographyCache.cs +++ b/Logic/Cache/GeographyCache.cs @@ -80,7 +80,7 @@ namespace Swarmops.Logic.Cache lock (loadCacheLock) { // Prime the cache - BasicGeography partent = GetGeography (parentGeographyId); + GetGeography (parentGeographyId); //TODO: Possible to miss a child geography here if it was added since last cache reload. @@ -100,7 +100,7 @@ namespace Swarmops.Logic.Cache lock (loadCacheLock) { // Prime the cache - BasicGeography partent = GetGeography (parentGeographyId); + GetGeography (parentGeographyId); return GetHashedGeographies()[parentGeographyId].Count - 1; } diff --git a/Logic/Cache/OrganizationCache.cs b/Logic/Cache/OrganizationCache.cs index 17374f2d..483f6140 100644 --- a/Logic/Cache/OrganizationCache.cs +++ b/Logic/Cache/OrganizationCache.cs @@ -178,6 +178,7 @@ namespace Swarmops.Logic.Cache List result = new List(); //Prime the cache + GetOrganization(startOrganizationId); List thisList = organizations[startOrganizationId]; diff --git a/Logic/Financial/HotBitcoinAddress.cs b/Logic/Financial/HotBitcoinAddress.cs index 6a23ed91..0e5f8416 100644 --- a/Logic/Financial/HotBitcoinAddress.cs +++ b/Logic/Financial/HotBitcoinAddress.cs @@ -64,7 +64,7 @@ namespace Swarmops.Logic.Financial derivationPathString = derivationPathString.TrimStart(); string bitcoinAddress = extPubKey.PubKey.GetAddress(Network.Main).ToString(); // TODO: CHANGE NETWORK.MAIN TO NEW LOOKUP - string bitcoinAddressFallback = extPubKey.PubKey.GetAddress(Network.Main).ToString(); // The fallback address would be the main address + // string bitcoinAddressFallback = extPubKey.PubKey.GetAddress(Network.Main).ToString(); // The fallback address would be the main address int hotBitcoinAddressId = SwarmDb.GetDatabaseForWriting() diff --git a/Logic/Financial/HotBitcoinAddresses.cs b/Logic/Financial/HotBitcoinAddresses.cs index 2207bd53..5b76c602 100644 --- a/Logic/Financial/HotBitcoinAddresses.cs +++ b/Logic/Financial/HotBitcoinAddresses.cs @@ -67,7 +67,7 @@ namespace Swarmops.Logic.Financial throw new NotEnoughFundsException("Insufficient funds", "Group argument", new Satoshis (satoshisRequired)); // Serving as a placeholder for now, also testing the notification - throw new NotImplementedException("This fundfinding path is not completed"); // TODO + // throw new NotImplementedException("This fundfinding path is not completed"); // TODO } public Int64 BalanceSatoshisTotal