- May 04, 2020
-
-
Péter Szilágyi authored
-
Péter Szilágyi authored
tests: cleanup snapshot generator goroutine leak
-
Marius van der Wijden authored
-
Marius van der Wijden authored
* accounts/abi: removed Kind from Type struct * accounts/abi: removed unused code
-
Péter Szilágyi authored
-
- May 01, 2020
-
-
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
-
Felix Lange authored
-
- Apr 30, 2020
-
-
Martin Holst Swende authored
-
Gary Rong authored
-
Péter Szilágyi authored
core/state/snapshot: fix journal nil deserialziation
-
- Apr 29, 2020
-
-
Péter Szilágyi authored
-
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
-
- Apr 28, 2020
-
-
ucwong authored
-
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
-
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.
-
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>
-
- Apr 27, 2020
-
-
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>
-
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
-
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
eth: fix shutdown regression to abort downloads, not just cancel
-
Péter Szilágyi authored
-
- Apr 24, 2020
- Apr 22, 2020
-
-
Marius van der Wijden authored
* accounts/keystore: fix race in Import/ImportECDSA * accounts/keystore: added import/export tests * cmd/geth: improved TestAccountImport test * accounts/keystore: added import/export tests * accounts/keystore: fixed naming * accounts/keystore: fixed typo * accounts/keystore: use mutex instead of rwmutex * accounts: use errors instead of fmt
-
icodezjb authored
* core: fix the condition of reorg * core: fix nitpick to only retrieve head once * core: don't reorg if received chain is longer at same diff Co-authored-by:
Péter Szilágyi <peterke@gmail.com>
-
Gary Rong authored
* all: seperate consensus error and evm internal error There are actually two types of error will be returned when a tranaction/message call is executed: (a) consensus error (b) evm internal error. The former should be converted to a consensus issue, e.g. The sender doesn't enough asset to purchase the gas it specifies. The latter is allowed since evm itself is a blackbox and internal error is allowed to happen. This PR emphasizes the difference by introducing a executionResult structure. The evm error is embedded inside. So if any error returned, it indicates consensus issue happens. And also this PR improve the `EstimateGas` API to return the concrete revert reason if the transaction always fails * all: polish * accounts/abi/bind/backends: add tests * accounts/abi/bind/backends, internal: cleanup error message * all: address comments * core: fix lint * accounts, core, eth, internal: address comments * accounts, internal: resolve revert reason if possible * accounts, internal: address comments
-
ucwong authored
-
Péter Szilágyi authored
core/state/snapshot: make difflayer account iterator seek operation inclusive
-
- Apr 21, 2020
-
-
ucwong authored
-
Martin Holst Swende authored
-
Boqin Qin authored
* Forget Unlock in snapshot * Remove Unlock before panic
-
- Apr 20, 2020
-
-
Péter Szilágyi authored
trie: fix concurrent usage of secKeyBuf, ref #20920
-
rene authored
-
Marius van der Wijden authored
* accounts/abi: prevent recalculation of ID, Sig and String * accounts/abi: fixed unpacking of no values * accounts/abi: multiple fixes to arguments * accounts/abi: refactored methodName and eventName This commit moves the complicated logic of how we assign method names and event names if they already exist into their own functions for better readability. * accounts/abi: prevent recalculation of internal In this commit, I changed the way we calculate the string representations, sig representations and the id's of methods. Before that these fields would be recalculated everytime someone called .Sig() .String() or .ID() on a method or an event. Additionally this commit fixes issue #20856 as we assign names to inputs with no name (input with name "" becomes "arg0") * accounts/abi: added unnamed event params test * accounts/abi: fixed rebasing errors in method sig * accounts/abi: fixed rebasing errors in method sig * accounts/abi: addressed comments * accounts/abi: added FunctionType enumeration * accounts/abi/bind: added test for unnamed arguments * accounts/abi: improved readability in NewMethod, nitpicks * accounts/abi: method/eventName -> overloadedMethodName
-
- Apr 17, 2020
-
-
Boqin Qin authored
Co-authored-by:
Felix Lange <fjl@twurst.com>
-