Major work toward Bitcoin Cash. Donate and Echo are now nonfunctional!

This commit is contained in:
Rick Falkvinge
2017-11-20 14:11:41 +01:00
parent c4a32522c0
commit 4428d5308b
21 changed files with 559 additions and 183 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ namespace Swarmops.Database
}
}
public BasicHotBitcoinAddress GetHotBitcoinAddress(string address)
public BasicHotBitcoinAddress GetHotBitcoinAddress(BitcoinChain chain, string address)
{
using (DbConnection connection = GetMySqlDbConnection())
{
@@ -85,7 +85,7 @@ namespace Swarmops.Database
DbCommand command =
GetDbCommand(
"SELECT" + hotBitcoinAddressFieldSequence + "WHERE AddressString='" + SqlSanitize (address) + "';", connection);
"SELECT" + hotBitcoinAddressFieldSequence + "WHERE BitcoinChainId=" + (Int32) chain + " AND AddressString='" + SqlSanitize (address) + "';", connection);
using (DbDataReader reader = command.ExecuteReader())
{