RiseVision / old-rise-core

2 stars 6 forks source link

delegate.js starting/restarting node - initialization #15

Closed knightfenris closed 7 years ago

knightfenris commented 7 years ago

check to see if Network Config Collection is empty

* if its empty, download network config collection from connecting peer * if not empty, compare against peer and download config file ** once downloaded, compare network config vs forging delegate network file while it is subscribed to the forging list

check to see if BlockChain is more than 0

* compare block chain length to peer * if not same length, then compare length values in block chain to find came blocks

- - if block id do not match on block length, then drop block chain DB and then download from peer