- 14 Mar, 2023 3 commits
-
-
Stephen Flynn authored
Co-authored-by:
Stephen Flynn <stephen.flynn@gapac.com>
-
Martin Holst Swende authored
This makes it possible to run another protocol alongside discv5, by reading unhandled packets from the channel.
-
rjl493456442 authored
-
- 13 Mar, 2023 5 commits
-
-
Felix Lange authored
-
lightclient authored
Co-authored-by:
Martin Holst Swende <martin@swende.se> Co-authored-by:
Felix Lange <fjl@twurst.com>
-
ucwong authored
Minor refactor to use the 'intended' accessor
-
s7v7nislands authored
* core: refactor code * core: drop it from this anonymous goroutine func
-
xiyang authored
it should be constantinople rather than contantinople
-
- 10 Mar, 2023 6 commits
-
-
Guruprasad Kamath authored
add muir glacier to t8n
-
Felix Lange authored
-
Felix Lange authored
-
Marius van der Wijden authored
This adds two new rules to the transaction pool: - A future transaction can not evict a pending transaction. - A transaction can not overspend available funds of a sender. --- Co-authored-by:
dwn1998 <42262393+dwn1998@users.noreply.github.com> Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
Felix Lange authored
Since forks are now scheduled by block time, it can be necessary to check the timestamp of a block while generating transactions.
-
panicalways authored
Update server.go
-
- 09 Mar, 2023 5 commits
-
-
Péter Szilágyi authored
-
Roberto Bayardo authored
Here, the core.Message interface turns into a plain struct and types.Message gets removed. This is a breaking change to packages core and core/types. While we do not promise API stability for package core, we do for core/types. An exception can be made for types.Message, since it doesn't have any purpose apart from invoking the state transition in package core. types.Message was also marked deprecated by the same commit it got added in, 4dca5d4d (November 2016). The core.Message interface was added in December 2014, in commit db494170, for the purpose of 'testing' state transitions. It's the same change that made transaction struct fields private. Before that, the state transition used *types.Transaction directly. Over time, multiple implementations of the interface accrued across different packages, since constructing a Message is required whenever one wants to invoke the state transition. These implementations all looked very similar, a struct with private fields exposing the fields as accessor methods. By changing Message into a struct with public fields we can remove all these useless interface implementations. It will also hopefully simplify future changes to the type with less updates to apply across all of go-ethereum when a field is added to Message. --------- Co-authored-by:
Felix Lange <fjl@twurst.com>
-
Martin Holst Swende authored
-
Felix Lange authored
This changes the test to match the comment description. Using timestampedConfig in this test case is incorrect, the comment says 'local is at Gray Glacier' and isn't aware of more forks.
-
xiyang authored
fixes eip 220 -> 2200
-
- 08 Mar, 2023 4 commits
-
-
Martin Holst Swende authored
reverts #26021, to use the upstream bigint instead.
-
Rafael Matias authored
-
Daniel Fernandes authored
Accept all primitive types in Solidity for EIP-712 from intN, uintN, intN[], uintN[] for N as 0 to 256 in multiples of 8 --------- Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
rjl493456442 authored
This change prints out more information about the problem, in the case where geth detects a gap between leveldb and ancients, so we can determine more exactly where the gap is (what the first missing is). Also prints out more metadata. --------- Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
- 07 Mar, 2023 10 commits
-
-
Felix Lange authored
-
Felix Lange authored
-
Felix Lange authored
-
Marius van der Wijden authored
This ensures the "withdrawals" field will always be present in responses to getPayloadBodiesByRangeV1 and getPayloadBodiesByHashV1. --------- Co-authored-by:
Felix Lange <fjl@twurst.com>
-
James Prestwich authored
This PR mitigates an issue with Ledger's on-device RLP deserialization, see https://github.com/LedgerHQ/app-ethereum/issues/409 Ledger's RLP deserialization code does not validate the length of the RLP list received, and it may prematurely enter the signing flow when a APDU chunk boundary falls immediately before the EIP-155 chain_id when deserializing a transaction. Since the chain_id is uninitialized, it is 0 during this signing flow. This may cause the user to accidentally sign the transaction with chain_id = 0. That signature would be returned from the device 1 packet earlier than expected by the communication loop. The device blocks the second-to-last packet waiting for the signer flow, and then errors on the successive packet (which contains the chain_id, zeroed r, and zeroed s) Since the signature's early arrival causes successive errors during the communication process, geth does not parse the improper signature produced by the device, and therefore no improperly-signed transaction can be created. User funds are not at risk. We mitigate by selecting the highest chunk size that leaves at least 4 bytes in the final chunk.
-
Sina Mahmoodi authored
Fixes #26073
-
Guruprasad Kamath authored
Fixes a minor error in the testdata
-
Adrian Sutton authored
Checks that Transaction.MarshalJSON and newRPCTransaction JSON output can be parsed by Transaction.UnmarshalJSON --------- Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
rjl493456442 authored
This change fixes a flaw where, in certain scenarios, the block sealer did not accurately reset the remaining gas after failing to include an invalid transaction. Fixes #26791
-
Felix Lange authored
This fixes a regression introduced by #26723. Fixes #26816.
-
- 06 Mar, 2023 5 commits
-
-
turboboost55 authored
This PR changes metrics collection to actually measure the time interval between collections, rather than assume 3 seconds. I did some ad hoc profiling, and on slower hardware (eg, my Raspberry Pi 4) I routinely saw intervals between 3.3 - 3.5 seconds, with some being as high as 4.5 seconds. This will generally cause the CPU gauge readings to be too high, and in some cases can cause impossibly large values for the CPU load metrics (eg. greater than 400 for a 4 core CPU). --------- Co-authored-by:
Felix Lange <fjl@twurst.com>
-
Marius van der Wijden authored
Fixes a race in TestNewPayloadOnInvalidTerminalBlock where setting the TTD raced with the miner. Solution: set the TTD on the blockchain config not the genesis config. Also fixes a race in CopyHeader which resulted in race reports all over the place.
-
Felix Lange authored
This change adds a struct field EffectiveGasPrice in types.Receipt. The field is present in RPC responses, but not in the Go struct, and thus can't easily be accessed via ethclient. Co-authored-by:
PulsarAI <dev@pulsar-systems.fi>
-
Péter Szilágyi authored
-
Marius van der Wijden authored
* core: params: schedule Shanghai on goerli * core/forkid: fix comment
-
- 03 Mar, 2023 2 commits
-
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-