sample_chain/document/peer节点处理提案请求.md

526 B
Raw Blame History

peer节点处理提案请求

1.根据ChaincodeMessage生成链码存根(ChaincodeStub)

2.根据ChaincodeMessage结构体中Proposal *SignedProposal验证客户端签名

2.解析ChaincodeMessage中的链码参数并调用链码返回背书结果(Response)

3.获取事务的读写集并检测其是否存在重复地址,以及是否为不可序列化的事务

4.根据序列化的字节数组创建提案回复(ProposalResponse)并将序列化后的提案回复写入ChaincodeMessage结构体中的Payload字段