I'm trying to create a middle server to forward cgminer to pool, it's for simple management so that I can put the pool config in the database instead of specify it locally.
From what I understand stratum is just a simple tcp socket protocol. So I build a raw socket server that forward from receiver to sender and the other way around But it seems cgminer doesn't detect it and mark my server as dead
I try call it using telnet from my own computer and run below command
{"id": 1, "method": "mining.subscribe", "params": []}\n
From there I get :
{"result": [[["mining.notify", "0d0900001"], ["mining.set_difficulty", "0d0900002"]], "0d090000", 4], "id": 1, "error": null}
{"params": [1024], "id": null, "method": "mining.set_difficulty"}
And many :
{"params": ["1447854706 16317", "7bbe7cb6862b483658c8c81cb770534dc4fb41d104bb620f0000000000000000", "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff2b039bdc051e4d696e656420627920416e74506f6f6c2075736132132d8eea20564c8272", "ffffffff01cacc5896000000001976a9149524440a5b54cca9c46ef277c34739e9b521856d88ac00000000", ["6661e007e75f062f5f09be48f9a7f13018ad026b6b756010c7b4be7381fa5be7", "046f5cd42ab24f7cddd0ab0f118625651fa4201a75946e6672d24c63fdda526f", "0b1d9b8ee9294ee57c8d2d4520d1df3b08ca8beb89328f4fe685b54b4d31c2c3", "1ae06ceaaa221cc7493bea790c23ec27f2ad3287c269dcaa0205981bb70fb577", "272ab68fa2b615952ce3c4a0c7a64a97abd948224cd4b3dbb711d3b298a9339c", "e4c8da41679876de382d2a1248cac50974e18854d00eeffe5d94ec84f19b7a61", "66c9b892cbc3349952da973498715a5ade73dc83a5ea69601d0445a6a5a18896", "ac69b50f3eda7ae35ed2adbe2a9f31b9865feabae93ffd88d1871acfc0b89ace", "e51dbcc920ccd05ed62f1d4d45f4f5c5cff48e947ce4a9cc778ba848f1b25eb9", "3ba6d5b4b9297a691b43a7937aaffa5019d22629856872a8eac6620cf6b0ff88", "5fbac4a987def9bc6ed93ea3594133e41ed63725047bc9c0a17bdd3992ffde71"], "00000003", "1810b289", "564c8272", false], "id": null, "method": "mining.notify"}
So I thought it should working
Any guide for setting up a forward server ?
Oh I'm using python3 asyncore module