- May 20, 2020
-
-
Martin Holst Swende authored
This finally adds the error check that the documentation of StateDB.dbErr promises to do. dbErr was added in 9e5f03b6 (June 2017), and the check was already missing in that commit. We somehow survived without it for three years. # Conflicts: # core/state/statedb.go # core/state/statedb_test.go
-
Martin Holst Swende authored
* Include 0x0000 address into the dump if it is present * core/state: go fmt Co-authored-by:
Alexey Akhunov <akhounov@gmail.com> # Conflicts: # core/state/dump.go
-
Marius van der Wijden authored
* accounts/abi/bind: add void if no return args specified Currently the java generator generates invalid input on pure/view functions that have no return type. e.g. `function f(uint u) view public {}` This is not a problem in practice as people rarely ever write functions like this. * accounts/abi/bind: use elseif instead of nested if
-
gary rong authored
# Conflicts: # core/state/snapshot/difflayer.go
-
Péter Szilágyi authored
# Conflicts: # core/state/snapshot/difflayer.go
-
Boqin Qin authored
-
Guillaume Ballet authored
# Conflicts: # trie/sync.go
-
gary rong authored
# Conflicts: # trie/proof_test.go
-
ploui authored
* eth: don't reassign more cache than is being made available * eth: don't inadvertently enable snapshot in a case where --snapshot wasn't given # Conflicts: # eth/backend.go
-
Péter Szilágyi authored
-
Marius van der Wijden authored
* accounts/abi: added getType func to Type struct * accounts/abi: fixed tuple unpack * accounts/abi: removed type.Type * accounts/abi: added comment * accounts/abi: removed unused types * accounts/abi: removed superfluous declarations * accounts/abi: typo # Conflicts: # accounts/abi/numbers.go
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
rene authored
* rpc flags related to starting http server renamed to http * old rpc flags aliased and still functional * pprof flags fixed * renames gpo related flags * linted * renamed rpc flags for consistency and clarity * added warn logs * added more warn logs for all deprecated flags for consistency * moves legacy flags to separate file, hides older flags under show-deprecated-flags command * legacy prefix and moved some more legacy flags to legacy file * fixed circular import * added docs * fixed imports lint error * added notes about when flags were deprecated * cmd/utils: group flags by deprecation date + reorder by date, * modified deprecated comments for consistency, added warn log for --rpc * making sure deprecated flags are still functional * show-deprecated-flags command cleaned up * fixed lint errors * corrected merge conflict * IsSet --> GlobalIsSet * uncategorized flags, if not deprecated, displayed under misc Co-authored-by:
Martin Holst Swende <martin@swende.se> # Conflicts: # cmd/geth/main.go # cmd/geth/usage.go # internal/debug/flags.go
-
Péter Szilágyi authored
-
Igor Mandrigin authored
# Conflicts: # accounts/abi/abi_test.go # accounts/abi/numbers.go # signer/core/signed_data.go
-
Marius van der Wijden authored
* accounts/abi: removed Kind from Type struct * accounts/abi: removed unused code
-
Péter Szilágyi authored
# Conflicts: # cmd/evm/staterunner.go # eth/tracers/tracers_test.go # tests/state_test.go # tests/state_test_util.go # tests/vm_test_util.go
-
Martin Holst Swende authored
This fixes an issue with clef, which already transforms the signature to use the legacy 27/28 encoding. Fixes #20994
-
Boqin Qin authored
# Conflicts: # les/peer_test.go
-
Felix Lange authored
# Conflicts: # go.sum
-
Martin Holst Swende authored
-
gary rong authored
# Conflicts: # core/state/snapshot/conversion.go # go.sum
-
Péter Szilágyi authored
# Conflicts: # core/state/snapshot/journal.go
-
gary rong authored
* core/state/snapshot: implement storage iterator * core/state/snapshot, tests: implement helper function * core/state/snapshot: fix storage issue If an account is deleted in the tx_1 but recreated in the tx_2, the it can happen that in this diff layer, both destructedSet and storageData records this account. In this case, the storage iterator should be able to iterate the slots belong to new account but disable further iteration in deeper layers(belong to old account) * core/state/snapshot: address peter and martin's comment * core/state: address comments * core/state/snapshot: fix test # Conflicts: # core/state/snapshot/account.go # core/state/snapshot/conversion.go # core/state/snapshot/difflayer.go # core/state/snapshot/difflayer_test.go # core/state/snapshot/generate.go # core/state/snapshot/iterator.go # core/state/snapshot/iterator_binary.go # core/state/snapshot/iterator_fast.go # core/state/snapshot/iterator_test.go # core/state/snapshot/snapshot.go # core/state/snapshot/snapshot_test.go # core/state/statedb.go # tests/block_test_util.go
-
ucwong authored
# Conflicts: # go.mod # go.sum
-
Martin Holst Swende authored
* signer: properly handle terminal escape characters * log: use strconv conversion instead of custom escape function * log: remove relection tests for nil
-
ucwong authored
# Conflicts: # whisper/whisperv6/whisper.go
-
Steven E. Harris authored
-
ucwong authored
golang-lru is now a go module, and the upgrade corrects a couple of minor issues. In particular, the library could crash if you inserted nil into an LRU cache. # Conflicts: # go.mod # go.sum
-
Felix Lange authored
This is a resubmit of #20668 which rewrites the problematic test without any additional goroutines. It also documents the test better. The purpose of this test is checking whether log events are sent correctly when importing blocks. The test was written at a time when blockchain events were delivered asynchronously, making the check hard to pull off. Now that core.BlockChain delivers events synchronously during the call to InsertChain, the test can be simplified. Co-authored-by:
BurtonQin <bobbqqin@gmail.com> # Conflicts: # core/blockchain_test.go
-
Julian Y authored
This corrects the call to eth_getBlockByNumber, which previously returned this error: can't get latest block: missing value for required argument 1 Co-authored-by:
Felix Lange <fjl@twurst.com> # Conflicts: # rpc/client_example_test.go
-
Boqin Qin authored
This fixes a theoretical double lock condition which could occur in indexer.AddChildIndexer(indexer) Nobody would ever do that though. Co-authored-by:
Felix Lange <fjl@twurst.com>
-
Marius van der Wijden authored
* accounts/abi: added documentation * accounts/abi: reduced usage of arguments.LengthNonIndexed * accounts/abi: simplified reflection logic * accounts/abi: moved testjson data into global declaration * accounts/abi: removed duplicate test cases * accounts/abi: reworked abi tests * accounts/abi: added more tests for abi packing * accounts/abi/bind: refactored base tests * accounts/abi: run pack tests as subtests * accounts/abi: removed duplicate tests * accounts/abi: removed unnused arguments.LengthNonIndexed Due to refactors to the code, we do not need the arguments.LengthNonIndexed function anymore. You can still get the length by calling len(arguments.NonIndexed()) * accounts/abi: added type test * accounts/abi: modified unpack test to pack test * accounts/abi: length check on arrayTy * accounts/abi: test invalid abi * accounts/abi: fixed rebase error * accounts/abi: fixed rebase errors * accounts/abi: removed unused definition * accounts/abi: merged packing/unpacking tests * accounts/abi: fixed [][][32]bytes encoding * accounts/abi: added tuple test cases * accounts/abi: renamed getMockLog -> newMockLog * accounts/abi: removed duplicate test * accounts/abi: bools -> booleans # Conflicts: # accounts/abi/unpack_test.go
-
Steven E. Harris authored
Rather than just closing the underlying network listener to stop our HTTP servers, use the graceful shutdown procedure, waiting for any in-process requests to finish.
-
Péter Szilágyi authored
-
gary rong authored
# Conflicts: # core/state/snapshot/iterator_binary.go # core/state/snapshot/iterator_test.go
-
gary rong authored
* trie: initial implementation for range proof * trie: add benchmark * trie: fix lint * trie: fix minor issue * trie: unset the edge valuenode as well * trie: unset the edge valuenode as nilValuenode # Conflicts: # les/odr_requests.go # trie/proof.go # trie/proof_test.go
-