pull/1348/head
Rongjian Lan 5 years ago
parent ccdafa0dca
commit 868dfdbf19
  1. 4
      node/node_cross_shard.go

@ -158,7 +158,8 @@ func (node *Node) ProcessReceiptMessage(msgPayload []byte) {
if len(merkleProof.ShardID) == 0 { if len(merkleProof.ShardID) == 0 {
utils.Logger().Warn().Msg("[ProcessReceiptMessage] There is No non-empty destination shards") utils.Logger().Warn().Msg("[ProcessReceiptMessage] There is No non-empty destination shards")
return return
} else { }
for j := 0; j < len(merkleProof.ShardID); j++ { for j := 0; j < len(merkleProof.ShardID); j++ {
sKey := make([]byte, 4) sKey := make([]byte, 4)
binary.BigEndian.PutUint32(sKey, merkleProof.ShardID[j]) binary.BigEndian.PutUint32(sKey, merkleProof.ShardID[j])
@ -169,7 +170,6 @@ func (node *Node) ProcessReceiptMessage(msgPayload []byte) {
myShardRoot = merkleProof.CXShardHash[j] myShardRoot = merkleProof.CXShardHash[j]
} }
} }
}
if !foundMyShard { if !foundMyShard {
utils.Logger().Warn().Msg("[ProcessReceiptMessage] Not Found My Shard in CXReceipt Message") utils.Logger().Warn().Msg("[ProcessReceiptMessage] Not Found My Shard in CXReceipt Message")

Loading…
Cancel
Save