- 12 8月, 2021 1 次提交
-
-
由 Martin Holst Swende 提交于
-
- 10 8月, 2021 3 次提交
-
-
由 lightclient 提交于
internal/ethapi, accounts/abi/bind: cap highest gas limit by account balance for 1559 fee parameters (#23309) * internal/ethapi/api: cap highest gas limit by account balance for 1559 fee parameters * accounts/abi/bind: port gas limit cap for 1559 parameters to simulated backend * accounts/abi/bind: add test for 1559 gas estimates for the simulated backend * internal/ethapi/api: fix comment * accounts/abi/bind/backends, internal/ethapi: unify naming style Co-authored-by: NPéter Szilágyi <peterke@gmail.com>
-
由 lightclient 提交于
-
由 Felföldi Zsolt 提交于
-
- 03 8月, 2021 1 次提交
-
-
由 gary rong 提交于
-
- 29 7月, 2021 1 次提交
-
-
由 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
-
- 28 7月, 2021 1 次提交
-
-
由 Marius van der Wijden 提交于
* internal/ethapi: revert + fix properly in al tracer * internal/ethapi: use toMessage instead of creating new message * internal/ethapi: remove ineffassign * core: fix invalid unmarshalling, fix test Co-authored-by: NMartin Holst Swende <martin@swende.se>
-
- 27 7月, 2021 1 次提交
-
-
由 lightclient 提交于
* internal/ethapi/api: use hexutil.uint for blockCount parameter instead of int for feeHistory * return hex value for oldestBlock instead of number * return uint64 from oracle.resolveBlockRange * eth/gasprice: fixed test Co-authored-by: NZsolt Felfoldi <zsfelfoldi@gmail.com>
-
- 13 7月, 2021 2 次提交
-
-
由 Mark 提交于
* core, eth, internal, les, light: get pending and queued transaction by address * core: tiny nitpick fixes * light: tiny nitpick Co-authored-by: Nmark <mark@amis.com> Co-authored-by: NPéter Szilágyi <peterke@gmail.com>
-
由 gary rong 提交于
* internal/ethapi: fix transaction APIs * internal/ethapi: fix typo * internal/ethapi: address comments * internal/ethapi: address comment from Peter
-
- 09 7月, 2021 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 01 7月, 2021 1 次提交
-
-
由 Martin Holst Swende 提交于
Improves the performance of debug.traceTransaction
-
- 30 6月, 2021 1 次提交
-
-
由 Marius van der Wijden 提交于
Fixes test failure in the last commit.
-
- 28 6月, 2021 1 次提交
-
-
由 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>
-
- 18 6月, 2021 1 次提交
-
-
由 lightclient 提交于
-
- 16 6月, 2021 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 10 6月, 2021 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 09 6月, 2021 1 次提交
-
-
由 Martin Holst Swende 提交于
-
- 08 6月, 2021 1 次提交
-
-
由 Péter Szilágyi 提交于
* all: rename internal 1559 gas fields, add support for graphql * cmd/evm/testdata, core: use public 1559 gas names on API surfaces
-
- 02 6月, 2021 1 次提交
-
-
由 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>
-
- 26 5月, 2021 2 次提交
-
-
由 aaronbuchwald 提交于
-
由 gary rong 提交于
There are two transaction parameter structures defined in the codebase, although for different purposes. But most of the parameters are shared. So it's nice to reduce the code duplication by merging them together. Co-authored-by: NMartin Holst Swende <martin@swende.se>
-
- 17 5月, 2021 1 次提交
-
-
由 Martin Holst Swende 提交于
This is the initial implementation of EIP-1559 in packages core/types and core. Mining, RPC, etc. will be added in subsequent commits. Co-authored-by: NMarius van der Wijden <m.vanderwijden@live.de> Co-authored-by: Nlightclient@protonmail.com <lightclient@protonmail.com> Co-authored-by: NFelix Lange <fjl@twurst.com>
-
- 21 4月, 2021 2 次提交
- 07 4月, 2021 1 次提交
-
-
由 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>
-
- 06 4月, 2021 1 次提交
-
-
由 piersy 提交于
This removes the duplicated definition of eth_chainID in package eth and updates the definition in internal/ethapi to treat chain ID as a bigint. Co-authored-by: NFelix Lange <fjl@twurst.com>
-
- 25 2月, 2021 1 次提交
-
-
由 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>
-
- 23 2月, 2021 1 次提交
-
-
由 Marius van der Wijden 提交于
This PR prevents users from submitting transactions without EIP-155 enabled. This behaviour can be overridden by specifying the flag --rpc.allow-unprotected-txs=true.
-
- 05 2月, 2021 2 次提交
-
-
由 Marius van der Wijden 提交于
-
由 Marius van der Wijden 提交于
-
- 26 1月, 2021 1 次提交
-
-
由 Péter Szilágyi 提交于
This adds more info about submitted transactions in log messages. Co-authored-by: NFelix Lange <fjl@twurst.com>
-
- 23 12月, 2020 1 次提交
-
-
由 Marius van der Wijden 提交于
During the snap and eth refactor, the net_version rpc call was falsely deprecated. This restores the net_version RPC handler as most eth2 nodes and other software depend on it.
-
- 14 12月, 2020 1 次提交
-
-
由 Péter Szilágyi 提交于
This commit splits the eth package, separating the handling of eth and snap protocols. It also includes the capability to run snap sync (https://github.com/ethereum/devp2p/blob/master/caps/snap.md) , but does not enable it by default. Co-authored-by: NMarius van der Wijden <m.vanderwijden@live.de> Co-authored-by: NMartin Holst Swende <martin@swende.se>
-
- 26 11月, 2020 1 次提交
-
-
由 Alex Prut 提交于
-
- 04 11月, 2020 1 次提交
-
-
由 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.
-
- 23 9月, 2020 2 次提交
-
-
由 Marius van der Wijden 提交于
* tried to fix * fix for js api * fix for nil pointer ex * rev space * rev space * input call formatter
-
由 Marius van der Wijden 提交于
This allows users to estimate gas on top of arbitrary blocks as well as pending and latest. Tracing on pending is useful for most users as it takes into account the current txpool while tracing on latest might be useful for users that have little to know knowledge of the current transactions in the network. If blockNrOrHash is not specified, estimateGas defaults to pending
-
- 04 8月, 2020 1 次提交
-
-
由 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.
-
- 20 7月, 2020 1 次提交
-
-
由 gary rong 提交于
* internal, accounts: fix funding check when estimate gas * accounts, internal: address comments
-