Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions epochStart/metachain/epochStartData.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,13 @@ func (e *epochStartData) computeStillPendingInShardHeader(
continue
}

if shardMiniBlockHeader.IsFinal() {
log.Debug("epochStartData.computeStillPendingInShardHeader: IsFinal",
notPending := shardMiniBlockHeader.IsFinal()
if shardHdr.IsHeaderV3() {
notPending = true
}
Comment thread
raduchis marked this conversation as resolved.

if notPending {
log.Debug("epochStartData.computeStillPendingInShardHeader: not pending",
"mb hash", shardMiniBlockHash,
"shard", shardID,
)
Expand Down Expand Up @@ -605,6 +610,7 @@ func (e *epochStartData) setIndexOfFirstAndLastTxProcessed(mbHeader *block.MiniB

func getAllMiniBlocksWithDst(m data.MetaHeaderHandler, destId uint32) map[string]block.MiniBlockHeader {
hashDst := make(map[string]block.MiniBlockHeader)

for i := 0; i < len(m.GetShardInfoHandlers()); i++ {
if m.GetShardInfoHandlers()[i].GetShardID() == destId {
continue
Expand All @@ -617,7 +623,8 @@ func getAllMiniBlocksWithDst(m data.MetaHeaderHandler, destId uint32) map[string
}
}

for _, val := range m.GetMiniBlockHeaderHandlers() {
miniBlockHeaders, _ := common.GetMiniBlockHeadersFromExecResult(m)
for _, val := range miniBlockHeaders {
if val.GetReceiverShardID() == destId && val.GetSenderShardID() != destId {
addMBHeaderToMapIfPossible(val, hashDst)
Comment thread
raduchis marked this conversation as resolved.
}
Comment thread
raduchis marked this conversation as resolved.
Expand Down
Loading