Skip to content

RPC getblocktemplate returns version: -1476395008 #392

Description

@nickoarg

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:

  1. Compile in linux, ubuntu 16.04
  2. run meritd --daemon
  3. 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.

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLImerit-cli issuesbug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions