Fix --replay-blockchain with mainnet #505

Closed
opened 2023-02-03 06:07:01 +00:00 by vampik · 8 comments
vampik commented 2023-02-03 06:07:01 +00:00 (Migrated from gitlab.com)

--replay-blockchain with mainnet should be fixed after this merge request:
https://gitlab.com/PBSA/peerplays/-/merge_requests/202

`--replay-blockchain` with mainnet should be fixed after this merge request: https://gitlab.com/PBSA/peerplays/-/merge_requests/202
vampik commented 2023-02-03 06:07:01 +00:00 (Migrated from gitlab.com)

assigned to @vampik

assigned to @vampik
vampik commented 2023-02-03 06:11:26 +00:00 (Migrated from gitlab.com)

@wsalloum
To check that reply works fine, you need to do:

  1. Build witness_node from the master branch (for the mainnet), and sync with mainnet.
  2. Build witness_node from the develop branch (for the mainnet)
  3. Copy database (witness_node_data_dir) from the master branch witness_node to the develop witness_node directory
  4. Start witness_node from the develop branch with --replay-blockchain flag. And confirm that replay works fine.
@wsalloum To check that reply works fine, you need to do: 1) Build `witness_node` from the `master` branch (for the mainnet), and sync with mainnet. 2) Build `witness_node` from the `develop` branch (for the mainnet) 3) Copy database (`witness_node_data_dir`) from the `master` branch `witness_node` to the `develop` `witness_node` directory 4) Start `witness_node` from the `develop` branch with `--replay-blockchain` flag. And confirm that replay works fine.
vampik commented 2023-02-03 06:12:12 +00:00 (Migrated from gitlab.com)

assigned to @wsalloum

assigned to @wsalloum
prandnum commented 2023-02-10 12:47:00 +00:00 (Migrated from gitlab.com)

@vampik getting the following error

CC: @wsalloum

kiran@warpspeed:~/PBSA/10022023/505/peerplays_develop/peerplays$ ./programs/witness_node/witness_node --data-dir=witness_node_data_dir --replay-blockchain
2753465ms th_a       accounts_list_plugin.cpp:128  list_accounts        ] accounts list plugin:  list_accounts()
2753465ms th_a       bookie_plugin.cpp:412         plugin_initialize    ] bookie plugin: plugin_startup() begin
2753465ms th_a       db_management.cpp:295         force_slow_replays   ] enabling slow replays
2753465ms th_a       bookie_plugin.cpp:435         plugin_initialize    ] bookie plugin: plugin_startup() end
2753465ms th_a       witness.cpp:91                plugin_initialize    ] witness plugin:  plugin_initialize() begin
2753465ms th_a       witness.cpp:124               plugin_initialize    ] 10 assert_exception: Assert Exception
base58str.substr( 0, prefix_len ) == prefix: 
    {"base58str":"PPY6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV"}
    th_a  types.cpp:69 public_key_type
2753465ms th_a       main.cpp:190                  main                 ] Exiting with error:
10 assert_exception: Assert Exception
base58str.substr( 0, prefix_len ) == prefix: 
    {"base58str":"PPY6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV"}
    th_a  types.cpp:69 public_key_type
rethrow
    {}
    th_a  witness.cpp:124 plugin_initialize
kiran@warpspeed:~/PBSA/10022023/505/peerplays_develop/peerplays$ 
@vampik getting the following error CC: @wsalloum ``` kiran@warpspeed:~/PBSA/10022023/505/peerplays_develop/peerplays$ ./programs/witness_node/witness_node --data-dir=witness_node_data_dir --replay-blockchain 2753465ms th_a accounts_list_plugin.cpp:128 list_accounts ] accounts list plugin: list_accounts() 2753465ms th_a bookie_plugin.cpp:412 plugin_initialize ] bookie plugin: plugin_startup() begin 2753465ms th_a db_management.cpp:295 force_slow_replays ] enabling slow replays 2753465ms th_a bookie_plugin.cpp:435 plugin_initialize ] bookie plugin: plugin_startup() end 2753465ms th_a witness.cpp:91 plugin_initialize ] witness plugin: plugin_initialize() begin 2753465ms th_a witness.cpp:124 plugin_initialize ] 10 assert_exception: Assert Exception base58str.substr( 0, prefix_len ) == prefix: {"base58str":"PPY6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV"} th_a types.cpp:69 public_key_type 2753465ms th_a main.cpp:190 main ] Exiting with error: 10 assert_exception: Assert Exception base58str.substr( 0, prefix_len ) == prefix: {"base58str":"PPY6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV"} th_a types.cpp:69 public_key_type rethrow {} th_a witness.cpp:124 plugin_initialize kiran@warpspeed:~/PBSA/10022023/505/peerplays_develop/peerplays$ ```
vampik commented 2023-02-10 12:58:22 +00:00 (Migrated from gitlab.com)

Did you build your peerplays_develop for mainnet? Looks like it was build for testnet.

Did you build your `peerplays_develop` for mainnet? Looks like it was build for testnet.
prandnum commented 2023-02-10 13:01:20 +00:00 (Migrated from gitlab.com)

my bad, that's correct. let me rebuild and will let you know. Also can the error be made something more user friendly?

my bad, that's correct. let me rebuild and will let you know. Also can the error be made something more user friendly?
prandnum commented 2023-02-10 14:20:29 +00:00 (Migrated from gitlab.com)

Able to replay the blockchain with develop witness_node binary.

Able to replay the blockchain with develop witness_node binary.
prandnum (Migrated from gitlab.com) closed this issue 2023-02-10 14:20:31 +00:00
prandnum commented 2023-02-10 14:25:38 +00:00 (Migrated from gitlab.com)
870860ms th_a       db_maint.cpp:1868             process_dividend_ass ] In process_dividend_assets time 2023-02-10T11:00:00
870874ms th_a       db_maint.cpp:1623             schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 1 previous_balance: 0 
870875ms th_a       db_maint.cpp:1663             schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2023-03-08T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 
870875ms th_a       db_maint.cpp:1623             schedule_pending_div ] payout_asset_type: 1.3.1 current_balance: 5 previous_balance: 0 
870875ms th_a       db_maint.cpp:1663             schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2023-03-08T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 
870916ms th_a       db_maint.cpp:1868             process_dividend_ass ] In process_dividend_assets time 2023-02-10T12:00:00
870930ms th_a       db_maint.cpp:1623             schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 1 previous_balance: 0 
870930ms th_a       db_maint.cpp:1663             schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2023-03-08T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 
870931ms th_a       db_maint.cpp:1623             schedule_pending_div ] payout_asset_type: 1.3.1 current_balance: 5 previous_balance: 0 
870931ms th_a       db_maint.cpp:1663             schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2023-03-08T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 
870960ms th_a       db_management.cpp:175         reindex              ] Done reindexing, elapsed time: 2508.45585900000014590 sec
870970ms th_a       application.cpp:137           reset_p2p_node       ] Adding seed node 51.222.110.110:9777
870970ms th_a       application.cpp:137           reset_p2p_node       ] Adding seed node 95.216.90.243:9777
871363ms th_a       application.cpp:137           reset_p2p_node       ] Adding seed node 51.161.77.207:9777
871914ms th_a       application.cpp:137           reset_p2p_node       ] Adding seed node 51.255.26.98:9777
872400ms th_a       application.cpp:137           reset_p2p_node       ] Adding seed node 146.59.48.71:9777
873356ms th_a       application.cpp:137           reset_p2p_node       ] Adding seed node 192.99.111.177:9777
873656ms th_a       application.cpp:137           reset_p2p_node       ] Adding seed node 79.175.123.80:9777
873657ms th_a       application.cpp:151           reset_p2p_node       ] Configured p2p node to listen on 0.0.0.0:9777
873665ms th_a       application.cpp:225           reset_websocket_serv ] Configured websocket rpc to listen on 127.0.0.1:8090
873666ms th_a       bookie_plugin.cpp:440         plugin_startup       ] bookie plugin: plugin_startup()
873666ms th_a       witness.cpp:128               plugin_startup       ] witness plugin:  plugin_startup() begin
873666ms th_a       witness.cpp:143               plugin_startup       ] No witnesses configured! Please add witness IDs and private keys to configuration.
873666ms th_a       witness.cpp:144               plugin_startup       ] witness plugin:  plugin_startup() end
873666ms th_a       main.cpp:173                  main                 ] Started Peerplays node on a chain with 57068794 blocks.
873666ms th_a       main.cpp:174                  main                 ] Chain ID is 6b6b5f0ce7a36d323768e534f3edb41c6d6332a541a95725b98e28d140850134
875909ms th_a       db_maint.cpp:1868             process_dividend_ass ] In process_dividend_assets time 2023-02-10T13:00:00
875924ms th_a       db_maint.cpp:1623             schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 1 previous_balance: 0 
875924ms th_a       db_maint.cpp:1663             schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2023-03-08T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 
875925ms th_a       db_maint.cpp:1623             schedule_pending_div ] payout_asset_type: 1.3.1 current_balance: 5 previous_balance: 0 
875925ms th_a       db_maint.cpp:1663             schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2023-03-08T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 
876308ms th_a       application.cpp:429           handle_block         ] Got block: #57070000 time: 2023-02-10T13:37:06 latency: 2250308 ms from: miss-jana  irreversible: 57069990 (-10)
876694ms th_a       db_maint.cpp:1868             process_dividend_ass ] In process_dividend_assets time 2023-02-10T14:00:00
876709ms th_a       db_maint.cpp:1623             schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 1 previous_balance: 0 
876709ms th_a       db_maint.cpp:1663             schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2023-03-08T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 
876710ms th_a       db_maint.cpp:1623             schedule_pending_div ] payout_asset_type: 1.3.1 current_balance: 5 previous_balance: 0 
876710ms th_a       db_maint.cpp:1663             schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2023-03-08T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 
879480ms th_a       application.cpp:429           handle_block         ] Got block: #57070748 time: 2023-02-10T14:14:39 latency: 480 ms from: obi-1-kenobi  irreversible: 57070734 (-14)
882472ms th_a       application.cpp:429           handle_block         ] Got block: #57070749 time: 2023-02-10T14:14:42 latency: 471 ms from: robert-hedler  irreversible: 57070735 (-14)
885281ms th_a       application.cpp:429           handle_block         ] Got block: #57070750 time: 2023-02-10T14:14:45 latency: 281 ms from: wit-super  irreversible: 57070737 (-13)
888449ms th_a       application.cpp:429           handle_block         ] Got block: #57070751 time: 2023-02-10T14:14:48 latency: 449 ms from: royal-flush  irreversible: 57070738 (-13)
891303ms th_a       application.cpp:429           handle_block         ] Got block: #57070752 time: 2023-02-10T14:14:51 latency: 303 ms from: mars-hotel  irreversible: 57070742 (-10)
894303ms th_a       application.cpp:429           handle_block         ] Got block: #57070753 time: 2023-02-10T14:14:54 latency: 303 ms from: hiltos-witness  irreversible: 57070743 (-10)
897339ms th_a       application.cpp:429           handle_block         ] Got block: #57070754 time: 2023-02-10T14:14:57 latency: 339 ms from: miss-jana  irreversible: 57070744 (-10)
``` 870860ms th_a db_maint.cpp:1868 process_dividend_ass ] In process_dividend_assets time 2023-02-10T11:00:00 870874ms th_a db_maint.cpp:1623 schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 1 previous_balance: 0 870875ms th_a db_maint.cpp:1663 schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2023-03-08T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 870875ms th_a db_maint.cpp:1623 schedule_pending_div ] payout_asset_type: 1.3.1 current_balance: 5 previous_balance: 0 870875ms th_a db_maint.cpp:1663 schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2023-03-08T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 870916ms th_a db_maint.cpp:1868 process_dividend_ass ] In process_dividend_assets time 2023-02-10T12:00:00 870930ms th_a db_maint.cpp:1623 schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 1 previous_balance: 0 870930ms th_a db_maint.cpp:1663 schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2023-03-08T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 870931ms th_a db_maint.cpp:1623 schedule_pending_div ] payout_asset_type: 1.3.1 current_balance: 5 previous_balance: 0 870931ms th_a db_maint.cpp:1663 schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2023-03-08T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 870960ms th_a db_management.cpp:175 reindex ] Done reindexing, elapsed time: 2508.45585900000014590 sec 870970ms th_a application.cpp:137 reset_p2p_node ] Adding seed node 51.222.110.110:9777 870970ms th_a application.cpp:137 reset_p2p_node ] Adding seed node 95.216.90.243:9777 871363ms th_a application.cpp:137 reset_p2p_node ] Adding seed node 51.161.77.207:9777 871914ms th_a application.cpp:137 reset_p2p_node ] Adding seed node 51.255.26.98:9777 872400ms th_a application.cpp:137 reset_p2p_node ] Adding seed node 146.59.48.71:9777 873356ms th_a application.cpp:137 reset_p2p_node ] Adding seed node 192.99.111.177:9777 873656ms th_a application.cpp:137 reset_p2p_node ] Adding seed node 79.175.123.80:9777 873657ms th_a application.cpp:151 reset_p2p_node ] Configured p2p node to listen on 0.0.0.0:9777 873665ms th_a application.cpp:225 reset_websocket_serv ] Configured websocket rpc to listen on 127.0.0.1:8090 873666ms th_a bookie_plugin.cpp:440 plugin_startup ] bookie plugin: plugin_startup() 873666ms th_a witness.cpp:128 plugin_startup ] witness plugin: plugin_startup() begin 873666ms th_a witness.cpp:143 plugin_startup ] No witnesses configured! Please add witness IDs and private keys to configuration. 873666ms th_a witness.cpp:144 plugin_startup ] witness plugin: plugin_startup() end 873666ms th_a main.cpp:173 main ] Started Peerplays node on a chain with 57068794 blocks. 873666ms th_a main.cpp:174 main ] Chain ID is 6b6b5f0ce7a36d323768e534f3edb41c6d6332a541a95725b98e28d140850134 875909ms th_a db_maint.cpp:1868 process_dividend_ass ] In process_dividend_assets time 2023-02-10T13:00:00 875924ms th_a db_maint.cpp:1623 schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 1 previous_balance: 0 875924ms th_a db_maint.cpp:1663 schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2023-03-08T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 875925ms th_a db_maint.cpp:1623 schedule_pending_div ] payout_asset_type: 1.3.1 current_balance: 5 previous_balance: 0 875925ms th_a db_maint.cpp:1663 schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2023-03-08T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 876308ms th_a application.cpp:429 handle_block ] Got block: #57070000 time: 2023-02-10T13:37:06 latency: 2250308 ms from: miss-jana irreversible: 57069990 (-10) 876694ms th_a db_maint.cpp:1868 process_dividend_ass ] In process_dividend_assets time 2023-02-10T14:00:00 876709ms th_a db_maint.cpp:1623 schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 1 previous_balance: 0 876709ms th_a db_maint.cpp:1663 schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2023-03-08T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 876710ms th_a db_maint.cpp:1623 schedule_pending_div ] payout_asset_type: 1.3.1 current_balance: 5 previous_balance: 0 876710ms th_a db_maint.cpp:1663 schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2023-03-08T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 879480ms th_a application.cpp:429 handle_block ] Got block: #57070748 time: 2023-02-10T14:14:39 latency: 480 ms from: obi-1-kenobi irreversible: 57070734 (-14) 882472ms th_a application.cpp:429 handle_block ] Got block: #57070749 time: 2023-02-10T14:14:42 latency: 471 ms from: robert-hedler irreversible: 57070735 (-14) 885281ms th_a application.cpp:429 handle_block ] Got block: #57070750 time: 2023-02-10T14:14:45 latency: 281 ms from: wit-super irreversible: 57070737 (-13) 888449ms th_a application.cpp:429 handle_block ] Got block: #57070751 time: 2023-02-10T14:14:48 latency: 449 ms from: royal-flush irreversible: 57070738 (-13) 891303ms th_a application.cpp:429 handle_block ] Got block: #57070752 time: 2023-02-10T14:14:51 latency: 303 ms from: mars-hotel irreversible: 57070742 (-10) 894303ms th_a application.cpp:429 handle_block ] Got block: #57070753 time: 2023-02-10T14:14:54 latency: 303 ms from: hiltos-witness irreversible: 57070743 (-10) 897339ms th_a application.cpp:429 handle_block ] Got block: #57070754 time: 2023-02-10T14:14:57 latency: 339 ms from: miss-jana irreversible: 57070744 (-10) ```
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#505
No description provided.