vagabondan / CoiniumServ

NOTE: No plans to return to this project because I've switched to more convenient and stable NOMP pool (https://github.com/vagabondan/ric-nomp) and recommend you to do the same.
Other
10 stars 6 forks source link

Issue mining SHA256 Deutsch eMark coins #23

Closed DecentralizeCoding closed 7 years ago

DecentralizeCoding commented 7 years ago

Good Evening, this is my first issue request so please let me know if I am doing something wrong here. First of all I want to say Vagabondan great work in keeping this project going I love Coiniumserv and the work Bonesoul put into the project.

Okay so onto the issue I am having issues mining Deutsch eMark, it looks like it is finding blocks but is failing. Here is my Coiniumserv Debug log:

09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Shares.ShareManager] [DeutscheEMark] TakeShare before share constructor: nonce=a2da215c, extranonce2=91755595 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Shares.Share] [Share] Entering share constructor: "a2da215c" 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Jobs.Job] [Job] Share list length: 1 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Shares.Share] [Share] Serialize Share "a2da215c" 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Shares.Share] [Share] Getting Header buffer for Share "a2da215c" 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Shares.Share] [Share] Got share "a2da215c" of length: 32 POW: 00000000000001357dc9fbe6242a383e74f703b30cca5c9acce2b55eb33482bb TGT: 01d9df0000000000000000000000000000000000000000000000 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Shares.Share] [Share] Job.Target is greater than or equal HeaderValue(POW-SCRYPT)!!!: "01d9df0000000000000000000000000000000000000000000000" "01357dc9fbe6242a383e74f703b30cca5c9acce2b55eb33482bb"

Big-Endian values for Block Header: job.BlockTemplate.Version=7 job.PreviousBlockHash="000000000000002CCEFDFC481718C6E9FB5A2E9975E38D05DA05AF428F57EBA4" MerkleRoot="E76902D2AF5E615E460B9FA03975E7E2533DC87200FAA3DC5B104AA51A780B45" NTime=1505491908 job.EncodedDifficulty="1a01d9df" Nonce=2732204380

result="07000000A4EB578F42AF05DA058DE375992E5AFBE9C6181748FCFDCE2C00000000000000450B781AA54A105BDCA3FA0072C83D53E2E77539A09F0B465E615EAFD20269E7C4FBBB59DFD9011A5C21DAA2"

Big-Endian: BlockHex=System.Byte[] BlockHash(2xSHA256)="00000000000001357DC9FBE6242A383E74F703B30CCA5C9ACCE2B55EB33482BB"

09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Shares.ShareManager] [DeutscheEMark] Share accepted at 13877291.16/6912000 by miner NatJLpR3ANhxofkhBmECFWJU8X3j8SpbMH 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Shares.Share] [Share] BlockDiffAdjusted=9063439.01674209 Difficulty=13877291.1607913 ExtraNonce1=1744830465 ExtraNonce2=2440385941 Height=1428052 NTime=1505491908 Nonce=2732204380 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Shares.Share] [Share] "BlockHash"="00000000000001357dc9fbe6242a383e74f703b30cca5c9acce2b55eb33482bb" 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Shares.Share] [Share] "CoinbaseBuffer"="07000000c2fbbb59010000000000000000000000000000000000000000000000000000000000000000ffffffff1f0354ca1503d3f8160868000001917555950d2f436f696e69756d536572762f0000000002604ff3020000000023210391c52409f2f8268dcb46e20e937bc71bf19b5cbf68f4730c9cd9bb123376b4beac20a10700000000001976a9147d3e0fa362a36af9e27868ee07e5fb526adc1c3b88ac00000000" 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Shares.Share] [Share] CoinbaseHash="450b781aa54a105bdca3fa0072c83d53e2e77539a09f0b465e615eafd20269e7" 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Shares.Share] [Share] HeaderBuffer="07000000A4EB578F42AF05DA058DE375992E5AFBE9C6181748FCFDCE2C00000000000000450B781AA54A105BDCA3FA0072C83D53E2E77539A09F0B465E615EAFD20269E7C4FBBB59DFD9011A5C21DAA2" 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Shares.Share] [Share] "HeaderHash"="bb8234b35eb5e2cc9a5cca0cb303f7743e382a24e6fbc97d3501000000000000" 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Shares.Share] [Share] HeaderValue="BB8234B35EB5E2CC9A5CCA0CB303F7743E382A24E6FBC97D3501" 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Shares.Share] [Share] "MerkleRoot"="e76902d2af5e615e460b9fa03975e7e2533dc87200faa3dc5b104aa51a780b45" 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Jobs.Job] [Job] CoinbaseInitial="07000000c2fbbb59010000000000000000000000000000000000000000000000000000000000000000ffffffff1f0354ca1503d3f81608" CoinbaseFinal="0d2f436f696e69756d536572762f0000000002604ff3020000000023210391c52409f2f8268dcb46e20e937bc71bf19b5cbf68f4730c9cd9bb123376b4beac20a10700000000001976a9147d3e0fa362a36af9e27868ee07e5fb526adc1c3b88ac00000000" CreationTime=1505491905 Difficulty=9063439.01674209 EncodedDifficulty="1a01d9df" NTime="59bbfbc2" PreviousBlockHash="000000000000002ccefdfc481718c6e9fb5a2e9975e38d05da05af428f57eba4" PreviousBlockHashReversed="8f57eba4da05af4275e38d05fb5a2e991718c6e9cefdfc480000002c00000000" Version="00000007" 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Jobs.Job] [Job] Target="0000000000000000000000000000000000000000000000DFD901" 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Cryptology.Merkle.MerkleTree] [MerkleTree] Branches: 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Cryptology.Merkle.MerkleTree] [MerkleTree] Steps: 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Daemon.Responses.BlockTemplate] [BlockTemplate] Bits="1a01d9df" Coinbasevalue=50000000 CurTime=1505491906 Height=1428052 MinTime=1505491789 NonceRange="00000000ffffffff" PreviousBlockHash="000000000000002ccefdfc481718c6e9fb5a2e9975e38d05da05af428f57eba4" SigOpLimit=20000 SizeLimit=1000000 Target="00000000000001d9df0000000000000000000000000000000000000000000000" Version=7 Weightlimit=0Default_witness_commitment=null

09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Daemon.Responses.BlockTemplate] [BlockTemplate] Mutable: 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Daemon.Responses.BlockTemplate] [BlockTemplate] "time"

09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Daemon.Responses.BlockTemplate] [BlockTemplate] "transactions"

09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Daemon.Responses.BlockTemplate] [BlockTemplate] "prevblock"

09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Transactions.GenerationTransaction] [GenerationTransaction] "Final"="0d2f436f696e69756d536572762f0000000002604ff3020000000023210391c52409f2f8268dcb46e20e937bc71bf19b5cbf68f4730c9cd9bb123376b4beac20a10700000000001976a9147d3e0fa362a36af9e27868ee07e5fb526adc1c3b88ac00000000" 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Transactions.GenerationTransaction] [GenerationTransaction] "Initial"="07000000c2fbbb59010000000000000000000000000000000000000000000000000000000000000000ffffffff1f0354ca1503d3f81608" 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Transactions.GenerationTransaction] [GenerationTransaction] "TxMessage"="1a687474703a2f2f7777772e636f696e6d696e65727a2e636f6d2f" 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Transactions.GenerationTransaction] [GenerationTransaction] Version=7 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Transactions.GenerationTransaction] [GenerationTransaction] Inputs: 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Transactions.GenerationTransaction] [GenerationTransaction] input.PreviousOutput[4294967295].Hash="0000000000000000000000000000000000000000000000000000000000000000" 09/15/2017 17:12:07 +01:00 [Debug] [CoiniumServ.Shares.ShareManager] [DeutscheEMark] We thought a block was found but it was rejected by the coin daemon; [00000000000001357dc9fbe6242a383e74f703b30cca5c9acce2b55eb33482bb] - reason; Block decode failed 09/15/2017 17:12:07 +01:00 [Error] [CoiniumServ.Server.Mining.Stratum.StratumService] [StratumService] Exception on mining.submit System.NullReferenceException: Object reference not set to an instance of an object. at CoiniumServ.Shares.ShareManager.SubmitBlock(IShare share) in C:\Users\James Henderson\Downloads\CoiniumServ-develop(2)\CoiniumServ-develop\src\CoiniumServ\Shares\ShareManager.cs:line 258 at CoiniumServ.Shares.ShareManager.HandleValidShare(IShare share) in C:\Users\James Henderson\Downloads\CoiniumServ-develop(2)\CoiniumServ-develop\src\CoiniumServ\Shares\ShareManager.cs:line 138 at CoiniumServ.Shares.ShareManager.ProcessShare(IStratumMiner miner, String jobId, String extraNonce2, String nTimeString, String nonceString) in C:\Users\James Henderson\Downloads\CoiniumServ-develop(2)\CoiniumServ-develop\src\CoiniumServ\Shares\ShareManager.cs:line 105 at CoiniumServ.Server.Mining.Stratum.StratumService.SubmitWork(String user, String jobId, String extraNonce2, String nTime, String nonce) in C:\Users\James Henderson\Downloads\CoiniumServ-develop(2)\CoiniumServ-develop\src\CoiniumServ\Server\Mining\Stratum\StratumService.cs:line 125

Here is the Coiniumserv Server log:

09/15/2017 17:12:07 +01:00 [Error] [CoiniumServ.Server.Mining.Stratum.StratumService] [StratumService] Exception on mining.submit System.NullReferenceException: Object reference not set to an instance of an object. at CoiniumServ.Shares.ShareManager.SubmitBlock(IShare share) in C:\Users\James Henderson\Downloads\CoiniumServ-develop(2)\CoiniumServ-develop\src\CoiniumServ\Shares\ShareManager.cs:line 258 at CoiniumServ.Shares.ShareManager.HandleValidShare(IShare share) in C:\Users\James Henderson\Downloads\CoiniumServ-develop(2)\CoiniumServ-develop\src\CoiniumServ\Shares\ShareManager.cs:line 138 at CoiniumServ.Shares.ShareManager.ProcessShare(IStratumMiner miner, String jobId, String extraNonce2, String nTimeString, String nonceString) in C:\Users\James Henderson\Downloads\CoiniumServ-develop(2)\CoiniumServ-develop\src\CoiniumServ\Shares\ShareManager.cs:line 105 at CoiniumServ.Server.Mining.Stratum.StratumService.SubmitWork(String user, String jobId, String extraNonce2, String nTime, String nonce) in C:\Users\James Henderson\Downloads\CoiniumServ-develop(2)\CoiniumServ-develop\src\CoiniumServ\Server\Mining\Stratum\StratumService.cs:line 125

This is my deutsch emark pool json file:

{ "enabled": true, "coin": "deutscheemark.json", "daemon": { "host": "127.0.0.1", "port": 8339, "username": "REMOVED BUT WORKING", "password": "REMOVED BUT WORKING" }, "wallet": { "address": "ADDRESS REMOVED BUT CORRECT" }, "rewards": [ { "ADDRESS REMOVED BUT CORRECT": 1 } ], "stratum": { "port": 3339 }, "storage": { "hybrid": { "mysql": { "database": "miningdeutscheemark" } } } }

Here is my Deutsch emark coin json file:

{ "name": "DeutscheEMark", "symbol": "DEM", "algorithm": "sha256", "site": "http://deutsche-emark.de/", "blockExplorer": { "block": "http://blockexplorer.deutsche-emark.org/block/", "tx": "http://blockexplorer.deutsche-emark.org/tx/", "address": "http://blockexplorer.deutsche-emark.org/address/" } }

Here is the deutsch emark coin debug file:

ProcessBlock: ACCEPTED SetBestChain: new best=a24cef55682d338396c4c2f1145b8b5409cc1ad0cb7b4fb5962c3ea7e88c0faf height=1428114 trust=8996345552828813160204 blocktrust=1987631203981 date=09/15/17 17:09:52 ProcessBlock: ACCEPTED keypool reserve 5 keypool return 5 keypool reserve 5 keypool return 5 SetBestChain: new best=000000000000015df5f667bcf8ad0f0cd87e333fbf74d89405f2ee6ab1a84e8b height=1428115 trust=8996384859370096555230 blocktrust=39306541283395026 date=09/15/17 17:11:08 ProcessBlock: ACCEPTED keypool reserve 5 keypool return 5 SetBestChain: new best=dcd1d4d9817d8ef438bc424157602a9dbd14d49276cac9080b42a6c0c8c93b3d height=1428116 trust=8996384861378558635056 blocktrust=2008462079826 date=09/15/17 17:13:20 ProcessBlock: ACCEPTED SetBestChain: new best=0000000000000049f7aec1a1790aa32595ab60bd58b286a7abb2617148c8ca7a height=1428117 trust=8996424167919842030082 blocktrust=39306541283395026 date=09/15/17 17:13:47 ProcessBlock: ACCEPTED keypool reserve 5 keypool return 5 SetBestChain: new best=00000000000000974838edf82a559e138026bd352d500f68156a9ef1c2a7a849 height=1428118

Here is the main site for Deutsch eMark: http://deutsche-emark.de/

I am thinking it must be something to do with POS/POW when it is trying to process the found block.

If anyone could help point me in the right direction that would be great.

Thanks!

Kind Regards,

James