Skip to content

Check error returned from ConsensusSetPersistentSubscribe

Christopher Schinnerl requested to merge VoidingWarranties:cs-errcheck into master

Created by: VoidingWarranties

Because all modules (but the miner) subscribe to the consensus set with an initial change id of the genesis block, it's only possible for an error to be returned by ConsensusSetPersistentSubscribe right now if computeConsensusChange fails. In the future these modules will use a more recent ConsensusChangeID which could return make ConsensusSetPersistentSubscribe return ErrInvalidConsensusChangeID if the module and the consensus package become desynchronized.

Merge request reports