From ad8fb118e7dff154e01b445fb9e437d0feb47f74 Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Wed, 29 May 2024 14:54:59 +0800 Subject: [PATCH] all: remove term whitelist in comments and log messages (#23294) --- core/tx_pool.go | 4 ++-- rpc/websocket.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/tx_pool.go b/core/tx_pool.go index 1c4a20844260a..250c86abefaf2 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -743,8 +743,8 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error { // pending or queued one, it overwrites the previous transaction if its price is higher. // // If a newly added transaction is marked as local, its sending account will be -// whitelisted, preventing any associated transaction from being dropped out of the pool -// due to pricing constraints. +// be added to the allowlist, preventing any associated transaction from being dropped +// out of the pool due to pricing constraints. func (pool *TxPool) add(tx *types.Transaction, local bool) (replaced bool, err error) { // If the transaction is already known, discard it hash := tx.Hash() diff --git a/rpc/websocket.go b/rpc/websocket.go index c1c5b1675b61b..70cf69e728463 100644 --- a/rpc/websocket.go +++ b/rpc/websocket.go @@ -103,7 +103,7 @@ func wsHandshakeValidator(allowedOrigins []string) func(*http.Request) bool { if _, ok := req.Header["Origin"]; !ok { return true } - // Verify origin against whitelist. + // Verify origin against allow list. origin := strings.ToLower(req.Header.Get("Origin")) if allowAllOrigins || originIsAllowed(origins, origin) { return true