Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
194 commits
Select commit Hold shift + click to select a range
23ac8df
cmd. core: save preimages on genesis creation (#25538)
gballet Aug 18, 2022
cce7f08
rlp/rlpgen: fix error handling when target type not found (#25547)
jtraglia Aug 18, 2022
a1b8892
trie: improve node rlp decoding performance (#25357)
rjl493456442 Aug 18, 2022
2c5648d
all: fix some typos (#25551)
jtraglia Aug 19, 2022
fa1305f
internal/ethapi: fix comment typo (#25548)
ucwong Aug 19, 2022
32e8490
accounts/abi/bind/backends: typo fix (#25549)
ucwong Aug 19, 2022
656dc8c
eth, les: unlock downloader peerSet if there's an error (#25546)
jtraglia Aug 19, 2022
9762ddf
cmd/geth: parse uint64 value with ParseUint instead of Atoi (#25545)
jtraglia Aug 19, 2022
77308cd
consensus/beacon: check ttd reached on pos blocks (#25552)
MariusVanDerWijden Aug 19, 2022
36874b6
eth/filters: add global block logs cache (#25459)
s1na Aug 19, 2022
0865880
accounts/abi: fix set function (#25477)
zhiqiangxu Aug 19, 2022
ac7ad81
internal/ethapi: fix build regression (#25555)
fjl Aug 19, 2022
0ce494b
eth/fetcher: don't spend too much time on transaction inclusion (#25524)
holiman Aug 19, 2022
02418c2
Revert "eth/fetcher: don't spend too much time on transaction inclusi…
karalabe Aug 22, 2022
395f3d4
eth/catalyst: warn less frequently if no beacon client is available (…
karalabe Aug 22, 2022
2de49b0
params: release go-ethereum v1.10.22
fjl Aug 22, 2022
6d711f0
params: begin v1.10.23 release cycle
fjl Aug 22, 2022
81bd998
core, eth/downloader: handle spurious junk bodies from racey rollback…
karalabe Aug 23, 2022
5758d1f
core/state, trie: fix trie flush order for proper pruning
karalabe Aug 23, 2022
45a660a
consensus/beacon: don't ignore errors
holiman Aug 23, 2022
9ed10b9
Merge pull request #25581 from karalabe/triedb-fix-flush-order
karalabe Aug 23, 2022
4c114af
Merge pull request #25582 from holiman/err_handling
karalabe Aug 23, 2022
d901d85
params: release Geth v1.10.23
karalabe Aug 24, 2022
57896d6
params: begin v1.10.24 release cycle
karalabe Aug 24, 2022
6c40aed
params: begin go-ethereum v1.11 release cycle
fjl Aug 25, 2022
70e1e65
internal/ethapi: rename debug getters to match spec (#25176)
lightclient Aug 25, 2022
f03c37b
accounts/abi/bind: add const for tx fee elasticity multiplier (#25504)
xinbenlv Aug 25, 2022
c394c30
all: remove duplicate word in comments (#25618)
Abirdcfly Aug 29, 2022
6e6b508
cmd/geth: fix legacy receipt detection for empty db (#25609)
s1na Aug 30, 2022
6d882a5
build: fix ignored errors (#25591)
uji Aug 30, 2022
44b36a0
docs: specify execution client (#25566)
sandakersmann Aug 30, 2022
8df8eb4
ethclient: add 'finalized' and 'safe' block number support (#25580)
rachel-bousfield Aug 30, 2022
7813b67
node: change JWT error status to 401 Unauthorized (#25629)
dbadoy Aug 30, 2022
2b6df28
node: fix regression in TestJWT (#25635)
fjl Aug 30, 2022
d10c280
all: move genesis initialization to blockchain (#25523)
rjl493456442 Aug 30, 2022
362256e
eth/catalyst: adjust eta for themerge (#25601)
holiman Aug 31, 2022
279afd7
mobile: close node on error (#25643)
jakub-freebit Aug 31, 2022
8cfcb41
graphql: return correct logs for tx (#25612)
s1na Aug 31, 2022
3d68bb0
trie: fix grammar in comment (#25648)
aaronbuchwald Aug 31, 2022
dafa40e
eth/protocols/snap: fix problems due to idle-but-busy peers
holiman Aug 31, 2022
3f79afb
trie: cleanup stateTrie (#25640)
rjl493456442 Aug 31, 2022
95a2c22
eth/catalyst: prevent division by zero (#25654)
MariusVanDerWijden Aug 31, 2022
d79bd2f
trie: better error reporting (#25645)
holiman Sep 1, 2022
d46184c
core/state: filter out nil trie for copy (#25575)
rjl493456442 Sep 1, 2022
511bf8f
Merge pull request #25651 from holiman/fix_snapqueue
karalabe Sep 1, 2022
d2027ac
mobile: register filter APIs (#25642)
jakub-freebit Sep 2, 2022
198fa95
README.md: improve grammar (#25646)
xternet Sep 2, 2022
d6a12bc
eth/tracers/js: fill in log.refund field (#25661)
s1na Sep 2, 2022
7f2890a
eth/fetcher: throttle peers which deliver many invalid transactions (…
holiman Sep 2, 2022
90711ef
node, rpc: add JWT auth support in client (#24911)
protolambda Sep 2, 2022
38e002f
rpc: check that "version" is "2.0" in request objects (#25570)
dbadoy Sep 2, 2022
0d68b6b
trie: fix typo in comment (#25667)
dbadoy Sep 2, 2022
4b9c307
trie: fix unhandled error in test (#25628)
Kamandlou Sep 2, 2022
7318858
eth/tracers/js: improve integer types in log object (#25668)
fjl Sep 5, 2022
a9ec2ab
trie: check childrens' existence concurrently for snap heal
karalabe Sep 6, 2022
d408cb6
Merge pull request #25694 from karalabe/concurrent-heal-check
karalabe Sep 6, 2022
5ddedd2
core, light, trie: remove DiskDB function from trie database (#25690)
rjl493456442 Sep 7, 2022
a32a02f
params: update chts (#25707)
rjl493456442 Sep 7, 2022
d30e39b
core/vm: rename RANDOM to PREVRANDAO (#25691)
MariusVanDerWijden Sep 7, 2022
dea1fb3
all: cleanup tests (#25641)
rjl493456442 Sep 7, 2022
b1f6dcc
eth, les: rework chain tracer (#25143)
rjl493456442 Sep 7, 2022
6a575ed
eth/tracer: fix broken test (#25715)
rjl493456442 Sep 8, 2022
8363f79
trie: update comments + err check for preimages (#25672)
Sep 8, 2022
de8d5fa
eth/protocols/snap: throttle trie heal requests when peers DoS us (#2…
karalabe Sep 9, 2022
06151eb
p2p/msgrate: be more lenient when calculating 'mean' (#25653)
holiman Sep 9, 2022
610cf02
rpc: improve error codes for internal server errors (#25678)
niczy Sep 9, 2022
389021a
core: place a cap on reorglogs (#25711)
holiman Sep 9, 2022
b628d72
build: upgrade to go 1.19 (#25726)
fjl Sep 10, 2022
0c1888a
p2p/discover/v5wire: reject packets smaller than 63 bytes (#25740)
dbadoy Sep 12, 2022
3a4cef5
core: preallocate maps in TxPool helper methods (#25737)
dbadoy Sep 12, 2022
9a3bd11
accounts/abi: fix typo in error message (#25742)
bprosnitz Sep 13, 2022
818ff32
graphql: fixes missing tx logs (#25745)
s1na Sep 13, 2022
9d71716
cmd/geth: add a verkle subcommand (#25718)
gballet Sep 14, 2022
25b35c9
node: fix HTTP server always force closing (#25755)
ngotchac Sep 14, 2022
0ee8b27
core: fix log order in "Imported new chain segment" (#25768)
fjl Sep 15, 2022
3db4a13
node: fix lint issue in rpcstack.go (#25774)
fjl Sep 15, 2022
1d2f5cf
les/catalyst/api: add support for ExchangeTransitionConfigurationV1 (…
pinkiebell Sep 15, 2022
a89b7ad
params: set TerminalTotalDifficultyPassed to true (#25769)
MariusVanDerWijden Sep 15, 2022
57a65f0
trie: handle more batch commit errors in Database (#25674)
Kamandlou Sep 15, 2022
83989a1
core/rawdb: fix leak of backoff timer (#25776)
ucwong Sep 16, 2022
d213cb0
crypto/bls12381: docfix of g1 Affine (#25729)
georgercarder Sep 16, 2022
8ade5e6
internal/ethapi: return error when requesting invalid trie key (#25762)
lightclient Sep 16, 2022
ada603f
core: don't cache zero nonce in txNoncer (#25603)
dbadoy Sep 16, 2022
8e52015
core: more compact bad block report (#25714)
lightclient Sep 17, 2022
468d184
core: move build version reading to its own package (#25806)
fjl Sep 19, 2022
d728ba9
eth: fix a rare datarace on CHT challenge reply / shutdown
karalabe Sep 20, 2022
18a001f
Merge pull request #25831 from karalabe/fix-challenge-stop-hang
karalabe Sep 20, 2022
d8ada03
core/vm: return copy of input slice in identity precompile, avoid ret…
jwasinger Sep 20, 2022
338bb2e
core/blockchain: downgrade tx indexing and unindexing logs (#25832)
lightclient Sep 21, 2022
5d11d38
eth/tracers: fix trace config for `TraceCall` (#25821)
makcandrov Sep 21, 2022
6eb8f32
eth/catalyst: add locking around newpayload (#25816)
holiman Sep 21, 2022
400ab0d
eth/catalyst: make tests run faster (#25818)
holiman Sep 21, 2022
6215b92
cmd/utils: make --authrpc.jwtsecret a DirectoryFlag (#25849)
jsvisa Sep 22, 2022
fb500d1
eth/protocols/snap: make log messages more clear that sync is ongoing…
holiman Sep 23, 2022
220bdd3
.github: add CL client to issue template (#25814)
s1na Sep 23, 2022
e6d4aed
p2p: add channel buffers to avoid goroutine leaks in tests (#24929)
Chain-Fox Sep 23, 2022
65f3c1b
internal/version: use gitCommit injection in version handling code (#…
fjl Sep 23, 2022
e878067
cmd/abigen: change --exc to exclude by type name (#22620)
sebastianst Sep 23, 2022
9b35f3f
tests, les, eth: remove mentions of deprecated Morden testnet (#23570)
Sep 23, 2022
3da42f8
all: clean up the configs for pruner and snapshotter (#22396)
rjl493456442 Sep 23, 2022
15b4a4b
cmd/puppeth, cmd/utils: finalize removal of gasTarget flag (#24370)
Sep 23, 2022
367e605
core/types: improve accuracy of header.Size() (#25859)
zhiqiangxu Sep 26, 2022
4dc212d
eth/tracers: pad memory slice on OOB case (#25213)
s1na Sep 26, 2022
a3c6d1d
cmd/faucet: fix readme typos (#25867)
omahs Sep 26, 2022
e004e7d
core: fix datarace in txpool, fixes #25870 and #25869 (#25872)
holiman Sep 26, 2022
b32d203
eth/downloader, les/downloader: fix subtle flaw in queue delivery (#2…
zhiqiangxu Sep 26, 2022
c55c56c
core/vm: better handle error on eip activation check (#25131)
qinglin89 Sep 26, 2022
7227c9e
cmd/geth: make dumpgenesis load genesis datadir if it exists (#25135)
jwasinger Sep 26, 2022
3ec6fe6
tests: fix state test error checking (#25702)
meowsbits Sep 26, 2022
fc3e6d0
eth/tracers: use gencodec for native tracers (#25637)
s1na Sep 26, 2022
bff84a9
cmd, core, eth, les, light: track deleted nodes (#25757)
rjl493456442 Sep 27, 2022
13e6985
eth: return state error via GetEVM (#25876)
zhiqiangxu Sep 27, 2022
80cc34a
eth/downloader: make flakey test less flakey (#25879)
holiman Sep 27, 2022
1a63a76
ethclient/gethclient: fix bugs in override object encoding (#25616)
simonovic86 Sep 27, 2022
456b187
trie, eth/protocols/snap: less tiny db-writes during trie-healing (#2…
holiman Sep 28, 2022
1743e61
accounts/abi/bind/backends: fix AdjustTime to respect Fork (#25225)
lightclient Sep 28, 2022
53d68fe
tests: report mgas/s metric in evm benchmarks (#25700)
shekhirin Sep 28, 2022
2b1299b
core/vm: minor trivial clean up (#25880)
lmittmann Sep 28, 2022
85aafcf
eth/tracers: fix a bug in prestateTracer (#25884)
jsvisa Sep 28, 2022
88132af
internal/ethapi: handle odd length hex in decodeHash (#25883)
f01c5700 Sep 28, 2022
052c634
core: rework tx indexer (#25723)
rjl493456442 Sep 29, 2022
c2918c2
accounts/abi: return toGoType error immediately (#25565)
ceyonur Sep 29, 2022
ff1f492
eth/tracers: remove revertReasonTracer, add revert reason to callTrac…
s1na Sep 29, 2022
f651d6d
accounts/abi/bind: parse ABI only once on bind (#25574)
mikhailv Sep 29, 2022
07e0704
internal/flags: fix issue with stringslice migration (#25830)
holiman Sep 29, 2022
ea26fc8
cmd/geth, cmd/utils: geth attach with custom headers (#25829)
holiman Sep 30, 2022
a724163
core/types: add a testcase to TestLegacyReceiptDecoding (#25909)
zhiqiangxu Oct 3, 2022
f61b50b
eth/protocols/snap: serve snap requests when possible (#25644)
holiman Oct 3, 2022
1913b50
eth, miner: add timeout for building sealing block (#25407)
rjl493456442 Oct 3, 2022
ee301c7
all: fix docstrings
holiman Oct 4, 2022
4f7a425
Merge pull request #25924 from holiman/comments_fix
karalabe Oct 4, 2022
e14164d
core: fix linter complaint (#25927)
holiman Oct 4, 2022
5d52a35
eth/tracers: add diffMode to prestateTracer (#25422)
jsvisa Oct 6, 2022
e50aeac
eth/traces: add state limit (#25812)
rjl493456442 Oct 6, 2022
deead99
core/bloombits: speed up windows-test (#25844)
holiman Oct 6, 2022
067bac3
core, ethclient/gethclient: improve flaky tests (#25918)
holiman Oct 6, 2022
9cddfe9
node: prevent exposing engine API on unauthenticated endpoint (#25939)
fjl Oct 6, 2022
df2b3cd
eth/filters: fix for eth_getLogs failing with finalized- and safe tag…
ryanschneider Oct 6, 2022
5647516
cmd/geth: fix help output issues (#25941)
fjl Oct 6, 2022
7eafbec
accounts/usbwallet: support Ledger Nano S Plus and FTS (#25933)
lochjin Oct 11, 2022
5a02b2d
all: fix spelling mistakes (#25961)
holiman Oct 11, 2022
1c737e8
cmd/geth, core: fix typo in comment (#25954)
molecula451 Oct 11, 2022
28d076d
core/rawdb: provide more info on 'gap in the chain' error (#25938)
holiman Oct 12, 2022
a007ab7
core/types: add more context around ErrInvalidChainID (#25367)
MariusVanDerWijden Oct 12, 2022
bed3b10
common/math: optimized modexp (+ fuzzer) (#25525)
holiman Oct 12, 2022
e257b3a
tests/fuzzers/modexp: gofmt (#25972)
fjl Oct 12, 2022
3630caf
node: drop support for static & trusted node list files (#25610)
s1na Oct 12, 2022
eaf095c
accounts/keystore: faster tests (#25827)
holiman Oct 12, 2022
010f47f
eth/protocols/eth: fix typo in log message (#25969)
DragonDev1906 Oct 12, 2022
5b1a04b
eth/filters, ethclient/gethclient: add fullTx option to pending tx fi…
lmittmann Oct 12, 2022
9207e34
go.mod: upgrade github.com/dop251/goja (#25955)
ucwong Oct 12, 2022
c776a98
eth/tracers: fix the issue of panic in prestate with diffmode (#25957)
jsvisa Oct 12, 2022
fb75f11
Revert "go.mod: upgrade github.com/dop251/goja" (#25975)
holiman Oct 12, 2022
15b7e0b
common/math, tests/fuzzers: use big.Int clone (#26006)
holiman Oct 18, 2022
6069d82
cmd/utils: enable snapshot generation in import-mode (#25990)
holiman Oct 19, 2022
d86fe26
core/rawdb: refactor db key prefix (#26000)
s7v7nislands Oct 19, 2022
b9ba6f6
core/rawdb: open meta file in read only mode (#26009)
rjl493456442 Oct 19, 2022
9b9a1b6
internal/ethapi, accounts/abi/backends: use error defined in core (#2…
s7v7nislands Oct 20, 2022
a404195
eth/tracers: fix the issue prestate missing existing contract state (…
jsvisa Oct 21, 2022
5f70f9f
eth/tracers: simplify test framework (#25973)
holiman Oct 21, 2022
a6dda03
all: refactor txpool into it's own package in prep for 4844
karalabe Oct 24, 2022
a2b7481
Merge pull request #26038 from karalabe/split-txpool
karalabe Oct 24, 2022
68ba845
core/types: rename tx files to group them better together
karalabe Oct 26, 2022
5bed24d
Merge pull request #26044 from karalabe/rename-typed-tx-files
karalabe Oct 26, 2022
c4a6621
core, eth: for types with accurate size calcs, return uint64, not flo…
karalabe Oct 26, 2022
1d0c4e2
build: upgrade -dlgo version to Go 1.19.2
sandakersmann Oct 26, 2022
7496ad8
Merge pull request #26049 from sandakersmann/master
karalabe Oct 27, 2022
0c66d97
accounts/scwallet: fix keycard data signing error (#25331)
gballet Oct 27, 2022
4984c4e
build: make ios work again (#26052)
jakub-freebit Oct 27, 2022
9d795d0
core/vm: use optimized bigint (#26021)
holiman Oct 27, 2022
a1fc0d8
eth/filters: change filter block to be by-ref (#26054)
holiman Oct 27, 2022
60e30a9
core/rawdb: refactor db inspector for extending multiple ancient stor…
rjl493456442 Oct 28, 2022
fbdeff9
cmd/evm: calc base fee if parent data is present (#26051)
lightclient Oct 28, 2022
0f49422
eth/tracers: fix gasUsed for native and JS tracers (#26048)
s1na Oct 28, 2022
2c1af8b
cmd, eth: implement full-sync tester (#26035)
rjl493456442 Oct 28, 2022
fb4a97f
rpc: update docstring (#26072)
s7v7nislands Oct 31, 2022
5329aa3
Fix trace call for inner reverts (#25971)
ngotchac Oct 31, 2022
b0d4433
eth: implement eth/68 (#25980)
vdwijden Oct 31, 2022
8e69622
eth/tracers: add withLog to callTracer (#25991)
jsvisa Nov 1, 2022
0c40df5
eth/tracers: prestateTracer - exclude unchanged storage slots in diff…
s1na Nov 1, 2022
8578eb2
accounts/abi: return error on fixed bytes with size larger than 32 by…
zhiqiangxu Nov 1, 2022
2b65219
consensus/ethash: fix typo (#26016)
zhiqiangxu Nov 1, 2022
2415911
docs/postmortems: remove wrong parentheses (#26066)
SebastianSupreme Nov 1, 2022
a2a144c
miner, eth: implement recommit mechanism for payload building (#25836)
rjl493456442 Nov 2, 2022
24f08ec
miner: fail early if core.NewBlockChain fails (#26079)
roberto-bayardo Nov 2, 2022
621b423
p2p/discover: fix handling of distance 256 in lookupDistances (#26087)
jtraglia Nov 2, 2022
4a81e5a
rlp: add more tests for nil pointer / optional field encoding (#26077)
roberto-bayardo Nov 2, 2022
05037ea
rpc: handle wrong HTTP batch response length (#26064)
jmank88 Nov 2, 2022
f3a005f
cmd/clef: add `list-accounts` and `list-wallets` to CLI (#26080)
jmcook1186 Nov 2, 2022
19bf99f
merge devnet-v3 with latest master, part 1
roberto-bayardo Nov 3, 2022
c77e39b
next ~50 commits from master to merge into devnet-v3
roberto-bayardo Nov 3, 2022
9a4e8e2
crypto/bls12381: docs - fix broken links to references (#26095)
jwasinger Nov 3, 2022
8f94acc
final commits from master merged into devnet-v3
roberto-bayardo Nov 3, 2022
a0731a0
Merge branch 'master' into merge-master
roberto-bayardo Nov 3, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
all: fix spelling mistakes (ethereum#25961)
  • Loading branch information
holiman authored Oct 11, 2022
commit 5a02b2d6d0a8d5c8ebf170505c681f7b19df7ed9
2 changes: 1 addition & 1 deletion accounts/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func merge(slice []Wallet, wallets ...Wallet) []Wallet {
return slice
}

// drop is the couterpart of merge, which looks up wallets from within the sorted
// drop is the counterpart of merge, which looks up wallets from within the sorted
// cache and removes the ones specified.
func drop(slice []Wallet, wallets ...Wallet) []Wallet {
for _, wallet := range wallets {
Expand Down
2 changes: 1 addition & 1 deletion cmd/devp2p/internal/ethtest/snap.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (s *Suite) TestSnapGetAccountRange(t *utesting.T) {
{4000, s.chain.RootAt(0), zero, ffHash, 0, zero, zero},
// A 127 block old stateroot, expected to be served
{4000, s.chain.RootAt(999 - 127), zero, ffHash, 77, firstKey, common.HexToHash("0xe4c6fdef5dd4e789a2612390806ee840b8ec0fe52548f8b4efe41abb20c37aac")},
// A root which is not actually an account root, but a storage orot
// A root which is not actually an account root, but a storage root
{4000, storageRoot, zero, ffHash, 0, zero, zero},

// And some non-sensical requests
Expand Down
2 changes: 1 addition & 1 deletion cmd/evm/internal/t8ntool/transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ func (g Alloc) OnAccount(addr common.Address, dumpAccount state.DumpAccount) {
g[addr] = genesisAccount
}

// saveFile marshalls the object to the given file
// saveFile marshals the object to the given file
func saveFile(baseDir, filename string, data interface{}) error {
b, err := json.MarshalIndent(data, "", " ")
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion consensus/clique/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (ap *testerAccountPool) sign(header *types.Header, signer string) {
copy(header.Extra[len(header.Extra)-extraSeal:], sig)
}

// testerVote represents a single block signed by a parcitular account, where
// testerVote represents a single block signed by a particular account, where
// the account may or may not have cast a Clique vote.
type testerVote struct {
signer string
Expand Down
2 changes: 1 addition & 1 deletion core/bloombits/matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ func (s *MatcherSession) Multiplex(batch int, wait time.Duration, mux chan chan
return

case <-time.After(wait):
// Throttling up, fetch whatever's available
// Throttling up, fetch whatever is available
}
}
// Allocate as much as we can handle and request servicing
Expand Down
2 changes: 1 addition & 1 deletion core/state/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/ethereum/go-ethereum/trie"
)

// DumpConfig is a set of options to control what portions of the statewill be
// DumpConfig is a set of options to control what portions of the state will be
// iterated and collected.
type DumpConfig struct {
SkipCode bool
Expand Down
2 changes: 1 addition & 1 deletion core/state/snapshot/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (stat *generateStats) progressAccounts(account common.Hash, done uint64) {
stat.head = account
}

// finishAccounts updates the gemerator stats for the finished account range.
// finishAccounts updates the generator stats for the finished account range.
func (stat *generateStats) finishAccounts(done uint64) {
stat.lock.Lock()
defer stat.lock.Unlock()
Expand Down
2 changes: 1 addition & 1 deletion core/state/snapshot/iterator_fast.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func (fi *fastIterator) next(idx int) bool {
return false
}
// The elem we're placing it next to has the same value,
// so whichever winds up on n+1 will need further iteraton
// so whichever winds up on n+1 will need further iteration
clash = n + 1

return cur.priority < fi.iterators[n+1].priority
Expand Down
2 changes: 1 addition & 1 deletion core/state/snapshot/iterator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ func TestStorageIteratorDeletions(t *testing.T) {
// only spit out 200 values eventually.
//
// The value-fetching benchmark is easy on the binary iterator, since it never has to reach
// down at any depth for retrieving the values -- all are on the toppmost layer
// down at any depth for retrieving the values -- all are on the topmost layer
//
// BenchmarkAccountIteratorTraversal/binary_iterator_keys-6 2239 483674 ns/op
// BenchmarkAccountIteratorTraversal/binary_iterator_values-6 2403 501810 ns/op
Expand Down
2 changes: 1 addition & 1 deletion core/state/snapshot/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var (
snapAccountProveCounter = metrics.NewRegisteredCounter("state/snapshot/generation/duration/account/prove", nil)
// snapAccountTrieReadCounter measures time spent on the account trie iteration
snapAccountTrieReadCounter = metrics.NewRegisteredCounter("state/snapshot/generation/duration/account/trieread", nil)
// snapAccountSnapReadCounter measues time spent on the snapshot account iteration
// snapAccountSnapReadCounter measures time spent on the snapshot account iteration
snapAccountSnapReadCounter = metrics.NewRegisteredCounter("state/snapshot/generation/duration/account/snapread", nil)
// snapAccountWriteCounter measures time spent on writing/updating/deleting accounts
snapAccountWriteCounter = metrics.NewRegisteredCounter("state/snapshot/generation/duration/account/write", nil)
Expand Down
4 changes: 2 additions & 2 deletions core/state/snapshot/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func TestDiskLayerExternalInvalidationPartialFlatten(t *testing.T) {
if err := snaps.Cap(common.HexToHash("0x03"), 1); err != nil {
t.Fatalf("failed to merge accumulator onto disk: %v", err)
}
// Since the base layer was modified, ensure that data retrievald on the external reference fail
// Since the base layer was modified, ensure that data retrievals on the external reference fail
if acc, err := ref.Account(common.HexToHash("0x01")); err != ErrSnapshotStale {
t.Errorf("stale reference returned account: %#x (err: %v)", acc, err)
}
Expand Down Expand Up @@ -224,7 +224,7 @@ func TestDiffLayerExternalInvalidationPartialFlatten(t *testing.T) {
if err := snaps.Cap(common.HexToHash("0x04"), 1); err != nil {
t.Fatalf("failed to flatten diff layer into accumulator: %v", err)
}
// Since the accumulator diff layer was modified, ensure that data retrievald on the external reference fail
// Since the accumulator diff layer was modified, ensure that data retrievals on the external reference fail
if acc, err := ref.Account(common.HexToHash("0x01")); err != ErrSnapshotStale {
t.Errorf("stale reference returned account: %#x (err: %v)", acc, err)
}
Expand Down
6 changes: 3 additions & 3 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ func (s *StateDB) Copy() *StateDB {
// nil
if object, exist := s.stateObjects[addr]; exist {
// Even though the original object is dirty, we are not copying the journal,
// so we need to make sure that anyside effect the journal would have caused
// so we need to make sure that any side-effect the journal would have caused
// during a commit (or similar op) is already applied to the copy.
state.stateObjects[addr] = object.deepCopy(state)

Expand Down Expand Up @@ -796,8 +796,8 @@ func (s *StateDB) Finalise(deleteEmptyObjects bool) {
// resurrect an account; but the snapshotter needs both events.
if s.snap != nil {
s.snapDestructs[obj.addrHash] = struct{}{} // We need to maintain account deletions explicitly (will remain set indefinitely)
delete(s.snapAccounts, obj.addrHash) // Clear out any previously updated account data (may be recreated via a ressurrect)
delete(s.snapStorage, obj.addrHash) // Clear out any previously updated storage data (may be recreated via a ressurrect)
delete(s.snapAccounts, obj.addrHash) // Clear out any previously updated account data (may be recreated via a resurrect)
delete(s.snapStorage, obj.addrHash) // Clear out any previously updated storage data (may be recreated via a resurrect)
}
} else {
obj.finalise(true) // Prefetch slots in the background
Expand Down
2 changes: 1 addition & 1 deletion core/tx_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ func (h *priceHeap) Pop() interface{} {
}

// txPricedList is a price-sorted heap to allow operating on transactions pool
// contents in a price-incrementing way. It's built opon the all transactions
// contents in a price-incrementing way. It's built upon the all transactions
// in txpool but only interested in the remote part. It means only remote transactions
// will be considered for tracking, sorting, eviction, etc.
//
Expand Down
4 changes: 2 additions & 2 deletions core/tx_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ var (
// configured for the transaction pool.
ErrUnderpriced = errors.New("transaction underpriced")

// ErrTxPoolOverflow is returned if the transaction pool is full and can't accpet
// ErrTxPoolOverflow is returned if the transaction pool is full and can't accept
// another remote transaction.
ErrTxPoolOverflow = errors.New("txpool is full")

Expand Down Expand Up @@ -850,7 +850,7 @@ func (pool *TxPool) AddLocals(txs []*types.Transaction) []error {
}

// AddLocal enqueues a single local transaction into the pool if it is valid. This is
// a convenience wrapper aroundd AddLocals.
// a convenience wrapper around AddLocals.
func (pool *TxPool) AddLocal(tx *types.Transaction) error {
errs := pool.AddLocals([]*types.Transaction{tx})
return errs[0]
Expand Down
2 changes: 1 addition & 1 deletion core/tx_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2158,7 +2158,7 @@ func TestTransactionReplacementDynamicFee(t *testing.T) {
stages := []string{"pending", "queued"}
for _, stage := range stages {
// Since state is empty, 0 nonce txs are "executable" and can go
// into pending immediately. 2 nonce txs are "happed
// into pending immediately. 2 nonce txs are "gapped"
nonce := uint64(0)
if stage == "queued" {
nonce = 2
Expand Down
2 changes: 1 addition & 1 deletion core/vm/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ func (c *bls12381Pairing) Run(input []byte) ([]byte, error) {
return nil, errBLS12381G2PointSubgroup
}

// Update pairing engine with G1 and G2 ponits
// Update pairing engine with G1 and G2 points
e.AddPair(p1, p2)
}
// Prepare 32 byte output
Expand Down
2 changes: 1 addition & 1 deletion crypto/signature_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func SigToPub(hash, sig []byte) (*ecdsa.PublicKey, error) {
//
// This function is susceptible to chosen plaintext attacks that can leak
// information about the private key that is used for signing. Callers must
// be aware that the given digest cannot be chosen by an adversery. Common
// be aware that the given digest cannot be chosen by an adversary. Common
// solution is to hash any input before calculating the signature.
//
// The produced signature is in the [R || S || V] format where V is 0 or 1.
Expand Down
2 changes: 1 addition & 1 deletion eth/catalyst/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ type ConsensusAPI struct {
// problematic, so we will only track the head chain segment of a bad
// chain to allow discarding progressing bad chains and side chains,
// without tracking too much bad data.
invalidBlocksHits map[common.Hash]int // Emhemeral cache to track invalid blocks and their hit count
invalidBlocksHits map[common.Hash]int // Ephemeral cache to track invalid blocks and their hit count
invalidTipsets map[common.Hash]*types.Header // Ephemeral cache to track invalid tipsets and their bad ancestor
invalidLock sync.Mutex // Protects the invalid maps from concurrent access

Expand Down
2 changes: 1 addition & 1 deletion eth/downloader/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ func (q *queue) ExpireReceipts(peer string) int {
// lock is not obtained in here is that the parameters already need to access
// the queue, so they already need a lock anyway.
func (q *queue) expire(peer string, pendPool map[string]*fetchRequest, taskQueue *prque.Prque) int {
// Retrieve the request being expired and log an error if it's non-existnet,
// Retrieve the request being expired and log an error if it's non-existent,
// as there's no order of events that should lead to such expirations.
req := pendPool[peer]
if req == nil {
Expand Down
2 changes: 1 addition & 1 deletion eth/downloader/skeleton.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
// scratchHeaders is the number of headers to store in a scratch space to allow
// concurrent downloads. A header is about 0.5KB in size, so there is no worry
// about using too much memory. The only catch is that we can only validate gaps
// afer they're linked to the head, so the bigger the scratch space, the larger
// after they're linked to the head, so the bigger the scratch space, the larger
// potential for invalid headers.
//
// The current scratch space of 131072 headers is expected to use 64MB RAM.
Expand Down
4 changes: 2 additions & 2 deletions eth/fetcher/tx_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ type TxFetcher struct {
// broadcast without needing explicit request/reply round trips.
waitlist map[common.Hash]map[string]struct{} // Transactions waiting for an potential broadcast
waittime map[common.Hash]mclock.AbsTime // Timestamps when transactions were added to the waitlist
waitslots map[string]map[common.Hash]struct{} // Waiting announcement sgroupped by peer (DoS protection)
waitslots map[string]map[common.Hash]struct{} // Waiting announcements grouped by peer (DoS protection)

// Stage 2: Queue of transactions that waiting to be allocated to some peer
// to be retrieved directly.
Expand Down Expand Up @@ -218,7 +218,7 @@ func (f *TxFetcher) Notify(peer string, hashes []common.Hash) error {
txAnnounceInMeter.Mark(int64(len(hashes)))

// Skip any transaction announcements that we already know of, or that we've
// previously marked as cheap and discarded. This check is of course racey,
// previously marked as cheap and discarded. This check is of course racy,
// because multiple concurrent notifies will still manage to pass it, but it's
// still valuable to check here because it runs concurrent to the internal
// loop, so anything caught here is time saved internally.
Expand Down
2 changes: 1 addition & 1 deletion eth/protocols/eth/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func (p *Peer) dispatcher() {
}

case cancelOp := <-p.reqCancel:
// Retrieve the pendign request to cancel and short circuit if it
// Retrieve the pending request to cancel and short circuit if it
// has already been serviced and is not available anymore
req := pending[cancelOp.id]
if req == nil {
Expand Down
2 changes: 1 addition & 1 deletion eth/protocols/eth/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func testGetBlockBodies(t *testing.T, protocol uint) {
}
// Run each of the tests and verify the results against the chain
for i, tt := range tests {
// Collect the hashes to request, and the response to expectva
// Collect the hashes to request, and the response to expect
var (
hashes []common.Hash
bodies []*BlockBody
Expand Down
2 changes: 1 addition & 1 deletion eth/protocols/eth/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (p *Peer) markTransaction(hash common.Hash) {
// not be managed directly.
//
// The reasons this is public is to allow packages using this protocol to write
// tests that directly send messages without having to do the asyn queueing.
// tests that directly send messages without having to do the async queueing.
func (p *Peer) SendTransactions(txs types.Transactions) error {
// Mark all the transactions as known, but ensure we don't overflow our limits
for _, tx := range txs {
Expand Down
4 changes: 2 additions & 2 deletions eth/protocols/snap/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func HandleMessage(backend Backend, peer *Peer) error {
}
defer msg.Discard()
start := time.Now()
// Track the emount of time it takes to serve the request and run the handler
// Track the amount of time it takes to serve the request and run the handler
if metrics.Enabled {
h := fmt.Sprintf("%s/%s/%d/%#02x", p2p.HandleHistName, ProtocolName, peer.Version(), msg.Code)
defer func(start time.Time) {
Expand Down Expand Up @@ -343,7 +343,7 @@ func ServiceGetStorageRangesQuery(chain *core.BlockChain, req *GetStorageRangesP
req.Bytes = softResponseLimit
}
// TODO(karalabe): Do we want to enforce > 0 accounts and 1 account if origin is set?
// TODO(karalabe): - Logging locally is not ideal as remote faulst annoy the local user
// TODO(karalabe): - Logging locally is not ideal as remote faults annoy the local user
// TODO(karalabe): - Dropping the remote peer is less flexible wrt client bugs (slow is better than non-functional)

// Calculate the hard limit at which to abort, even if mid storage trie
Expand Down
2 changes: 1 addition & 1 deletion eth/protocols/snap/range_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func TestHashRanges(t *testing.T) {
// meaningful space size for manual verification.
// - The head being 0xff...f0, we have 14 hashes left in the space
// - Chunking up 14 into 3 pieces is 4.(6), but we need the ceil of 5 to avoid a micro-last-chunk
// - Since the range is not divisible, the last interval will be shrter, capped at 0xff...f
// - Since the range is not divisible, the last interval will be shorter, capped at 0xff...f
// - The chunk ranges thus needs to be [..0, ..5], [..6, ..b], [..c, ..f]
{
head: common.HexToHash("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0"),
Expand Down
6 changes: 3 additions & 3 deletions eth/protocols/snap/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const (
// and waste round trip times. If it's too high, we're capping responses and
// waste bandwidth.
//
// Depoyed bytecodes are currently capped at 24KB, so the minimum request
// Deployed bytecodes are currently capped at 24KB, so the minimum request
// size should be maxRequestSize / 24K. Assuming that most contracts do not
// come close to that, requesting 4x should be a good approximation.
maxCodeRequestCount = maxRequestSize / (24 * 1024) * 4
Expand All @@ -87,8 +87,8 @@ const (
trienodeHealRateMeasurementImpact = 0.005

// minTrienodeHealThrottle is the minimum divisor for throttling trie node
// heal requests to avoid overloading the local node and exessively expanding
// the state trie bedth wise.
// heal requests to avoid overloading the local node and excessively expanding
// the state trie breadth wise.
minTrienodeHealThrottle = 1

// maxTrienodeHealThrottle is the maximum divisor for throttling trie node
Expand Down
2 changes: 1 addition & 1 deletion eth/tracers/internal/tracetest/calltrace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func testCallTracer(tracerName string, dirPath string, t *testing.T) {
if _, err = st.TransitionDb(); err != nil {
t.Fatalf("failed to execute transaction: %v", err)
}
// Retrieve the trace result and compare against the etalon
// Retrieve the trace result and compare against the expected.
res, err := tracer.GetResult()
if err != nil {
t.Fatalf("failed to retrieve trace result: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion eth/tracers/internal/tracetest/prestate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func testPrestateDiffTracer(tracerName string, dirPath string, t *testing.T, typ
if _, err = st.TransitionDb(); err != nil {
t.Fatalf("failed to execute transaction: %v", err)
}
// Retrieve the trace result and compare against the etalon
// Retrieve the trace result and compare against the expected
res, err := tracer.GetResult()
if err != nil {
t.Fatalf("failed to retrieve trace result: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion eth/tracers/internal/tracetest/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"unicode"

// Force-load native and js pacakges, to trigger registration
// Force-load native and js packages, to trigger registration
_ "github.com/ethereum/go-ethereum/eth/tracers/js"
_ "github.com/ethereum/go-ethereum/eth/tracers/native"
)
Expand Down
2 changes: 1 addition & 1 deletion ethclient/ethclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ func testTransactionInBlockInterrupted(t *testing.T, client *rpc.Client) {
t.Fatalf("unexpected error: %v", err)
}

// Test tx in block interupted.
// Test tx in block interrupted.
ctx, cancel := context.WithCancel(context.Background())
cancel()
tx, err := ec.TransactionInBlock(ctx, block.Hash(), 0)
Expand Down
4 changes: 2 additions & 2 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ func (s *PersonalAccountAPI) signTransaction(ctx context.Context, args *Transact
// passwd isn't able to decrypt the key it fails.
func (s *PersonalAccountAPI) SendTransaction(ctx context.Context, args TransactionArgs, passwd string) (common.Hash, error) {
if args.Nonce == nil {
// Hold the addresse's mutex around signing to prevent concurrent assignment of
// Hold the mutex around signing to prevent concurrent assignment of
// the same nonce to multiple accounts.
s.nonceLock.LockAddr(args.from())
defer s.nonceLock.UnlockAddr(args.from())
Expand Down Expand Up @@ -1719,7 +1719,7 @@ func (s *TransactionAPI) SendTransaction(ctx context.Context, args TransactionAr
}

if args.Nonce == nil {
// Hold the addresse's mutex around signing to prevent concurrent assignment of
// Hold the mutex around signing to prevent concurrent assignment of
// the same nonce to multiple accounts.
s.nonceLock.LockAddr(args.from())
defer s.nonceLock.UnlockAddr(args.from())
Expand Down
2 changes: 1 addition & 1 deletion internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func Info() (version, vcs string) {
// versionInfo returns version information for the currently executing
// implementation.
//
// Depending on how the code is instansiated, it returns different amounts of
// Depending on how the code is instantiated, it returns different amounts of
// information. If it is unable to determine which module is related to our
// package it falls back to the hardcoded values in the params package.
func versionInfo(info *debug.BuildInfo) string {
Expand Down
2 changes: 1 addition & 1 deletion les/downloader/resultstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (r *resultStore) HasCompletedItems() bool {
// countCompleted returns the number of items ready for delivery, stopping at
// the first non-complete item.
//
// The mthod assumes (at least) rlock is held.
// The method assumes (at least) rlock is held.
func (r *resultStore) countCompleted() int {
// We iterate from the already known complete point, and see
// if any more has completed since last count
Expand Down
2 changes: 1 addition & 1 deletion les/fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func testInvalidAnnounces(t *testing.T, protocol int) {
peer.cpeer.sendAnnounce(announce)
<-done // Wait syncing

// Ensure the bad peer is evicited
// Ensure the bad peer is evicted
if c.handler.backend.peers.len() != 0 {
t.Fatalf("Failed to evict invalid peer")
}
Expand Down
Loading