No senders is fine (#2775)

This commit is contained in:
Alex Sharov 2021-10-05 10:03:49 +07:00 committed by GitHub
parent 3c0cb82454
commit 0625cd4f11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -779,7 +779,7 @@ func ReadBlockWithSenders(db kv.Tx, hash common.Hash, number uint64) (*types.Blo
return nil, nil, err
}
if len(senders) != block.Transactions().Len() {
return nil, nil, nil
return block, senders, nil // no senders is fine - will recover them on the fly
}
block.SendersToTxs(senders)
return block, senders, nil