Skip to content

Commit

Permalink
fix blacklist nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
fletcher.fan committed Oct 25, 2024
1 parent 7136388 commit 7c39faf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/tx_blacklist.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ func (tb *TxBlacklist) Validate(tx *types.Transaction) bool {
if _, ok := tb.senders[from]; ok {
return false
}
if _, ok := tb.receivers[*tx.To()]; ok {
return false
if tx.To() != nil {
if _, ok := tb.receivers[*tx.To()]; ok {
return false
}
}
return true
}

0 comments on commit 7c39faf

Please sign in to comment.