I am VERY new to programming and have only been programming a couple of months. I decided I would try and finish the GoMiner version of Silentarmy as a project.
I have it finding correct solutions and submitting them but they are getting an Invalid reply. I am pretty sure it is the Extranonce2 arrangement but I have failed to get it to work properly. I have double checked the Solution against known solutions and the program works properly.
The only other area it could be failing is in the difficulty targeting but I am pretty sure it is working properly.
I have tried submitting the Extranonce2 with and without the 12 “0” bytes. Here is an example of the Params received fand the solution that is rejected.
Any help would be appreciated…Thanks in advance
Parameters from Server
2017/03/08 00:12:29 params-1 [cd1f02a90a2b276ffcae 04000000 20d6248dde17eb4d7663a055c4a972706547440bdceafb47ff05511900000000 a3f34f8722f0af6fc0f0d0271533de88eb4fe27d99d843128306d6d285b404f4 0000000000000000000000000000000000000000000000000000000000000000 7da0bf58 c19d001d true]
Solution sent in and is Invalid
t1X2YpJrBZ1beGgkuVEGNQjxG5JLGJVRqJC.go cd1f02a90a2b276ffcae 7da0bf58 0000000000000000000000000000000000000000000000000005c0 005b84e0dd861d64814d508494081cac65eefa10f609efcde74d8658f9f2370501a9fb788a63b179751004009df46cd4af14f1421196f7526ccd33b06e1d3d085847470548c9dd3c30947632cbf68a7b8d3f3e9a0e8671dec9d25946a10f95109f66cac7ac013e559814d39c54faf03603f32f31a499c2336ae34ffd485f1d73614d104f05f6c21b32ac325c2d80c529714b7824133e5c50658b6538c514dbfc3afcadb3d85fb2e600d4cd5177a19f25bff9285831e111b2fec57a71dd169154d5d7ca4555ab98e26e6675f84a0bced1d0c90119b3be83ebd277faa4f04f0936a6fd8bc3ee81071a4d23609c664d774d7b23599fdba6ed0e56cda407015740ac74daff95aaf370e50a4cdd64afe8aba6711b32ccd126cbbf05fee3030139b46601a3ae35903d03a3d237e4031b41ce4f3770cbdb94d612fe7ec1481c52834afd281d8f80fcfaf306e92a3b53a07c0d0a00b638cb70d06a31ec277027383f62a424972cdc654be9aa9eac9d81bb4b27d52413334cda563d3e85fe050ff59f5c3b14ede1bd544dd2aea50e18f45cbc4c0dbdaa93d746895b42ea23440b4c1a1ee36f37bc0f023fbbe3b119de2bc06cf21ade435fa8fcca0ffe193250076c8cde0a5d6168833165c6415b8441fd649423aabbc494ea64c1c01652479eacf1849ecbdfb8fe54a9a6b335e34b1d1d0347df58e3a9f67f19bf953807ccfe245f9f7a1361e720d32a72a984ab3930c3810d2d49d9eb8e4f96d93f912b0adf4745ef61d9a28209843783332f1181d7fc32bd1d491c01691dd0d5270be842cf566dd797addbc2c0d6cbaa0172c912b41a0e3b93c532c9c0a6bcc9221e4acdb6918f47f6264c216bc409601c83f9c45054c1d26d459a8db7184fc12058bf6fc0a1200f34f7a4db91bddc8194991020ff261a344491df8627eee814360458cec677d25ba116010521255d8c919a65a090509c14e16d84335c97870fa42336435fa2dd34f28243e61d3a6b1df31a14fb09011255011ab5436a19e5e89bcfc9822cee14816a25d0c31a02cf8e970011785cb266f086a126df33f50f8e6780925ea13f36db71496cb623e661435594b032ad6a43822b0b495ceaf7e5177de8be42febe826c13983b11366480a3ab5e819b4622a2e548a8ef77731407efe7b4587963277987556aff65fe6b5495275a063ad5dea8a709a5c2c7b7071fc6597ec8f15a9edd3e4bab5c1c93aff113634660ba5ecdbe583973e5f50c3edad2678a3577d10953d707e5a25937ef35abdb26244fe371ea5e8dd55b24230a47120d9eb1f3ef5e08b3894a8e1cd42ff50a6547fc7b7eed69f14e87c219d71d1e11ce0f292fec6200f1d8c6b5621c73db8d09b7cf6e62d93eccd93c81cd5e74d8307f19679ad62e81fc0010ec8d197d40934b5f6290213e62178405074f77d679477193ec7280cad7f60d650cac0a7d653b104bd219d7797f1acd170b666508ea6f92bd3e6508818ebca2090d3065cd2274b024de899394f4d6eb12f2eaa850d49bb6f184f14b41f25dde81e214c08609b197ae6a202bbfdd3ac5b971558b032305fa73ce12b4eaa73b4b00f3d3b5d76a82bc20125e835e0dc7296ae576c6e81773e23dc57460c212968e641e0f1f38849ea2ce9632e4cca3458f477ec77289c4189b5d086ee31c2b74bc8dfae724286f3959cdf28a10c8bb180b426b25554cfbe3e9027c287c4214cb7db4cd4308a0e1be55a2e1b31d5cb2eaf45271bdb5c6357bda0aba25bd5bf4ca17bd3d51b3643898b4a768d866e9115795f375851203b8c8058108bbd009e57b76950c202485869ad351d91e7f12a32db261df38613dbaaf1cf706ba6954ea4be7cf634a5d290f81d65bdfe24e65a3e3a908307e4de96eaced3c6fdb7baaf59d61b1