fix empty senders array check #4308

This commit is contained in:
Alex Sharov 2022-05-30 20:51:14 +07:00 committed by GitHub
parent 710f664161
commit e0323e7434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1226,7 +1226,7 @@ func (b *Block) Body() *Body {
return bd
}
func (b *Block) SendersToTxs(senders []common.Address) {
if senders == nil {
if len(senders) == 0 {
return
}
for i, tx := range b.transactions {