go-ethereum/core
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
..
asm all: change format 0x%x to %#x (#25221) 2024-09-27 15:24:31 +08:00
bloombits fix: replace all time.after with the time.newtimer (#400) 2024-01-27 21:01:24 +11:00
rawdb all: replace uses of ioutil with io and os (#24869) 2024-09-27 15:14:17 +08:00
state all: fix staticcheck warning ST1006: don't use generic name self 2024-10-25 21:30:54 +08:00
types all: fix staticcheck warning ST1006: don't use generic name self 2024-10-25 21:30:54 +08:00
vm Merge pull request #689 from gzliudan/fix-st1005 2024-10-25 15:28:07 +08:00
.gitignore Renamed chain => core 2014-12-04 10:28:02 +01:00
bench_test.go all: use unified emptyRootHash and emptyCodeHash (#26718) 2024-10-21 17:55:16 +08:00
block_validator.go all: use errrors.New instead of empty fmt.Errorf 2024-06-14 19:19:21 +08:00
block_validator_test.go Xin 113 is epoch switch (#37) 2022-01-14 21:38:38 +11:00
blockchain.go Merge pull request #689 from gzliudan/fix-st1005 2024-10-25 15:28:07 +08:00
blockchain_test.go all: fix staticcheck warning SA4006: never used value 2024-10-24 17:37:19 +08:00
blocks.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
chain_indexer.go all: use errrors.New instead of empty fmt.Errorf 2024-06-14 19:19:21 +08:00
chain_indexer_test.go core,eth,light: remove duplicated functions 2024-08-03 10:03:22 +08:00
chain_makers.go all: removed blockhash from statedb (#23126) 2024-10-18 09:24:52 +08:00
chain_makers_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
dao_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
database_util.go core: fix wrong blockHash for eth_getLogs (#650) 2024-10-16 11:00:58 +08:00
database_util_test.go core,eth,light: remove duplicated functions 2024-08-03 10:03:22 +08:00
error.go core/vm: implement EIP-2681: Limit account nonce to 2^64-1 (#23853) 2024-08-26 09:04:15 +08:00
events.go eth/filters: remove use of event.TypeMux for pending logs (#20312) 2024-08-03 10:03:22 +08:00
evm.go all: split vm.Context into BlockContext and TxContext (#21672) 2024-09-21 22:18:10 +08:00
gaspool.go miner: avoid unnecessary work (#15883) 2018-01-15 12:57:06 +02:00
gen_genesis.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
gen_genesis_account.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
genesis.go core,eth,light: remove duplicated functions 2024-08-03 10:03:22 +08:00
genesis_alloc.go xin-203 fix wrong config hash and update v2 params on mainnet (#109) 2022-07-12 16:56:55 +02:00
genesis_test.go xin-203 fix wrong config hash and update v2 params on mainnet (#109) 2022-07-12 16:56:55 +02:00
headerchain.go core, cmd: add generic LRU implementation (#26162) 2024-08-26 11:17:23 +08:00
helper_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
lending_pool.go all: fix staticcheck warning ST1005: incorrectly formatted error string 2024-10-24 09:48:20 +08:00
lending_pool_test.go all: fix staticcheck warning SA4006: never used value 2024-10-24 17:37:19 +08:00
lending_tx_journal.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
lending_tx_list.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
mkalloc.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
order_pool.go all: fix staticcheck warning ST1005: incorrectly formatted error string 2024-10-24 09:48:20 +08:00
order_pool_test.go all: fix staticcheck warning SA4006: never used value 2024-10-24 17:37:19 +08:00
order_tx_journal.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
order_tx_list.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
state_processor.go all: removed blockhash from statedb (#23126) 2024-10-18 09:24:52 +08:00
state_transition.go all: split vm.Context into BlockContext and TxContext (#21672) 2024-09-21 22:18:10 +08:00
token_validator.go all: split vm.Context into BlockContext and TxContext (#21672) 2024-09-21 22:18:10 +08:00
tx_cacher.go core: concurrent background transaction sender ecrecover (#16882) 2024-05-09 18:38:27 +08:00
tx_journal.go all: change TxPreEvent to TxsPreEvent (#16720) 2024-03-28 11:16:21 +08:00
tx_list.go core: fix race conditions in txpool (#23474) 2024-08-24 23:12:32 +08:00
tx_list_test.go core: types: less allocations when hashing and tx handling (#21265) 2024-05-13 22:07:03 +08:00
tx_noncer.go core: fix write concurrency in txpool (#19835) 2024-05-10 19:48:10 +08:00
tx_pool.go all: fix staticcheck warning ST1005: incorrectly formatted error string 2024-10-24 09:48:20 +08:00
tx_pool_test.go core: fix race conditions in txpool (#23474) 2024-08-24 23:12:32 +08:00
types.go new EVM Upgrade 2021-09-21 16:53:46 +05:30