1. 04 Nov, 2021 1 commit
  2. 13 Oct, 2021 1 commit
  3. 12 Oct, 2021 1 commit
  4. 11 Oct, 2021 1 commit
    • Martin Holst Swende's avatar
      consensus/clique, core: API cleanup (#23100) · 62891378
      Martin Holst Swende authored
      This removes some code:
      
      - The clique engine calculated the snapshot twice when verifying headers/blocks.
      
      - The method GetBlockHashesFromHash in Header/Block/Lightchain was only used by tests. It
        is now removed from the API.
        
      - The method GetTdByHash internally looked up the number before calling GetTd(hash, num).
        In many cases, callers already had the number, and used this method just because it has a
        shorter name. I have removed the method to make the API surface smaller.
      62891378
  5. 28 Sep, 2021 1 commit
  6. 10 Sep, 2021 1 commit
  7. 27 Jul, 2021 1 commit
  8. 13 Jul, 2021 1 commit
  9. 28 Jun, 2021 1 commit
    • Felföldi Zsolt's avatar
      eth/gasprice: implement feeHistory API (#23033) · 35dbf7a8
      Felföldi Zsolt authored
      * eth/gasprice: implement feeHistory API
      
      * eth/gasprice: factored out resolveBlockRange
      
      * eth/gasprice: add sanity check for missing block
      
      * eth/gasprice: fetch actual gas used from receipts
      
      * miner, eth/gasprice: add PendingBlockAndReceipts
      
      * internal/ethapi: use hexutil.Big
      
      * eth/gasprice: return error when requesting beyond head block
      
      * eth/gasprice: fixed tests and return errors correctly
      
      * eth/gasprice: rename receiver name
      
      * eth/gasprice: return directly if blockCount == 0
      Co-authored-by: 's avatarrjl493456442 <garyrong0905@gmail.com>
      35dbf7a8
  10. 04 Jun, 2021 1 commit
  11. 02 Jun, 2021 1 commit
    • Martin Holst Swende's avatar
      core, eth, internal, les: RPC methods and fields for EIP 1559 (#22964) · 5cff9754
      Martin Holst Swende authored
      * internal/ethapi: add baseFee to RPCMarshalHeader
      
      * internal/ethapi: add FeeCap, Tip and correct GasPrice to EIP-1559 RPCTransaction results
      
      * core,eth,les,internal: add support for tip estimation in gas price oracle
      
      * internal/ethapi,eth/gasprice: don't suggest tip larger than fee cap
      
      * core/types,internal: use correct eip1559 terminology for json marshalling
      
      * eth, internal/ethapi: fix rebase problems
      
      * internal/ethapi: fix rpc name of basefee
      
      * internal/ethapi: address review concerns
      
      * core, eth, internal, les: simplify gasprice oracle (#25)
      
      * core, eth, internal, les: simplify gasprice oracle
      
      * eth/gasprice: fix typo
      
      * internal/ethapi: minor tweak in tx args
      
      * internal/ethapi: calculate basefee for pending block
      
      * internal/ethapi: fix panic
      
      * internal/ethapi, eth/tracers: simplify txargs ToMessage
      
      * internal/ethapi: remove unused param
      
      * core, eth, internal: fix regressions wrt effective gas price in the evm
      
      * eth/gasprice: drop weird debug println
      
      * internal/jsre/deps: hack in 1559 gas conversions into embedded web3
      
      * internal/jsre/deps: hack basFee to decimal conversion
      
      * internal/ethapi: init feecap and tipcap for legacy txs too
      
      * eth, graphql, internal, les: fix gas price suggestion on all combos
      
      * internal/jsre/deps: handle decimal tipcap and feecap
      
      * eth, internal: minor review fixes
      
      * graphql, internal: export max fee cap RPC endpoint
      
      * internal/ethapi: fix crash in transaction_args
      
      * internal/ethapi: minor refactor to make the code safer
      Co-authored-by: 's avatarRyan Schneider <ryanleeschneider@gmail.com>
      Co-authored-by: 's avatarlightclient@protonmail.com <lightclient@protonmail.com>
      Co-authored-by: 's avatargary rong <garyrong0905@gmail.com>
      Co-authored-by: 's avatarPéter Szilágyi <peterke@gmail.com>
      5cff9754
  12. 07 Apr, 2021 2 commits
    • Marius van der Wijden's avatar
      core, eth, internal/ethapi: create access list RPC API (#22550) · 9d10856e
      Marius van der Wijden authored
      * core/vm: implement AccessListTracer
      
      * eth: implement debug.createAccessList
      
      * core/vm: fixed nil panics in accessListTracer
      
      * eth: better error messages for createAccessList
      
      * eth: some fixes on CreateAccessList
      
      * eth: allow for provided accesslists
      
      * eth: pass accesslist by value
      
      * eth: remove created acocunt from accesslist
      
      * core/vm: simplify access list tracer
      
      * core/vm: unexport accessListTracer
      
      * eth: return best guess if al iteration times out
      
      * eth: return best guess if al iteration times out
      
      * core: docstring, unexport methods
      
      * eth: typo
      
      * internal/ethapi: move createAccessList to eth package
      
      * internal/ethapi: remove reexec from createAccessList
      
      * internal/ethapi: break if al is equal to last run, not if gas is equal
      
      * internal/web3ext: fixed arguments
      
      * core/types: fixed equality check for accesslist
      
      * core/types: no hardcoded vals
      
      * core, internal: simplify access list generation, make it precise
      
      * core/vm: fix typo
      Co-authored-by: 's avatarMartin Holst Swende <martin@swende.se>
      Co-authored-by: 's avatarPéter Szilágyi <peterke@gmail.com>
      9d10856e
    • gary rong's avatar
      eth, les: fix tracers (#22473) · a600dab7
      gary rong authored
      * eth, les: fix tracer
      
      * eth: isolate live trie database in tracer
      
      * eth: fix nil
      
      * eth: fix
      
      * eth, les: add checkLive param
      
      * eth/tracer: fix
      a600dab7
  13. 23 Feb, 2021 1 commit
  14. 25 Jan, 2021 1 commit
    • gary rong's avatar
      eth/tracers: move tracing APIs into eth/tracers (#22161) · adf130de
      gary rong authored
      This moves the tracing RPC API implementation to package eth/tracers.
      By doing so, package eth no longer depends on tracing and the duktape JS engine.
      
      The change also enables tracing using the light client. All tracing methods work with the
      light client, but it's a lot slower compared to using a full node.
      adf130de
  15. 14 Dec, 2020 1 commit
  16. 13 Nov, 2020 1 commit
  17. 03 Aug, 2020 1 commit
    • 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.
      c0c01612
  18. 13 Jul, 2020 1 commit
  19. 01 Jul, 2020 1 commit
  20. 17 Jun, 2020 1 commit
  21. 23 Mar, 2020 1 commit
    • 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
  22. 10 Dec, 2019 1 commit
  23. 26 Sep, 2019 1 commit
  24. 25 Jul, 2019 1 commit
  25. 23 Jul, 2019 1 commit
  26. 09 Jul, 2019 1 commit
  27. 13 May, 2019 1 commit
    • Felföldi Zsolt's avatar
      les, light: implement ODR transaction lookup by hash (#19069) · 40cdcf8c
      Felföldi Zsolt authored
      * les, light: implement ODR transaction lookup by hash
      
      * les: delete useless file
      
      * internal/ethapi: always use backend to find transaction
      
      * les, eth, internal/ethapi: renamed GetCanonicalTransaction to GetTransaction
      
      * light: add canonical header verification to GetTransaction
      40cdcf8c
  28. 02 May, 2019 1 commit
  29. 08 Apr, 2019 1 commit
  30. 04 Apr, 2019 1 commit
  31. 27 Mar, 2019 1 commit
  32. 06 Dec, 2018 1 commit
  33. 29 Sep, 2018 1 commit
  34. 12 Jul, 2018 1 commit
  35. 14 Jun, 2018 1 commit
  36. 18 May, 2018 2 commits
  37. 09 May, 2018 1 commit
  38. 07 May, 2018 1 commit