mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 03:10:48 +00:00
all: remove term whitelist in comments and log messages (#23294)
This commit is contained in:
parent
62a70f0cde
commit
206175fb43
2 changed files with 3 additions and 3 deletions
|
|
@ -748,8 +748,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.
|
// 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
|
// 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
|
// be added to the allowlist, preventing any associated transaction from being dropped
|
||||||
// due to pricing constraints.
|
// out of the pool due to pricing constraints.
|
||||||
func (pool *TxPool) add(tx *types.Transaction, local bool) (replaced bool, err error) {
|
func (pool *TxPool) add(tx *types.Transaction, local bool) (replaced bool, err error) {
|
||||||
// If the transaction is already known, discard it
|
// If the transaction is already known, discard it
|
||||||
hash := tx.Hash()
|
hash := tx.Hash()
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ func wsHandshakeValidator(allowedOrigins []string) func(*http.Request) bool {
|
||||||
if _, ok := req.Header["Origin"]; !ok {
|
if _, ok := req.Header["Origin"]; !ok {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
// Verify origin against whitelist.
|
// Verify origin against allow list.
|
||||||
origin := strings.ToLower(req.Header.Get("Origin"))
|
origin := strings.ToLower(req.Header.Get("Origin"))
|
||||||
if allowAllOrigins || originIsAllowed(origins, origin) {
|
if allowAllOrigins || originIsAllowed(origins, origin) {
|
||||||
return true
|
return true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue