Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
hive
hive
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 53
    • Issues 53
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 17
    • Merge Requests 17
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • hive
  • hivehive
  • Issues
  • #86

Closed
Open
Opened Oct 16, 2020 by Dan Notestein@danOwner

get_witnesses_by_vote return values seem off

The call for get_witnesses_by_vote seems to return some information about the witnesses that doesn't seem right. They have 0 votes, they're running node version 0.0.0, no hdb/hive exchange rate, things of that nature. See below for a sample call and response from hivemind.

curl call:

curl -s -d '{"id":"1","jsonrpc":"2.0","method":"call", "params":["database_api", "get_witnesses_by_vote", [0, 4]]}' https://api.hive.blog | jq .

response:

{
  "jsonrpc": "2.0",
  "result": [
    {
      "id": 6950,
      "owner": "a-0",
      "created": "1970-01-01T00:00:00",
      "url": "",
      "votes": 0,
      "virtual_last_update": "0",
      "virtual_position": "0",
      "virtual_scheduled_time": "340282366920938463463374607431768211455",
      "total_missed": 0,
      "last_aslot": 1063323,
      "last_confirmed_block_num": 1040423,
      "pow_worker": 0,
      "signing_key": "STM5RrTRNDhhrMaA24SzSeE5AvmUcutb1q1VZp1imnT8p871s3UjN",
      "props": {
        "account_creation_fee": "0.001 HIVE",
        "maximum_block_size": 131072,
        "hbd_interest_rate": 1000,
        "account_subsidy_budget": 797,
        "account_subsidy_decay": 347321
      },
      "hbd_exchange_rate": {
        "base": "0.000 HIVE",
        "quote": "0.000 HIVE"
      },
      "last_hbd_exchange_update": "1970-01-01T00:00:00",
      "last_work": "000000127cb0e335667f30100bc1a061175c2d789f808e0e9ac82ee70fa8e604",
      "running_version": "0.0.0",
      "hardfork_version_vote": "0.0.0",
      "hardfork_time_vote": "2016-03-24T16:00:00",
      "available_witness_account_subsidies": 0
    },
    {
      "id": 6847,
      "owner": "a-h",
      "created": "1970-01-01T00:00:00",
      "url": "",
      "votes": 0,
      "virtual_last_update": "0",
      "virtual_position": "0",
      "virtual_scheduled_time": "340282366920938463463374607431768211455",
      "total_missed": 0,
      "last_aslot": 1064139,
      "last_confirmed_block_num": 1041237,
      "pow_worker": 0,
      "signing_key": "STM62SCcHyNgPSsaafBa1YTGKaYqGfacYNkhfUGo25hQYFSHYPL68",
      "props": {
        "account_creation_fee": "0.001 HIVE",
        "maximum_block_size": 131072,
        "hbd_interest_rate": 1000,
        "account_subsidy_budget": 797,
        "account_subsidy_decay": 347321
      },
      "hbd_exchange_rate": {
        "base": "0.000 HIVE",
        "quote": "0.000 HIVE"
      },
      "last_hbd_exchange_update": "1970-01-01T00:00:00",
      "last_work": "0000000c1a7940dbf3750d21a21116c82093dc226da73f1e49fc0efe3576db24",
      "running_version": "0.0.0",
      "hardfork_version_vote": "0.0.0",
      "hardfork_time_vote": "2016-03-24T16:00:00",
      "available_witness_account_subsidies": 0
    },
    {
      "id": 2194,
      "owner": "a-pile-of-steem",
      "created": "1970-01-01T00:00:00",
      "url": "",
      "votes": 0,
      "virtual_last_update": "0",
      "virtual_position": "0",
      "virtual_scheduled_time": "340282366920938463463374607431768211455",
      "total_missed": 47,
      "last_aslot": 0,
      "last_confirmed_block_num": 0,
      "pow_worker": 0,
      "signing_key": "STM5NGMkc2vvpDP6srZKPcK8VX2eMbGw9UwrPzmQGYxnDgnj7zhKK",
      "props": {
        "account_creation_fee": "100.000 HIVE",
        "maximum_block_size": 131072,
        "hbd_interest_rate": 1000,
        "account_subsidy_budget": 797,
        "account_subsidy_decay": 347321
      },
      "hbd_exchange_rate": {
        "base": "0.000 HIVE",
        "quote": "0.000 HIVE"
      },
      "last_hbd_exchange_update": "1970-01-01T00:00:00",
      "last_work": "00000002d353f82855369c9ecff79e172eab150dfd80683aedb77c09826fa579",
      "running_version": "0.0.0",
      "hardfork_version_vote": "0.0.0",
      "hardfork_time_vote": "2016-03-24T16:00:00",
      "available_witness_account_subsidies": 0
    },
    {
      "id": 3893,
      "owner": "a-z",
      "created": "1970-01-01T00:00:00",
      "url": "",
      "votes": 0,
      "virtual_last_update": "0",
      "virtual_position": "0",
      "virtual_scheduled_time": "340282366920938463463374607431768211455",
      "total_missed": 0,
      "last_aslot": 791680,
      "last_confirmed_block_num": 776401,
      "pow_worker": 0,
      "signing_key": "STM6kK5PhLANB7PA5LW8qHBrPw2pvQaTZofuqXc3SsKWr6NJpKEkf",
      "props": {
        "account_creation_fee": "100.000 HIVE",
        "maximum_block_size": 131072,
        "hbd_interest_rate": 1000,
        "account_subsidy_budget": 797,
        "account_subsidy_decay": 347321
      },
      "hbd_exchange_rate": {
        "base": "0.000 HIVE",
        "quote": "0.000 HIVE"
      },
      "last_hbd_exchange_update": "1970-01-01T00:00:00",
      "last_work": "00000000a92eda160fd60b0227b117eb3cb8ebbd7de8d71c6298bae39d3a1483",
      "running_version": "0.0.0",
      "hardfork_version_vote": "0.0.0",
      "hardfork_time_vote": "2016-03-24T16:00:00",
      "available_witness_account_subsidies": 0
    }
  ],
  "id": "1"
}
Edited Oct 16, 2020 by Dan Notestein
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: hive/hive#86