1. 12 8月, 2021 1 次提交
  2. 10 8月, 2021 3 次提交
  3. 03 8月, 2021 1 次提交
  4. 29 7月, 2021 1 次提交
    • M
      accounts/external, internal/ethapi: fixes for London tx signing (#23274) · 5c13012b
      Martin Holst Swende 提交于
      Ticket #23273 found a flaw where we were unable to sign legacy-transactions
      using the external signer, even if we're still on non-london network. That's
      fixed in this PR.
      
      Additionally, I found that even when supplying all parameters, it was impossible
      to sign a london-transaction on an unsynched node. It's a pretty common usecase
      that someone wants to sign a transaction using an unsynced 'vanilla' node,
      providing all necessary data. Our setDefaults, however, insisted on checking the
      current block against the config. This PR therefore adds a case, so that if both
      MaxPriorityFeePerGas and MaxFeePerGas are provided, we accept them as given.
      
      OBS This PR fixes a regression -- on current master, we are unable to sign a
      london-transaction unless the node is synched, which may break scenarios where
      geth (or clef) is used as a cold wallet.
      
      Fixes #23273 
      5c13012b
  5. 28 7月, 2021 1 次提交
  6. 27 7月, 2021 1 次提交
  7. 13 7月, 2021 2 次提交
  8. 09 7月, 2021 1 次提交
  9. 01 7月, 2021 1 次提交
  10. 30 6月, 2021 1 次提交
  11. 28 6月, 2021 1 次提交
    • F
      eth/gasprice: implement feeHistory API (#23033) · 35dbf7a8
      Felföldi Zsolt 提交于
      * 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: Nrjl493456442 <garyrong0905@gmail.com>
      35dbf7a8
  12. 18 6月, 2021 1 次提交
  13. 16 6月, 2021 1 次提交
  14. 10 6月, 2021 1 次提交
  15. 09 6月, 2021 1 次提交
  16. 08 6月, 2021 1 次提交
  17. 02 6月, 2021 1 次提交
    • M
      core, eth, internal, les: RPC methods and fields for EIP 1559 (#22964) · 5cff9754
      Martin Holst Swende 提交于
      * 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: NRyan Schneider <ryanleeschneider@gmail.com>
      Co-authored-by: Nlightclient@protonmail.com <lightclient@protonmail.com>
      Co-authored-by: Ngary rong <garyrong0905@gmail.com>
      Co-authored-by: NPéter Szilágyi <peterke@gmail.com>
      5cff9754
  18. 26 5月, 2021 2 次提交
  19. 17 5月, 2021 1 次提交
  20. 21 4月, 2021 2 次提交
  21. 07 4月, 2021 1 次提交
    • M
      core, eth, internal/ethapi: create access list RPC API (#22550) · 9d10856e
      Marius van der Wijden 提交于
      * 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: NMartin Holst Swende <martin@swende.se>
      Co-authored-by: NPéter Szilágyi <peterke@gmail.com>
      9d10856e
  22. 06 4月, 2021 1 次提交
  23. 25 2月, 2021 1 次提交
    • L
      all: add support for EIP-2718, EIP-2930 transactions (#21502) · bbfb1e40
      lightclient 提交于
      This adds support for EIP-2718 typed transactions as well as EIP-2930
      access list transactions (tx type 1). These EIPs are scheduled for the
      Berlin fork.
      
      There very few changes to existing APIs in core/types, and several new APIs
      to deal with access list transactions. In particular, there are two new
      constructor functions for transactions: types.NewTx and types.SignNewTx.
      Since the canonical encoding of typed transactions is not RLP-compatible,
      Transaction now has new methods for encoding and decoding: MarshalBinary
      and UnmarshalBinary.
      
      The existing EIP-155 signer does not support the new transaction types.
      All code dealing with transaction signatures should be updated to use the
      newer EIP-2930 signer. To make this easier for future updates, we have
      added new constructor functions for types.Signer: types.LatestSigner and
      types.LatestSignerForChainID. 
      
      This change also adds support for the YoloV3 testnet.
      Co-authored-by: NMartin Holst Swende <martin@swende.se>
      Co-authored-by: NFelix Lange <fjl@twurst.com>
      Co-authored-by: NRyan Schneider <ryanleeschneider@gmail.com>
      bbfb1e40
  24. 23 2月, 2021 1 次提交
  25. 05 2月, 2021 2 次提交
  26. 26 1月, 2021 1 次提交
  27. 23 12月, 2020 1 次提交
  28. 14 12月, 2020 1 次提交
  29. 26 11月, 2020 1 次提交
  30. 04 11月, 2020 1 次提交
    • M
      common: remove ToHex and ToHexArray (#21610) · 3eebf340
      Marius van der Wijden 提交于
      ToHex was deprecated a couple years ago. The last remaining use
      was in ToHexArray, which itself only had a single call site.
      
      This just moves ToHexArray near its only remaining call site and
      implements it using hexutil.Encode. This changes the default behaviour
      of ToHexArray and with it the behaviour of eth_getProof. Previously we
      encoded an empty slice as 0, now the empty slice is encoded as 0x.
      3eebf340
  31. 23 9月, 2020 2 次提交
  32. 04 8月, 2020 1 次提交
    • R
      node: refactor package node (#21105) · c0c01612
      rene 提交于
      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
  33. 20 7月, 2020 1 次提交