digitalbazaar / bedrock-ledger-storage-mongodb

A storage subsystem for Bedrock ledger.
Other
5 stars 3 forks source link

Implement _finishIncompleteBlock. #15

Closed mattcollier closed 6 years ago

mattcollier commented 6 years ago

Once this gets ironed out, the same technique will be applied to events/operations.

Once this is finalized need to catch some specific errors at the consensus level. Still not sure what our recourse is if the eventHashes fail to be saved, but I reckon we have to address that at a higher level. Maybe it's just a matter of wiping the failed block and starting over.

Based on our current implementation with Continuity, I guess there is some application for a block that does not have consensus, and therefore it is left to the consensus algorithm to mark the block's meta.consensus etc. Is my understanding correct?

mattcollier commented 6 years ago

This has been re-implemented here: https://github.com/digitalbazaar/bedrock-ledger-storage-mongodb/pull/16