forex.pm forex forum binary options trade

 Š”ryptocurrency exchanges => Binance - Š”ryptocurrency exchanges => Topic started by: Bitcoin on Mar 19, 2022, 04:41 am

Title: Shell Script - Block Sequence check and add missing block
Post by: Bitcoin on Mar 19, 2022, 04:41 am
Shell Script - Block Sequence check and add missing block

I am trying to scan blocks lets say from 1 to 10.


lets say


(3,1,4,8,2,7,9,10)


min block = 1 , max block = 10


expected sequence = 1 to 10


missing blocks= 5,6


I need a shell script that is going to pick up the missing block in the range and add them to create a new set. Sorting is not needed though


Best Regards,


Source: Shell Script - Block Sequence check and add missing block (https://bitcoin.stackexchange.com/questions/112915/shell-script-block-sequence-check-and-add-missing-block)