Research Article
Efficient Byzantine Consensus Mechanism Based on Reputation in IoT Blockchain
Input: Behavior record table Number of consensus node-set | Output: Consensus node-set , Candidate consensus node-set , Consensus node | Whiledo | Read(); | ; | end | ; | ; | ; | ifthen | ; | else end | if current.validator == consensus node and message.type == connect and node ranks in the top in the reputation and reputationRate collections then | ; | ifthen | Add(); | ifthen | Sort(); | ; | ; | else end | else end | else end | return, , |
|