Debugging
This commit is contained in:
@@ -989,6 +989,8 @@ namespace Swarmops.Backend
|
||||
|
||||
public static void AddBitcoinAddress(string address)
|
||||
{
|
||||
Console.WriteLine(" - request subscribing to address " + address);
|
||||
|
||||
if (_addressLookup == null)
|
||||
{
|
||||
_addressLookup = new SerializableDictionary<string, bool>();
|
||||
@@ -996,6 +998,8 @@ namespace Swarmops.Backend
|
||||
|
||||
if (!_addressLookup.ContainsKey(address))
|
||||
{
|
||||
Console.WriteLine(" -- subscribed");
|
||||
|
||||
JObject json = new JObject();
|
||||
json["op"] = "addr_sub";
|
||||
json["addr"] = address;
|
||||
|
||||
@@ -277,6 +277,8 @@ namespace Swarmops.Frontend.Socket
|
||||
|
||||
public static void AddBitcoinAddress(string address)
|
||||
{
|
||||
Console.WriteLine(" - subscribing to address " + address);
|
||||
|
||||
JObject json = new JObject();
|
||||
json["BackendRequest"] = "AddBitcoinAddress";
|
||||
json["Address"] = address;
|
||||
|
||||
@@ -22,6 +22,8 @@ namespace Swarmops.Frontend.Socket
|
||||
{
|
||||
// Basically just echo whatever's sent here
|
||||
|
||||
Console.WriteLine(" - a client says " + e.Data);
|
||||
|
||||
JObject json = JObject.Parse (e.Data);
|
||||
string serverRequest = (string) json["ServerRequest"];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user