Here is the the log of Hyperledger Fabric test network. My question is what's the difference between 「propose」 mode of orderer node(refer to Line 1) and 「writeBlock」mode of orderer node(refer to Line 2)?
I know the orderer node will make the candidate block for Peer nodes to verify it and I think that will be at 「WriteBlock」mode so I wonder what orderer node does at 「propose」mode.
Raft consensus in Fabric orderers works like this:
To replicate the block to peers, the orderers fill a passive role: Each peer contacts some orderer and requests to be sent blocks starting from a sequence (the next block number the peer needs). The orderer then initializes an iterator dedicated to that peer, and the iterator scans the files the blocks are stored in, and sends the blocks to the peer over the network. When a peer receives the block, it verifies its signature and if it's correct, it inserts it into its commit pipeline, where the transactions are validated and only valid transactions are then used to update the state database.