Podcastindex-org / podping.cloud

The server code that runs a podping.cloud node.
MIT License
36 stars 11 forks source link

Hive Watcher JavaScript not working #59

Closed loretoparisi closed 2 years ago

loretoparisi commented 2 years ago

Hello, the hive watcher javascript is not working anymore apparently.

I can sees json-rpc connections as usual like

Request URL: https://api.openhive.network/
Request Method: POST
Status Code: 200 OK

with response

{"jsonrpc":"2.0","result":{"head_block_number":61909527,"head_block_id":"03b0aa1744c7e46ec804ee4155ab009cce4d0dbb","time":"2022-02-17T22:41:03","current_witness":"gtg","total_pow":514415,"num_pow_witnesses":172,"virtual_supply":"396395943.064 HIVE","current_supply":"374258678.190 HIVE","init_hbd_supply":"0.000 HBD","current_hbd_supply":"24018932.389 HBD","total_vesting_fund_hive":"152494660.203 HIVE","total_vesting_shares":"281001571333.709988 VESTS","total_reward_fund_hive":"0.000 HIVE","total_reward_shares2":"0","pending_rewarded_vesting_shares":"688769652.077326 VESTS","pending_rewarded_vesting_hive":"352472.359 HIVE","hbd_interest_rate":1200,"hbd_print_rate":10000,"maximum_block_size":65536,"required_actions_partition_percent":0,"current_aslot":62100821,"recent_slots_filled":"340282366920938463463374607431768211455","participation_count":128,"last_irreversible_block_num":61909508,"vote_power_reserve_rate":10,"delegation_return_period":432000,"reverse_auction_seconds":0,"available_account_subsidies":10236975,"hbd_stop_percent":1000,"hbd_start_percent":900,"next_maintenance_time":"2022-02-17T23:32:42","last_budget_time":"2022-02-17T22:32:42","next_daily_maintenance_time":"2022-02-18T19:31:30","content_reward_percent":6500,"vesting_reward_percent":1500,"sps_fund_percent":1000,"sps_interval_ledger":"49.766 HBD","downvote_pool_percent":2500,"current_remove_threshold":200,"early_voting_seconds":86400,"mid_voting_seconds":172800,"max_consecutive_recurrent_transfer_failures":10,"max_recurrent_transfer_end_date":730,"min_recurrent_transfers_recurrence":24,"max_open_recurrent_transfers":255},"id":"0"}

but there is any post showed in the html test page, so I assume there is any new post retrieved by the hive watcher, because the client.blockchain.getBlockStream({ mode: dhive.BlockchainMode.Latest }) does not return new posts. Is the following hive server list

var addressList = [
        'https://api.openhive.network',
        'https://api.hive.blog',
        'https://hive.roelandp.nl',
        'https://techcoderx.com',
        'https://api.hivekings.com',
        'https://anyx.io',
        'https://api.deathwing.me',
        'https://hive-api.arcange.eu',
        'https://rpc.ecency.com',
        'https://hived.privex.io',
    ];

changed? Thank you!

stevencrader commented 2 years ago

I'll take a look later tonight after the day job.

stevencrader commented 2 years ago

There were a couple of issue:

  1. Only 10 "valid" podping accounts were being retrieved. Change limit to 100.
  2. Didn't support new fields (version 1.0 of podping)