Describe the issue
Pool receives an incorrect version data in the rpc response for getworktemplate
Can you reliably reproduce the issue?
Yes
If so, please list the steps to reproduce below:
- Compile in linux, ubuntu 16.04
- run meritd --daemon
- curl --user rpcpool --data-binary '{"jsonrpc":"1.0", "method" : "getblocktemplate","params" : [{"capabilities" : ["coinbasetxn","workid","coinbase/append"]}],"id" : 2}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
get:
Enter host password for user 'rpcpool':
{"result":{"capabilities":["proposal"],"version":-1476395008,"previousblockhash": ...
Expected behaviour
Version should be valid System.UInt32
Actual behaviour
meritd returned an invalid value
Screenshots.

What version of merit-core are you using?
Self compiled from source
Machine specs:
- OS: ubuntu 16.04
- CPU: 2
- RAM: 16gb
- Disk size: 55gb
- Disk Type (HD/SDD): nvme
Describe the issue
Pool receives an incorrect version data in the rpc response for getworktemplate
Can you reliably reproduce the issue?
Yes
If so, please list the steps to reproduce below:
get:
Enter host password for user 'rpcpool':
{"result":{"capabilities":["proposal"],"version":-1476395008,"previousblockhash": ...
Expected behaviour
Version should be valid System.UInt32
Actual behaviour
meritd returned an invalid value
Screenshots.
What version of merit-core are you using?
Self compiled from source
Machine specs: