go-ethereum/eth
Daniel Liu fbecb8c5a5 all: fix staticcheck warning ST1006: don't use generic name self
The name of a method’s receiver should be a reflection of its identity;
often a one or two letter abbreviation of its type suffices (such as
“c” or “cl” for “Client”). Don’t use generic names such as “me”, “this”
or “self”, identifiers typical of object-oriented languages that place
more emphasis on methods as opposed to functions. The name need not be
as descriptive as that of a method argument, as its role is obvious and
serves no documentary purpose. It can be very short as it will appear
on almost every line of every method of the type; familiarity admits
brevity. Be consistent, too: if you call the receiver “c” in one method,
don’t call it “cl” in another.
2024-10-25 21:30:54 +08:00
..
bft all: use errrors.New instead of empty fmt.Errorf 2024-06-14 19:19:21 +08:00
downloader all: fix staticcheck warning ST1005: incorrectly formatted error string 2024-10-24 09:48:20 +08:00
ethconfig add flag rpc-gascap and set RPCGasCap to 50M (#664) 2024-10-09 09:28:24 +08:00
fetcher Revert EIP-2464 2024-08-24 02:31:27 +07:00
filters all: change format 0x%x to %#x (#25221) 2024-09-27 15:24:31 +08:00
gasprice eth/gasprice: add configurable threshold to gas price oracle (#22752) 2024-06-20 15:52:32 +08:00
hooks all: fix staticcheck warning ST1005: incorrectly formatted error string 2024-10-24 09:48:20 +08:00
tracers all: fix staticcheck warning ST1005: incorrectly formatted error string 2024-10-24 09:48:20 +08:00
util Move consensus hooks to its own package 2021-10-10 16:04:32 +11:00
api.go log improvement and some refactor (#110) 2022-07-10 01:11:28 +02:00
api_backend.go all: split vm.Context into BlockContext and TxContext (#21672) 2024-09-21 22:18:10 +08:00
api_test.go all: change format 0x%x to %#x (#25221) 2024-09-27 15:24:31 +08:00
api_tracer.go all: fix staticcheck warning ST1005: incorrectly formatted error string 2024-10-24 09:48:20 +08:00
backend.go all: fix staticcheck warning ST1006: don't use generic name self 2024-10-25 21:30:54 +08:00
backend_test.go Move consensus hooks to its own package 2021-10-10 16:04:32 +11:00
bloombits.go after we use time.Ticker it didn't allow to have 0 time duration (#493) 2024-03-15 19:07:05 +11:00
handler.go all: fix staticcheck warning ST1006: don't use generic name self 2024-10-25 21:30:54 +08:00
handler_test.go Revert EIP-2464 2024-08-24 02:31:27 +07:00
helper_test.go Revert EIP-2464 2024-08-24 02:31:27 +07:00
metrics.go Revert EIP-2464 2024-08-24 02:31:27 +07:00
peer.go add flag rpc-gascap and set RPCGasCap to 50M (#664) 2024-10-09 09:28:24 +08:00
protocol.go Revert EIP-2464 2024-08-24 02:31:27 +07:00
protocol_test.go Revert EIP-2464 2024-08-24 02:31:27 +07:00
state_accessor.go add TraceCall, backend.StateAtBlock(), RPCGasCap 2024-05-17 21:34:34 +08:00
sync.go Revert EIP-2464 2024-08-24 02:31:27 +07:00
sync_test.go Revert EIP-2464 2024-08-24 02:31:27 +07:00