good morning!!!!

Skip to content
Snippets Groups Projects
  1. Oct 13, 2020
  2. Sep 29, 2020
  3. Sep 28, 2020
  4. Sep 23, 2020
  5. Sep 14, 2020
    • Zsolt Felföldi's avatar
      les, les/lespay/server: refactor client pool (#21236) · 4996fce2
      Zsolt Felföldi authored
      
      * les, les/lespay/server: refactor client pool
      
      * les: use ns.Operation and sub calls where needed
      
      * les: fixed tests
      
      * les: removed active/inactive logic from peerSet
      
      * les: removed active/inactive peer logic
      
      * les: fixed linter warnings
      
      * les: fixed more linter errors and added missing metrics
      
      * les: addressed comments
      
      * cmd/geth: fixed TestPriorityClient
      
      * les: simplified clientPool state machine
      
      * les/lespay/server: do not use goroutine for balance callbacks
      
      * internal/web3ext: fix addBalance required parameters
      
      * les: removed freeCapacity, always connect at minCapacity initially
      
      * les: only allow capacity change with priority status
      
      Co-authored-by: default avatarrjl493456442 <garyrong0905@gmail.com>
      Unverified
      4996fce2
  6. Sep 07, 2020
  7. Aug 03, 2020
    • rene's avatar
      node: refactor package node (#21105) · c0c01612
      rene authored
      This PR significantly changes the APIs for instantiating Ethereum nodes in
      a Go program. The new APIs are not backwards-compatible, but we feel that
      this is made up for by the much simpler way of registering services on
      node.Node. You can find more information and rationale in the design
      document: https://gist.github.com/renaynay/5bec2de19fde66f4d04c535fd24f0775.
      
      There is also a new feature in Node's Go API: it is now possible to
      register arbitrary handlers on the user-facing HTTP server. In geth, this
      facility is used to enable GraphQL.
      
      There is a single minor change relevant for geth users in this PR: The
      GraphQL API is no longer available separately from the JSON-RPC HTTP
      server. If you want GraphQL, you need to enable it using the
      ./geth --http --graphql flag combination.
      
      The --graphql.port and --graphql.addr flags are no longer available.
      Unverified
      c0c01612
  8. Jul 20, 2020
  9. Jul 14, 2020
  10. Jul 13, 2020
  11. Jul 07, 2020
  12. Jul 04, 2020
  13. Jul 03, 2020
  14. Jul 02, 2020
  15. Jul 01, 2020
  16. Jun 17, 2020
  17. Jun 11, 2020
  18. Jun 10, 2020
  19. Jun 08, 2020
    • Marius van der Wijden's avatar
      internal/ethapi: return revert reason for eth_call (#21083) · 0b3f3be2
      Marius van der Wijden authored
      
      * internal/ethapi: return revert reason for eth_call
      
      * internal/ethapi: moved revert reason logic to doCall
      
      * accounts/abi/bind/backends: added revert reason logic to simulated backend
      
      * internal/ethapi: fixed linting error
      
      * internal/ethapi: check if require reason can be unpacked
      
      * internal/ethapi: better error logic
      
      * internal/ethapi: simplify logic
      
      * internal/ethapi: return vmError()
      
      * internal/ethapi: move handling of revert out of docall
      
      * graphql: removed revert logic until spec change
      
      * rpc: internal/ethapi: added custom error types
      
      * graphql: use returndata instead of return
      
      Return() checks if there is an error. If an error is found, we return nil.
      For most use cases it can be beneficial to return the output even if there
      was an error. This code should be changed anyway once the spec supports
      error reasons in graphql responses
      
      * accounts/abi/bind/backends: added tests for revert reason
      
      * internal/ethapi: add errorCode to revert error
      
      * internal/ethapi: add errorCode of 3 to revertError
      
      * internal/ethapi: unified estimateGasErrors, simplified logic
      
      * internal/ethapi: unified handling of errors in DoEstimateGas
      
      * rpc: print error data field
      
      * accounts/abi/bind/backends: unify simulatedBackend and RPC
      
      * internal/ethapi: added binary data to revertError data
      
      * internal/ethapi: refactored unpacking logic into newRevertError
      
      * accounts/abi/bind/backends: fix EstimateGas
      
      * accounts, console, internal, rpc: minor error interface cleanups
      
      * Revert "accounts, console, internal, rpc: minor error interface cleanups"
      
      This reverts commit 2d3ef53c5304e429a04983210a417c1f4e0dafb7.
      
      * re-apply the good parts of 2d3ef53c53
      
      * rpc: add test for returning server error data from client
      
      Co-authored-by: default avatarrjl493456442 <garyrong0905@gmail.com>
      Co-authored-by: default avatarPéter Szilágyi <peterke@gmail.com>
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      Unverified
      0b3f3be2
  20. May 25, 2020
  21. May 11, 2020
  22. May 05, 2020
    • rene's avatar
      cmd/utils: renames flags related to http-rpc server (#20935) · c989bca1
      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: default avatarMartin Holst Swende <martin@swende.se>
      Unverified
      c989bca1
  23. 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
      Unverified
      b9df7ecd
  24. Apr 09, 2020
  25. Apr 03, 2020
  26. 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.
      Unverified
      39f50232
  27. Mar 18, 2020
  28. Feb 25, 2020
  29. Feb 07, 2020
  30. Feb 03, 2020
  31. Jan 27, 2020
    • Guillaume Ballet's avatar
      console, internal/jsre: use github.com/dop251/goja (#20470) · 7b68975a
      Guillaume Ballet authored
      This replaces the JavaScript interpreter used by the console with goja,
      which is actively maintained and a lot faster than otto. Clef still uses otto
      and eth/tracers still uses duktape, so we are currently dependent on three
      different JS interpreters. We're looking to replace the remaining uses of otto
      soon though.
      7b68975a
  32. Jan 21, 2020
    • Felix Lange's avatar
      log, internal/debug: delete RotatingFileHandler (#20586) · 31baf3a9
      Felix Lange authored
      * log: delete RotatingFileHandler
      
      We added this for the dashboard, which is gone now. The
      handler never really worked well and had data race and file
      handling issues.
      
      * internal/debug: remove unused RotatingFileHandler setup code
      31baf3a9
  33. Jan 14, 2020
    • Felix Lange's avatar
      build: remove env.sh (#20541) · feda78e0
      Felix Lange authored
      * build: remove env.sh
      
      This removes the dirty symlink-to-self hack we've had for years. The
      script was added to enable building without GOPATH and did that job
      reliably for all this time. We can remove the workaround because modern
      Go supports building without GOPATH natively.
      
      * Makefile: add GO111MODULE=on to environment
      feda78e0
  34. Jan 08, 2020
    • Felix Lange's avatar
      internal/testlog: print file+line number of log call in test log (#20528) · 0218d700
      Felix Lange authored
      * internal/testlog: print file+line number of log call in test log
      
      This changes the unit test logger to print the actual file and line
      number of the logging call instead of "testlog.go:44".
      
      Output of 'go test -v -run TestServerListen ./p2p' before this change:
      
          === RUN   TestServerListen
          --- PASS: TestServerListen (0.00s)
              testlog.go:44: DEBUG[01-08|15:16:31.651] UDP listener up         addr=127.0.0.1:62678
              testlog.go:44: DEBUG[01-08|15:16:31.651] TCP listener up         addr=127.0.0.1:62678
              testlog.go:44: TRACE[01-08|15:16:31.652] Accepted connection     addr=127.0.0.1:62679
      
      And after:
      
          === RUN   TestServerListen
          --- PASS: TestServerListen (0.00s)
              server.go:868: DEBUG[01-08|15:25:35.679] TCP listener up         addr=127.0.0.1:62712
              server.go:557: DEBUG[01-08|15:25:35.679] UDP listener up         addr=127.0.0.1:62712
              server.go:912: TRACE[01-08|15:25:35.680] Accepted connection     addr=127.0.0.1:62713
      
      * internal/testlog: document use of t.Helper
      0218d700
  35. Jan 06, 2020
  36. Dec 17, 2019
  37. Dec 10, 2019
Loading