good morning!!!!

Skip to content
Snippets Groups Projects
  1. May 22, 2020
    • Zsolt Felföldi's avatar
      les, les/lespay: implement new server pool (#20758) · b4a26811
      Zsolt Felföldi authored
      This PR reimplements the light client server pool. It is also a first step
      to move certain logic into a new lespay package. This package will contain
      the implementation of the lespay token sale functions, the token buying and
      selling logic and other components related to peer selection/prioritization
      and service quality evaluation. Over the long term this package will be
      reusable for incentivizing future protocols.
      
      Since the LES peer logic is now based on enode.Iterator, it can now use
      DNS-based fallback discovery to find servers.
      
      This document describes the function of the new components:
      https://gist.github.com/zsfelfoldi/3c7ace895234b7b345ab4f71dab102d4
      b4a26811
  2. May 12, 2020
  3. May 01, 2020
  4. Apr 24, 2020
  5. Apr 22, 2020
    • Gary Rong's avatar
      all: seperate consensus error and evm internal error (#20830) · b9df7ecd
      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
      b9df7ecd
  6. Apr 20, 2020
  7. Apr 15, 2020
    • Martin Holst Swende's avatar
      all: simplify and fix database iteration with prefix/start (#20808) · 6402c42b
      Martin Holst Swende authored
      * core/state/snapshot: start fixing disk iterator seek
      
      * ethdb, rawdb, leveldb, memorydb: implement iterators with prefix and start
      
      * les, core/state/snapshot: iterator fixes
      
      * all: remove two iterator methods
      
      * all: rename Iteratee.NewIteratorWith -> NewIterator
      
      * ethdb: fix review concerns
      6402c42b
    • Gary Rong's avatar
      accounts/abi: implement new fallback functions (#20764) · 00064ddc
      Gary Rong authored
      
      * accounts/abi: implement new fackball functions
      
      In Solidity v0.6.0, the original fallback is separated
      into two different sub types: fallback and receive.
      
      This PR addes the support for parsing new format abi
      and the relevant abigen functionalities.
      
      * accounts/abi: fix unit tests
      
      * accounts/abi: minor fixes
      
      * accounts/abi, mobile: support jave binding
      
      * accounts/abi: address marius's comment
      
      * accounts/abi: Work around the uin64 conversion issue
      
      Co-authored-by: default avatarGuillaume Ballet <gballet@gmail.com>
      00064ddc
  8. Apr 09, 2020
  9. Apr 07, 2020
  10. Apr 02, 2020
  11. Mar 31, 2020
    • Gary Rong's avatar
      les: create utilities as common package (#20509) · f78ffc05
      Gary Rong authored
      * les: move execqueue into utilities package
      
      execqueue is a util for executing queued functions
      in a serial order which is used by both les server
      and les client. Move it to common package.
      
      * les: move randselect to utilities package
      
      weighted_random_selector is a helpful tool for randomly select
      items maintained in a set but based on the item weight.
      
      It's used anywhere is LES package, mainly by les client but will
      be used in les server with very high chance. So move it into a
      common package as the second step for les separation.
      
      * les: rename to utils
      f78ffc05
  12. Mar 27, 2020
  13. Mar 23, 2020
    • Martin Holst Swende's avatar
      internal/ethapi: don't set sender-balance to maxuint, fixes #16999 (#20783) · 39f50232
      Martin Holst Swende authored
      Prior to this change, eth_call changed the balance of the sender account in the
      EVM environment to 2^256 wei to cover the gas cost of the call execution.
      We've had this behavior for a long time even though it's super confusing.
      
      This commit sets the default call gasprice to zero instead of updating the balance,
      which is better because it makes eth_call semantics less surprising. Removing
      the built-in balance assignment also makes balance overrides work as expected.
      39f50232
  14. Mar 12, 2020
  15. Feb 26, 2020
  16. Feb 25, 2020
  17. Feb 20, 2020
  18. Feb 18, 2020
  19. Feb 11, 2020
  20. Jan 08, 2020
  21. Jan 07, 2020
    • Gary Rong's avatar
      les/checkpointoracle: move oracle into its own package (#20508) · c6285e64
      Gary Rong authored
      * les: move the checkpoint oracle into its own package
      
      It's first step of refactor LES package. LES package
      basically can be divided into LES client and LES server.
      However both sides will use checkpoint package for
      status retrieval and verification. So this PR moves
      checkpoint oracle into a separate package
      
      * les: address comments
      c6285e64
  22. Dec 25, 2019
  23. Dec 10, 2019
  24. Dec 06, 2019
    • Martin Holst Swende's avatar
      consensus/ethash, params: eip-2384: bump difficulty bomb (#20347) · bc01593a
      Martin Holst Swende authored
      * consensus/ethash, params: implement eip-2384: bump difficulty bomb
      
      * params: EIP 2384 compat checks
      
      * consensus, params: add Muir Glacier block number (mainnet,ropsten) + official name
      
      * core/forkid: forkid tests for muir glacier
      
      * params/config: address review concerns
      
      * params, core/forkid: review nitpicks
      
      * cmd/geth,eth,les: add override option for muir glacier
      
      * params: nit fix
      bc01593a
  25. Nov 27, 2019
  26. Nov 26, 2019
  27. Nov 19, 2019
  28. Nov 18, 2019
    • Zsolt Felföldi's avatar
    • Felix Lange's avatar
      build: use golangci-lint (#20295) · 68948644
      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
      68948644
  29. Nov 13, 2019
  30. Nov 06, 2019
  31. Nov 02, 2019
  32. Oct 02, 2019
  33. Sep 26, 2019
  34. Sep 25, 2019
  35. Sep 17, 2019
    • Zsolt Felföldi's avatar
      les: multiple server bugfixes (#20079) · 0ac9bbba
      Zsolt Felföldi authored
      * les: detailed relative cost metrics
      
      * les: filter txpool relative request statistic
      
      * les: initialize price factors
      
      * les: increased connected bias to lower churn rate
      
      * les: fixed clientPool.setLimits
      
      * core: do not use mutex in GetAncestor
      
      * les: bump factor db version again
      
      * les: add metrics
      
      * les, light: minor fixes
      0ac9bbba
  36. Sep 16, 2019
    • Felix Lange's avatar
      common/mclock: clean up AfterFunc support (#20054) · b1c3010b
      Felix Lange authored
      This change adds tests for the virtual clock and aligns the interface
      with the time package by renaming Cancel to Stop. It also removes the
      binary search from Stop because it complicates the code unnecessarily.
      b1c3010b
  37. Sep 11, 2019
    • Felix Lange's avatar
      all: make unit tests work with Go 1.13 (#20053) · 39b0b1a1
      Felix Lange authored
      Most of these changes are related to the Go 1.13 changes to test binary
      flag handling. 
      
      * cmd/geth: make attach tests more reliable
      
      This makes the test wait for the endpoint to come up by polling
      it instead of waiting for two seconds.
      
      * tests: fix test binary flags for Go 1.13
      
      Calling flag.Parse during package initialization is prohibited
      as of Go 1.13 and causes test failures. Call it in TestMain instead.
      
      * crypto/ecies: remove useless -dump flag in tests
      
      * p2p/simulations: fix test binary flags for Go 1.13
      
      Calling flag.Parse during package initialization is prohibited
      as of Go 1.13 and causes test failures. Call it in TestMain instead.
      
      * build: remove workaround for ./... vendor matching
      
      This workaround was necessary for Go 1.8. The Go 1.9 release changed
      the expansion rules to exclude vendored packages.
      
      * Makefile: use relative path for GOBIN
      
      This makes the "Run ./build/bin/..." line look nicer.
      
      * les: fix test binary flags for Go 1.13
      
      Calling flag.Parse during package initialization is prohibited
      as of Go 1.13 and causes test failures. Call it in TestMain instead.
      39b0b1a1
  38. Aug 27, 2019
Loading