- Jun 18, 2021
-
-
ledgerwatch authored
* Try to solve sentry hanging problem + p2p impovement from geth * Fix import * Finer stream lock Co-authored-by:
Alexey Sharp <alexeysharp@Alexeys-iMac.local>
-
- Jun 04, 2021
-
-
Alex Sharov authored
* eip 1559_tx_constraints * eip 1559_tx_constraints * return error on uint256 overflow * up uint256 version * merge master * fix master Co-authored-by:
ledgerwatch <akhounov@gmail.com>
-
- May 20, 2021
-
-
Alex Sharov authored
* rename * rename "make grpc" * rename "abi bindings templates" * rename "abi bindings templates"
-
- Apr 22, 2021
-
-
ledgerwatch authored
* Where I am at * Refactoring of transaction types * More refactoring * Use Homested signer in rpc daemon * Unified signer * Continue unified signer * A bit more * Fixes and down the rabbit hole... * More tx pool fixes * More refactoring fixes * More fixes' * more fixes * More fixes * More compile fixes * More RLP hand-writing * Finish RLP encoding/decoding of transactions * Fixes to header encoding, start on protocol packets * Transaction decoding * Use DecodeTransaction function * Decoding BlockBodyPacket * Encode and decode for pool txs * Start fixing tests * Introduce SigningHash * Fixes to SignHash * RLP encoding fixes * Fixes for encoding/decoding * More test fixes * Fix more tests * More test fixes * More test fixes * Fix core tests * More fixes for signer * Fix for tx * Fixes to string encoding/size * Fix eip2930 test * Fix rest of ./tests * More fixes * Fix compilation * More test fixes * More test fixes * Test fixes * More fixes * Reuse EncodingSize in EncodeRLP for accessList * Rearrange things in dynamic fee tx * Add MarshalBinary * More fixes * Make V,R,S non-pointers * More NPE fixes * More fixes * Receipt fixes * Fix core/types * Fix ./eth * More compile fixes for tests * More test fixes * More test fixes * Try to see lint errors better * Try to see lint errors better * Fix lint * Debugging eip1559 test * Fix TestEIP1559Transition test * Fix NewBlockPacket encoding/decoding * Fix calculation of TxHash * Fix perf problem with senders * Update aleut config values * Try adding static peers * Add staticpeers to defaul flags * Change aleut networkID * Fix test Co-authored-by:
Alex Sharp <alexsharp@Alexs-MacBook-Pro.local> Co-authored-by:
Alexey Sharp <alexeysharp@Alexeys-iMac.local>
-
- Mar 29, 2021
-
-
Artem Vorotnikov authored
-
- Mar 17, 2021
-
-
Alexey Sharp authored
-
- Mar 10, 2021
-
-
Or Neeman authored
io.Reader may return n > 0 and io.EOF at the end of the input stream. readFull did not handle this correctly, looking only at the error. This fixes it to check for n == len(buf) as well.
-
- Mar 08, 2021
-
-
Alex Prut authored
Changes: Simplify nested complexity If an if blocks ends with a return statement then remove the else nesting. Most of the changes has also been reported in golint https://goreportcard.com/report/github.com/ethereum/go-ethereum#golint # Conflicts: # cmd/utils/flags.go # console/bridge.go # crypto/bls12381/g2.go # les/benchmark.go # les/lespay/server/balance.go # les/lespay/server/balance_tracker.go # les/lespay/server/prioritypool.go # les/odr_requests.go # les/serverpool.go # les/serverpool_test.go # p2p/nodestate/nodestate_test.go # trie/committer.go
-
- Dec 03, 2020
-
-
Martin Holst Swende authored
This PR contains a minor optimization in derivesha, by exposing the RLP int-encoding and making use of it to write integers directly to a buffer (an RLP integer is known to never require more than 9 bytes total). rlp.AppendUint64 might be useful in other places too. The code assumes, just as before, that the hasher (a trie) will copy the key internally, which it does when doing keybytesToHex(key). Co-authored-by:
Felix Lange <fjl@twurst.com> # Conflicts: # core/types/derive_sha.go
-
- Oct 06, 2020
-
-
Igor Mandrigin authored
-
Felix Lange authored
This can be useful when working with raw RLP data.
-
- Aug 08, 2020
-
-
Igor Mandrigin authored
-
- Aug 07, 2020
-
-
Felix Lange authored
This change further improves the performance of RLP encoding by removing allocations for big.Int and [...]byte types. I have added a new benchmark that measures RLP encoding of types.Block to verify that performance is improved. # Conflicts: # core/types/block_test.go # rlp/encode.go # rlp/encode_test.go
-
Marius van der Wijden authored
List headers made up 11% of all allocations during sync. This change removes most of those allocations by keeping the list header values cached in the encoder buffer instead. Since encoder buffers are pooled, list headers are no longer allocated in the common case where an encoder buffer is available for reuse. Co-authored-by:
Felix Lange <fjl@twurst.com> # Conflicts: # rlp/encode.go
-
- Jul 15, 2020
-
-
ledgerwatch authored
* no pools * Remove excessive logging * Revert * Initial commit * Cleanup * Fix some compile errors * Fix core tests * Fix more tests * Fix eth/downloader * go mod tidy * Fix core/vm * Fix formatting * Fix formatting * Fix lint * Fix lint * Switch tests to StagedSync * Cleanup * Reuse cache in stage4 * Fix * Fix formatting * Try to fix test
-
- Jun 04, 2020
-
-
Andrew Ashikhmin authored
* uint256 in rlp * uint256 rather than big.Int in Transation * linters * more linters * still linters * Reduce garbage in writeUint256 * Experiment with GC in writeByteArray * Misc GC optimisations * unsafe experiment with writeByteArray
-
Andrew Ashikhmin authored
* uint256 in rlp * uint256 rather than big.Int in Transation * linters * more linters * still linters * Reduce garbage in writeUint256 * Experiment with GC in writeByteArray
-
- May 20, 2020
-
-
Igor Mandrigin authored
-
Martin Holst Swende authored
* cmd, core, eth: init tx lookup in background * core/rawdb: tiny log fixes to make it clearer what's happening * core, eth: fix rebase errors * core/rawdb: make reindexing less generic, but more optimal * rlp: implement rlp list iterator * core/rawdb: new implementation of tx indexing/unindex using generic tx iterator and hashing rlp-data * core/rawdb, cmd/utils: fix review concerns * cmd/utils: fix merge issue * core/rawdb: add some log formatting polishes Co-authored-by:
rjl493456442 <garyrong0905@gmail.com> Co-authored-by:
Péter Szilágyi <peterke@gmail.com> # Conflicts: # accounts/abi/bind/backends/simulated.go # cmd/geth/main.go # cmd/geth/usage.go # cmd/utils/flags.go # consensus/clique/snapshot_test.go # core/bench_test.go # core/block_validator_test.go # core/blockchain.go # core/blockchain_test.go # core/chain_makers_test.go # core/dao_test.go # core/rawdb/accessors_indexes.go # core/rawdb/schema.go # eth/config.go # eth/helper_test.go # eth/sync.go # light/odr_test.go # light/trie_test.go # light/txpool_test.go # miner/worker_test.go # tests/block_test_util.go
-
- Dec 03, 2019
-
-
Felix Lange authored
* rlp: fix staticcheck warnings * rlp: fix ExampleDecode test
-
Felix Lange authored
* build: use golangci-lint This changes build/ci.go to download and run golangci-lint instead of gometalinter. * core/state: fix unnecessary conversion * p2p/simulations: fix lock copying (found by go vet) * signer/core: fix unnecessary conversions * crypto/ecies: remove unused function cmpPublic * core/rawdb: remove unused function print * core/state: remove unused function xTestFuzzCutter * core/vm: disable TestWriteExpectedValues in a different way * core/forkid: remove unused function checksum * les: remove unused type proofsData * cmd/utils: remove unused functions prefixedNames, prefixFor * crypto/bn256: run goimports * p2p/nat: fix goimports lint issue * cmd/clef: avoid using unkeyed struct fields * les: cancel context in testRequest * rlp: delete unreachable code * core: gofmt * internal/build: simplify DownloadFile for Go 1.11 compatibility * build: remove go test --short flag * .travis.yml: disable build cache * whisper/whisperv6: fix ineffectual assignment in TestWhisperIdentityManagement * .golangci.yml: enable goconst and ineffassign linters * build: print message when there are no lint issues * internal/build: refactor download a bit
-
- Nov 04, 2019
-
-
Andrew Ashikhmin authored
-
- Nov 01, 2019
-
-
Alexey Akhunov authored
-
- Sep 13, 2019
-
-
Felix Lange authored
* rlp: improve nil pointer handling In both encoder and decoder, the rules for encoding nil pointers were a bit hard to understand, and didn't leave much choice. Since RLP allows two empty values (empty list, empty string), any protocol built on RLP must choose either of these values to represent the null value in a certain context. This change adds choice in the form of two new struct tags, "nilString" and "nilList". These can be used to specify how a nil pointer value is encoded. The "nil" tag still exists, but its implementation is now explicit and defines exactly how nil pointers are handled in a single place. Another important change in this commit is how nil pointers and the Encoder interface interact. The EncodeRLP method was previously called even on nil values, which was supposed to give users a choice of how their value would be handled when nil. It turns out this is a stupid idea. If you create a network protocol containing an object defined in another package, it's better to be able to say that the object should be a list or string when nil in the definition of the protocol message rather than defining the encoding of nil on the object itself. As of this commit, the encoding rules for pointers now take precedence over the Encoder interface rule. I think the "nil" tag will work fine for most cases. For special kinds of objects which are a struct in Go but strings in RLP, code using the object can specify the desired encoding of nil using the "nilString" and "nilList" tags. * rlp: propagate struct field type errors If a struct contained fields of undecodable type, the encoder and decoder would panic instead of returning an error. Fix this by propagating type errors in makeStruct{Writer,Decoder} and add a test.
-
- May 14, 2019
-
-
Felix Lange authored
These changes fix two corner cases related to internal handling of types in package rlp: The "tail" struct tag can only be applied to the last field. The check for this was wrong and didn't allow for private fields after the field with the tag. Unsupported types (e.g. structs containing int) which implement either the Encoder or Decoder interface but not both couldn't be encoded/decoded. Also fixes #19367
-
- Feb 25, 2019
-
-
Marius van der Wijden authored
Prevents reallocation, improves performance
-
- Sep 11, 2018
-
-
chenyufeng authored
-
- May 08, 2018
-
-
kiel barry authored
-
- Dec 11, 2017
-
-
Felix Lange authored
Issue found by @guidovranken
-
- Aug 24, 2017
-
-
Péter Szilágyi authored
-
- Jun 12, 2017
-
-
S. Matthew English authored
-
- Mar 07, 2017
-
-
Felix Lange authored
-
- Apr 15, 2016
-
-
Felix Lange authored
-
Felix Lange authored
-
- Feb 19, 2016
-
-
Felix Lange authored
-
- Sep 10, 2015
-
-
Felix Lange authored
-
Felix Lange authored
-
Felix Lange authored
These functions allow destructuring of raw rlp-encoded bytes without the overhead of reflection or copying.
-
Felix Lange authored
The bug can cause crashes if Read is called after EOF has been returned. No code performs such calls right now, but hitting the bug gets more likely as rlp.EncodeToReader gets used in more places.
-
- Aug 13, 2015
-
-
Péter Szilágyi authored
-