You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New blocks are captured from the masternode new_block websocket events
Previous blocks are still captured by calling the masternode block endpoint which means syncing from block 0 will still take a while and cause a draw on the masternode. A quicker block syncing mechanism is needed (ie, syncing a block service from an existing block service)
Block service will now attempt to repair missing blocks every 5 minutes on the previous 1000 blocks. These are blocks that for whatever reason the node couldn't get the information for when it tried.
Upgrade Steps from <= v0.6.3:
pull latest code from master
npm install
to install some added packages
run the "setRepairHeight" loader
from the project root run node src/database/loaders/setRepairHeight.mjs <block_num> where <block_num> is your last synced block. You can get this from the /synced_stats endpoint
If you don't do this then it will start to reprocess/sync from block 0. It will check that the block exists in the DB before pulling it from the masternode. If the block in the DB is designated as "block-does-not-exist" it will get the block information from the masternode and then process that block. As it does this it sets "repairHeight" to the last block synced. So setting this manually via the loaders script will avoid the delay.