eth/protocols/eth: error strings should not be capitalized

This commit is contained in:
wit 2025-11-09 11:46:14 +08:00
parent 447b5f7e19
commit 201dabf005

View file

@ -499,11 +499,11 @@ func handleTransactions(backend Backend, msg Decoder, peer *Peer) error {
for i, tx := range txs {
// Validate and mark the remote transaction
if tx == nil {
return fmt.Errorf("Transactions: transaction %d is nil", i)
return fmt.Errorf("transactions: transaction %d is nil", i)
}
hash := tx.Hash()
if _, exists := seen[hash]; exists {
return fmt.Errorf("Transactions: multiple copies of the same hash %v", hash)
return fmt.Errorf("transactions: multiple copies of the same hash %v", hash)
}
seen[hash] = struct{}{}
peer.markTransaction(hash)