Closed lispc closed 4 years ago
Spv pending producer?
Light client: You start sync at block N*1200 ( in the block receipts, you can collect 'currentProducers' and 'pendingProdcuers', you check every block then to have more than 2/3 of producer signatures. Once the block at N1200 becomes finality ( more than 2/3 producers confirmed it), you switch producer list from 'currentProducers' to 'pendingProducers'. You repeat this until you reach block at (N+1)1200. Then jump to begin, repeat above process.
So your node can verify the blockchain status without even using vm to execute javascript.
Codecov Report
0.00% <0.00%> (ø)
0.00% <0.00%> (ø)
0.00% <ø> (ø)
81.55% <ø> (ø)
81.88% <ø> (ø)
0.00% <0.00%> (ø)
0.00% <0.00%> (ø)
36.57% <24.00%> (-1.89%)
50.00% <50.00%> (ø)
81.90% <75.00%> (+0.17%)