| 414 | } |
| 415 | |
| 416 | bool CheckPBFTMessageSigner(const CPBFTMessage& msg) { |
| 417 | |
| 418 | //查找上一个区块执行过后的矿工列表 |
| 419 | set<CRegID> delegates; |
| 420 | |
| 421 | if(pbftContext.GetMinerListByBlockHash(msg.preBlockHash, delegates)) { |
| 422 | if(delegates.count(msg.miner) > 0) |
| 423 | return true; |
| 424 | } |
| 425 | return false; |
| 426 | } |
| 427 | |
| 428 | bool CheckPBFTMessage(const int32_t msgType ,const CPBFTMessage& msg) { |
| 429 |
no test coverage detected