Hello,
I am working on my college project and multichian is perfect for my project. I need to implement a mining pool for my chain which i created using multichian . I came upon some problems which are referenced in this question :
https://www.multichain.com/qa/6583/how-does-install-mining-pool-in-multichain?show=6583#q6583
As you are aware that multichain doesn't provide the "getblockteplate" json-rpc so i searched on the web and multichian website and found that multichain's "getblock" is almost similar to "getblocktemplate".
I am using NOMP (
https://github.com/zone117x/node-open-mining-portal ) to setup the pool for testing. I changed the RPC call inside the code of NOMP to make it work with "getblock". It calls the "getblock" but returns this error : error: { code: -1, message: 'value is type obj, expected str' }. In the developers section on the website, it is written to report any code -1 errors to the devs.
This is my RPC call : _this.daemon.cmd('getblock', [ { "params" : [blockNumber, "4"] } ], function(results){ console.log(results); });
Also there is no "coinbaseaux" in the "getblock" rpc and pools require that too.
If you can help me out, I'll be really thankful :)
Thanks