Skip to content

provide get_info endpoint #69

@thepiwo

Description

@thepiwo
  • add endpoint to get the clients info, e.g:
{
    "current_block_version" : 1,
    "current_block_height" : 2,
    "current_block_hash" : xyz,
    "genesis_block_hash" : abc,
    "peer_count" : 8,
    "difficulty_target" : 21,
    "public_key": pubkey
}
  • replace ping/pong with get_info, only add peer if genesis block has is correct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions