New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metadium to master #24
Commits on Oct 28, 2021
-
-
cmd/geth, cmd/evm, params: implement Arrow Glacier (EIP 4345) (ethere…
…um#23810) This PR adds support for ArrowGlacier, as defined by https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/arrow-glacier.md https://eips.ethereum.org/EIPS/eip-4345 > Starting with FORK_BLOCK_NUMBER the client will calculate the difficulty based on a fake block number suggesting to the client that the difficulty bomb is adjusting 10,700,000 blocks later than the actual block number. This also adds support for evm t8n to return the calculated difficulty, so it can be used to construct test.
-
Commits on Oct 29, 2021
-
-
eth/filters, p2p/simulations: fix benchmarks (ethereum#23806)
Some benchmarks in eth/filters were not good: they weren't reproducible, relying on geth chaindata to be present. Another one was rejected because the receipt was lacking a backing transcation. The p2p simulation benchmark had a lot of the warnings below, due to the framework calling both Stop() and Close(). Apparently, the simulated adapter is the only implementation which has a Close(), and there is no need to call both Stop and Close on it.
Commits on Oct 31, 2021
-
-
-
optimize the judge of invalide notification.number (ethereum#22658)
Don't bother fetching genesis Co-authored-by: wuff1996 <33193253+wuff1996@users.noreply.github.com>
Commits on Nov 1, 2021
-
-
accounts/abi/bin/backends: return basefee in suggestGasPrice (ethereu…
…m#23838) Co-authored-by: mrx <mrx@mrx.com>
-
-
-
core: fix snapshot missing when recovery from crash (ethereum#23496)
It is because write known block only checks block and state without snapshot, which could lead to gap between newest snapshot and newest block state. However, new blocks which would cause snapshot to become fixed were ignored, since state was already known. Co-authored-by: Gary Rong <garyrong0905@gmail.com> Co-authored-by: Martin Holst Swende <martin@swende.se>
Commits on Nov 2, 2021
-
cmd/geth: implement data import and export (ethereum#22931)
This PR offers two more database sub commands for exporting and importing data. Two exporters are implemented: preimage and snapshot data respectively. The import command is generic, it can take any data export and import into leveldb. The data format has a 'magic' for disambiguation, and a version field for future compatibility.
-
consensus/ethash: avoid runtime errors due to OOD on mmap writes (eth…
…ereum#23799) When we map a file for generating the DAG, we do a simple truncate to e.g. 1Gb. This is fine, even if we have nowhere near 1Gb disk available, as the actual file doesn't take up the full 1Gb, merely a few bytes. When we start generating into it, however, it eventually crashes with a unexpected fault address . This change fixes it (on linux systems) by using the Fallocate syscall, which preallocates suffcient space on disk to avoid that situation. Co-authored-by: Felix Lange <fjl@twurst.com>
-
core: more efficient nonce-update in txpool (ethereum#22231)
* Adjust pending nonce update operation Benchmark the speed of transaction insertion under multiple accounts core: fix rebase issues + docstring core: make benchmark test use sync:ed method * core: address review comments * core: add memreport to benchmark Co-authored-by: WeiLoy <wei_loy@163.com>
Commits on Nov 4, 2021
-
rpc: linear time batch response matching (ethereum#23856)
This avoids quadratic time complexity in the lookup of the batch element corresponding to an RPC response. Unfortunately, the new approach requires additional memory for the mapping from ID to index. Fixes ethereum#22805
-
eth: make traceChain avoid OOM on long-running tracing (ethereum#23736)
This PR changes long-running chain tracing, so that it at some points releases the memory trie db, and switch over to a fresh disk-backed trie.
Commits on Nov 5, 2021
-
eth/tracers: support for golang tracers + add golang callTracer (ethe…
…reum#23708) * eth/tracers: add basic native loader * eth/tracers: add GetResult to tracer interface * eth/tracers: add native call tracer * eth/tracers: fix call tracer json result * eth/tracers: minor fix * eth/tracers: fix * eth/tracers: fix benchTracer * eth/tracers: test native call tracer * eth/tracers: fix * eth/tracers: rm extra make Co-authored-by: Martin Holst Swende <martin@swende.se> * eth/tracers: rm extra make * eth/tracers: make callFrame private * eth/tracers: clean-up and comments * eth/tracers: add license * eth/tracers: rework the model a bit * eth/tracers: move tracecall tests to subpackage * cmd/geth: load native tracers * eth/tracers: minor fix * eth/tracers: impl stop * eth/tracers: add native noop tracer * renamings Co-authored-by: Martin Holst Swende <martin@swende.se> * eth/tracers: more renamings * eth/tracers: make jstracer non-exported, avoid cast * eth/tracers, core/vm: rename vm.Tracer to vm.EVMLogger for clarity * eth/tracers: minor comment fix * eth/tracers/testing: lint nitpicks * core,eth: cancel evm on nativecalltracer stop * Revert "core,eth: cancel evm on nativecalltracer stop" This reverts commit 01bb908. * eth/tracers: linter nits * eth/tracers: fix output on err Co-authored-by: Martin Holst Swende <martin@swende.se>
-
miner, consensus/clique: avoid memory leak during block stasis (ether…
…eum#23861) This PR fixes a problem which arises on clique networks when there is a network stall. Previously, the worker packages were tracked, even if the sealing engine decided not to seal the block (due to clique rules about recent signing). These tracked-but-not-sealed blocks kept building up in memory. This PR changes the situation so the sealing engine instead returns an error, and the worker can thus un-track the package.
Commits on Nov 8, 2021
-
les/vflux: fixed panic and data races (ethereum#23865)
* les/vflux/server: fix BalanceOperation * les/vflux/client: fixed data races
-
cmd/geth: add support for sepolia testnet (ethereum#23730)
* cmd/geth: add support for sepolia testnet * core: last details on sepolia genesis * params: fix sepolia hash + reduce testing code * Update params/bootnodes.go * cmd/geth: fix attach path for sepolia * params: update bootnodes * params: fix * core: fix docstring * params: add sepolia CHT
-
-
Merge pull request ethereum#23868 from karalabe/cht-1.10.12
params: update CHTs for the 1.10.12 release
-
-
Merge pull request ethereum#23869 from karalabe/cht-1.10.12-ropsten
params: update Ropsten CHT too
-
-
-
core: check effective tip in txpool pricelimit validation (ethereum#2…
…3855) The price limit is supposed to exclude transactions with too low fee amount. Before EIP-1559, it was sufficient to check the limit against the gas price of the transaction. After 1559, it is more complicated because the concept of 'transaction gas price' does not really exist. When mining, the price limit is used to exclude transactions below a certain effective fee amount. This change makes it apply the same check earlier, in tx validation. Transactions below the specified fee amount cannot enter the pool. Fixes ethereum#23837
Commits on Nov 9, 2021
-
-
eth/tracers: package restructuring (ethereum#23857)
* eth/tracers: restructure tracer package * core/vm/runtime: load js tracers * eth/tracers: mv bigint js code to own file * eth/tracers: add method docs for native tracers * eth/tracers: minor doc fix * core,eth: cancel evm on nativecalltracer stop * core/vm: fix failing test Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
-
cmd/devp2p/internal/ethtest: clarify protocol version in tests (ether…
…eum#23872) Debugging recent geth failures in hive, it took a while to realize that it's because geth doesn't support eth/65 any longer. This PR makes such failures a bit more easy to figure out.
Commits on Nov 10, 2021
-
Merge pull request ethereum#23880 from eltociear/patch-3
p2p: fix typo in v4wire.go
Commits on Nov 11, 2021
-
core/vm: implement EIP-2681: Limit account nonce to 2^64-1 (ethereum#…
…23853) This retroactively implements requirements or EIP-2681 for the account nonce upper limit.
-
core/rawdb: add slow path for getting legacy logs (ethereum#23879)
* eth/tracers: add slow path for getting legacy logs * core/rawdb: fix test
-
cmd/devp2p: update TTL max for Cloudflare (ethereum#23885)
This was apparently recently changed by Cloudflare, and began returning an error: 'TTL must be between 60 and 86400 seconds, or 1 for Automatic' Date: 2021-11-10 15:25:20-08:00 Signed-off-by: meows <b5c6@protonmail.com>
-
eth/tracers: add golang 4byte tracer (ethereum#23882)
* native 4byte tracer * Update eth/tracers/native/4byte.go Co-authored-by: Martin Holst Swende <martin@swende.se> * Update eth/tracers/native/4byte.go Co-authored-by: Martin Holst Swende <martin@swende.se> * goimports * eth/tracers: make 4byte tracer not care about create Co-authored-by: Martin Holst Swende <martin@swende.se>
Commits on Nov 12, 2021
-
-
eth, eth/protocols/eth: transaction announcements for ETH66 only as t…
…he previous metadium protocol version was ETH65
-
accounts/abi/bind/backends: fix race condition in simulated backend (e…
…thereum#23898) Now that `SimulatedBackend.SuggestGasPrice` inspects member values, a lock needs to be added to prevent a race condition.
Commits on Nov 16, 2021
-
cmd/evm: add
gasUsed
to t8nresult
(ethereum#23919)* cmd/evm: add gas used accumulator to t8n result * cmd/evm: update t8n tests to include gas used field
-
core/rawdb: better error message in freezer (ethereum#23901)
* core/rawdb: better error message in freezer * Apply suggestions from code review
-
cmd/geth: add flag --dev.gaslimit for dev mode (ethereum#23686)
* cmd, core: add flag --dev.gaslimit to allow configuring initial block gas limit in dev mode * core: use provided gaslimit Co-authored-by: Martin Holst Swende <martin@swende.se>
Commits on Nov 17, 2021
-
ethclient: fix tx sender cache miss detection (ethereum#23877)
This fixes a bug in TransactionSender where it would return the zero address for transactions where the sender address wasn't cached already. Co-authored-by: Felix Lange <fjl@twurst.com>
Commits on Nov 18, 2021
-
-
eth/gasprice: sanitize max header and block history (ethereum#23886)
Fixes ethereum#23452
courtier committedNov 18, 2021
Commits on Nov 19, 2021
Commits on Nov 22, 2021
-
-
-
-
cmd/evm: add b11r tool (ethereum#23843)
evm block-builder (a.k.a b11r) is a utility to help assemble blocks, for use during the test-creation process.
-
-
Merge pull request ethereum#23949 from karalabe/fix-repair-heuristic
core, eth/downloader: fix resetting below freezer threshold
Commits on Nov 23, 2021
-
cmd/evm: add support for signing transactions in the unprotected form…
…at (ethereum#23937) * cmd/evm: add support for signing transactions in the unprotected format * cmd/evm: simplify signing of unprotected txs
-
Merge pull request ethereum#23928 from holiman/no_iota
core/vm: don't use iota for opcode definitions
-
core/rawdb: use AncientRange when initializing leveldb from freezer (e…
…thereum#23612) * core/rawdb: utilize AncientRange when initiating from freezer * core/rawdb: remove debug sanity check
-
-
Merge pull request ethereum#23960 from karalabe/verify-range-deletion
trie: reject deletions when verifying range proofs
-
Commits on Nov 24, 2021
-
cmd/evm: rename t8n args to improve clarity when tracing (ethereum#23934
-
-
-
consensus/clique: fix block number unmarshal (ethereum#23961)
* clique: fix block number unmarshal * clique: rename
-
-
cmd/devp2p/internal/v4test: fix false-positive hive test (ethereum#23966
) This PR fixes two problems in devp2p tests (and through them, hive). - Make the output more detailed about what is returned (always print packet kind). - Allow Ping response to unsolicited findnode. Without this PR, nethermind fails a hive protocol test, and I misinterpreted the result (NethermindEth/nethermind#3617). Ergo, the output was not fool-proof.
Commits on Nov 25, 2021
-
-
core/vm, core/state/snapshot: remove unused code (ethereum#23956)
* core/state/snapshot: remove wiper functionality * core/vm: remove unused 'unofficial' opcodes
-
all: move loggers to eth/tracers (ethereum#23892)
* all: mv loggers to eth/tracers * core/vm: minor * eth/tracers: tmp comment out testStoreCapture * eth/tracers: uncomment and fix logger test * eth/tracers: simplify test * core/vm: re-add license * core/vm: minor * rename LogConfig to Config
-
Merge pull request ethereum#23967 from ipsilon/evm_jumptable_type
core/vm: use proper JumpTable type
-
Commits on Nov 26, 2021
-
all: core rework for the merge transition (ethereum#23761)
* all: work for eth1/2 transtition * consensus/beacon, eth: change beacon difficulty to 0 * eth: updates * all: add terminalBlockDifficulty config, fix rebasing issues * eth: implemented merge interop spec * internal/ethapi: update to v1.0.0.alpha.2 This commit updates the code to the new spec, moving payloadId into it's own object. It also fixes an issue with finalizing an empty blockhash. It also properly sets the basefee * all: sync polishes, other fixes + refactors * core, eth: correct semantics for LeavePoW, EnterPoS * core: fixed rebasing artifacts * core: light: performance improvements * core: use keyed field (f) * core: eth: fix compilation issues + tests * eth/catalyst: dbetter error codes * all: move Merger to consensus/, remove reliance on it in bc * all: renamed EnterPoS and LeavePoW to ReachTDD and FinalizePoS * core: make mergelogs a function * core: use InsertChain instead of InsertBlock * les: drop merger from lightchain object * consensus: add merger * core: recoverAncestors in catalyst mode * core: fix nitpick * all: removed merger from beacon, use TTD, nitpicks * consensus: eth: add docstring, removed unnecessary code duplication * consensus/beacon: better comment * all: easy to fix nitpicks by karalabe * consensus/beacon: verify known headers to be sure * core: comments * core: eth: don't drop peers who advertise blocks, nitpicks * core: never add beacon blocks to the future queue * core: fixed nitpicks * consensus/beacon: simplify IsTTDReached check * consensus/beacon: correct IsTTDReached check Co-authored-by: rjl493456442 <garyrong0905@gmail.com> Co-authored-by: Péter Szilágyi <peterke@gmail.com>
-
eth: request id dispatcher and direct req/reply APIs (ethereum#23576)
* eth: request ID based message dispatcher * eth: fix dispatcher cancellation, rework fetchers idleness tracker * eth/downloader: drop peers who refuse to serve advertised chains
Commits on Nov 29, 2021
-
trie: simplify StackTrie implementation (ethereum#23950)
Trim the search key from head as it's being pushed deeper into the trie. Previously the search key was never modified but each node kept information how to slice and compare it in keyOffset. Now the keyOffset is not needed as this information is included in the slice of the search key. This way the keyOffset can be removed and key manipulation simplified.
-
core/vm: simplify error handling in interpreter loop (ethereum#23952)
* core/vm: break loop on any error * core/vm: move ErrExecutionReverted to opRevert() * core/vm: use "stop token" to stop the loop * core/vm: unconditionally pc++ in the loop * core/vm: set return data in instruction impls
-
Commits on Nov 30, 2021
-
core/vm: Rename SHA3 instruction to KECCAK256 (ethereum#23976)
This was proposed in 2016, Solidity uses this since 2017, and evmone and other VMs use the keccak256 name. This brings geth in line with those.
Commits on Dec 1, 2021
-
core/vm: Move interpreter.ReadOnly check into the opcode implementati…
…ons (ethereum#23970) * core/vm: Move interpreter.ReadOnly check into the opcode implementations Also remove the same check from the interpreter inner loop. * core/vm: Remove obsolete operation.writes flag * core/vm: Capture fault states in logger Co-authored-by: Martin Holst Swende <martin@swende.se> * core/vm: Remove panic added for testing Co-authored-by: Martin Holst Swende <martin@swende.se>
-
core/vm: rename opSuicide to opSelfdestruct (ethereum#24022)
The opcode was renamed in the codebase in 2017, but the functions were kept unchanged.
-
eth/tracers/js: add support for REVERT/SELFDESTRUCT in evmdis_tracer (e…
…thereum#24016) * eth/tracers: Add support for REVERT in evmdis_tracer * evm/tracers: Fix evmdis_tracer to use SELFDESTRUCT instead of SUICIDE * eth/tracers: Regenerate tracer library
Commits on Dec 2, 2021
-
accounts/abi/bind: correctly handle structs used only as constructor …
…params (ethereum#23940) The `structs` map is populated by iterating over all methods except the constructor, which results in a nil-pointer dereference. I've first reproduced the problem with a new test and then implemented the fix. Co-authored-by: Arran Schlosberg <me@arranschlosberg.com>
-
Commits on Dec 3, 2021
-
Merge pull request ethereum#24032 from karalabe/downloader-response-p…
…reprocess eth: pre-process downloader responses on the peer reader thread
-
-
core/vm: move interpreter interruption check to jump instructions (et…
…hereum#24026) * core/vm: Remove interpreter loop interruption check * core/vm: Unit test for interpreter loop interruption * core/vm: Check for interpreter loop abort on every jump
-
Merge pull request ethereum#24047 from karalabe/delete-dead-sync-bloom
core, eth, les, trie: remove the sync bloom, used by fast sync
-
readme: use correct link for web3.js docs (ethereum#24046)
Previous link leads to incorrect (more recent) version of web3.js docs. go-ethereum uses v0.20.1. The docs for 0.2x.x have been archived at this Github link.
-
eth/catalyst: implement kintsugi spec v1.0.0-alpha.4 (ethereum#23984)
This PR implements the new kintsugi specification which can be found here: https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.4/src/engine/specification.md
Commits on Dec 5, 2021
Commits on Dec 6, 2021
-
-
core, core/rawdb: fix transaction indexing (ethereum#24024)
This PR fixes a special corner case in transaction indexing. When the chain is rewound by SetHead to a historical point which is even lower than the transaction indexes tail, then system will report Failed to decode block body error all the time, because the relevant blocks are already deleted. In order to avoid this "non-critical-but-annoying" issue, we can recap the indexing target to head+1(to is excluded, so it means indexing transactions from 0 to head).
-
Merge pull request ethereum#24066 from holiman/no_no_recursion
core/vm: remove no-recursion option from config
-
-
Commits on Dec 7, 2021
-
core, eth: improve delivery speed on header requests (ethereum#23105)
This PR reduces the amount of work we do when answering header queries, e.g. when a peer is syncing from us. For some items, e.g block bodies, when we read the rlp-data from database, we plug it directly into the response package. We didn't do that for headers, but instead read headers-rlp, decode to types.Header, and re-encode to rlp. This PR changes that to keep it in RLP-form as much as possible. When a node is syncing from us, it typically requests 192 contiguous headers. On master it has the following effect: - For headers not in ancient: 2 db lookups. One for translating hash->number (even though the request is by number), and another for reading by hash (this latter one is sometimes cached). - For headers in ancient: 1 file lookup/syscall for translating hash->number (even though the request is by number), and another for reading the header itself. After this, it also performes a hashing of the header, to ensure that the hash is what it expected. In this PR, I instead move the logic for "give me a sequence of blocks" into the lower layers, where the database can determine how and what to read from leveldb and/or ancients. There are basically four types of requests; three of them are improved this way. The fourth, by hash going backwards, is more tricky to optimize. However, since we know that the gap is 0, we can look up by the parentHash, and stlil shave off all the number->hash lookups. The gapped collection can be optimized similarly, as a follow-up, at least in three out of four cases. Co-authored-by: Felix Lange <fjl@twurst.com>
Commits on Dec 9, 2021
Commits on Dec 11, 2021
-
cmd/geth, console: support interrupting the js console (ethereum#23387)
Previously, Ctrl-C (SIGINT) was ignored during JS execution, so it was not possible to get out of infinite loops in the console. With this change, Ctrl-C now interrupts JS. Fixes ethereum#23344 Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com> Co-authored-by: Felix Lange <fjl@twurst.com>
Commits on Dec 14, 2021
-
consensus: define MaxGasLimit as a const in params (ethereum#24092)
* consensus: use the maxGasLimit constant to check the header.GasLimit to avoid creating new variables repeatedly * consensus: check the header.GasLimit by the public constant MaxGasLimit * consensus: check the header.GasLimit by the constant MaxGasLimit
Commits on Dec 15, 2021
-
rpc: fix time key collision for logger with json output (ethereum#24112)
The "t" key overrides the log message time in JSON output. Co-authored-by: Felix Lange <fjl@twurst.com>
-
Commits on Dec 16, 2021
Commits on Dec 17, 2021
-
core/vm: reverse bit order in bytes of code bitmap (ethereum#24120)
* core/vm: reverse bit order in bytes of code bitmap This bit order is more natural for bit manipulation operations and we can eliminate some small number of CPU instructions. * core/vm: drop lookup table
-
core/vm: Make INVALID a defined opcode (ethereum#24017)
* core/vm: Define 0xfe opcode as INVALID * core/vm: Remove opInvalid as opUndefined handles it Co-authored-by: Alex Beregszaszi <alex@rtfs.hu>
-
eth, les: update unclean shutdown markers regularly (ethereum#24077)
Fixes ethereum#22580 Co-authored-by: Felix Lange <fjl@twurst.com>
-
-
core: ignore basefee when comparing with pool gasprice in txpool (eth…
…ereum#24080) This reverts commit 9489853.
Commits on Dec 20, 2021
Commits on Dec 22, 2021
Commits on Dec 23, 2021
Commits on Dec 26, 2021
-
core/asm: change order of items in stringtokenTypes (ethereum#24153)
This orders the items in slice definition same as the enum values.
Commits on Dec 30, 2021
Commits on Jan 4, 2022
-
trie: fix spelling mistake (ethereum#24185)
mispelled words in comments: th enext
-
accounts: correct comment (ethereum#24186)
Change two instances of the word `calulcated` to `calculated`.
-
core/rawdb: fix double-lock causing hang (ethereum#24189)
Fixes ethereum#24159 Co-authored-by: Felix Lange <fjl@twurst.com>
Commits on Jan 5, 2022
-
-
graphql: check header first in blocks query (ethereum#24190)
Fixes ethereum#24167 New behaviour is that the endpoint returns results only for available blocks without returning an error when it doesn't find a block. Note we skip any block after a non-existent block. This adds a header fetch for every block in range (even if header is not needed). Alternatively, we could do the check in every field's resolver method to avoid this overhead.
-
ethclient: fix unmarshaling of ethereum.SyncProgress (ethereum#24199)
SyncProgress was modified in PR ethereum#23576 to add the fields reported for snap sync. The PR also changed ethclient to use the SyncProgress struct directly instead of wrapping it for hex-decoding. This broke the SyncProgress method. Fix it by putting back the custom wrapper. While here, also put back the fast sync related fields because SyncProgress is stable API and thus removing fields is not allowed. Fixes ethereum#24180 Fixes ethereum#24176
-
-
-
Commits on Jan 6, 2022
-
Merge pull request ethereum#24117 from holiman/db_has
trie, core, eth: use db.has over db.get where possible
-
-
-
accounts: corrected spelling mistakes (ethereum#24194)
Co-authored-by: sanskar khare <sanskarkhare@sanskars-MacBook-Air.local>
Commits on Jan 7, 2022
Commits on Jan 10, 2022
-
core/evm: RANDOM opcode (EIP-4399) (ethereum#24141)
* core: implement eip-4399 random opcode * core: make vmconfig threadsafe * core: miner: pass vmConfig by value not reference * all: enable 4399 by Rules * core: remove diff (f) * tests: set proper difficulty (f) * smaller diff (f) * eth/catalyst: nit * core: make RANDOM a pointer which is only set post-merge * cmd/evm/internal/t8ntool: fix t8n tracing of 4399 * tests: set difficulty * cmd/evm/internal/t8ntool: check that baserules are london before applying the merge chainrules
Commits on Jan 11, 2022
-
Merge pull request ethereum#24197 from rjl493456442/periodically-flus…
…h-batch core: periodically flush the transaction indexes
-
Merge pull request ethereum#24171 from ucwong/pmp
go.mod : go-nat-pmp v1.0.2
-
-
cmd/geth: update copyright year (ethereum#24224)
* cmd/geth: update copyright year * cmd/geth: update copyright year
Commits on Jan 12, 2022
-
crypto/ecies: use AES-192 for curve P384 (ethereum#24139)
Using curve P384 for encryption causes the error "ecies: shared key params are too big". Also, readme.md says curve P384 should use AES192 not AES256. Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
Commits on Jan 15, 2022
Commits on Jan 18, 2022
-
core/rawdb: enforce readonly in freezer instantiation (ethereum#24119)
* freezer: add readonly flag to table * freezer: enforce readonly in table repair * freezer: enforce readonly in newFreezer * minor fix * minor * core/rawdb: test that writing during readonly fails * rm unused log * check readonly on batch append * minor * Revert "check readonly on batch append" This reverts commit 2ddb5ec. * review fixes * minor test refactor * attempt at fixing windows issue * add comment re windows sync issue * k->kind * open readonly db for genesis check Co-authored-by: Martin Holst Swende <martin@swende.se>
-
cmd/geth: add db cmd to show metadata (ethereum#23900)
* cmd/geth: add db cmd to show metadata * cmd/geth: better output generator status Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com> * cmd: minor Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com> Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
Commits on Jan 20, 2022
-
internal/ethapi: use same receiver names (ethereum#24252)
* Chore: use same receiver names * Fix syntax issues
-
eth/catalyst: evict old payloads, type PayloadID (ethereum#24236)
* eth/catalyst: evict old payloads, type PayloadID * eth/catalyst: added tracing info to engine api * eth/catalyst: add test for create payload timestamps * catalyst: better logs * eth/catalyst: computePayloadId return style * catalyst: add queue for payloads * eth/catalyst: nitpicks Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de> Co-authored-by: Péter Szilágyi <peterke@gmail.com>
-
rpc: add PeerInfo (ethereum#24255)
This replaces the sketchy and undocumented string context keys for HTTP requests with a defined interface. Using string keys with context is discouraged because they may clash with keys created by other packages. We added these keys to make connection metadata available in the signer, so this change also updates signer/core to use the new PeerInfo API.
Commits on Jan 21, 2022
-
-
-
-
-
-
core: unon fast sync completion wait for governance to be initialized…
… in order to calculate rewards distribution correctly
-
-
core, miner, rpc, eth: fix goroutine leaks in tests (ethereum#24211)
* fix blocking and non-blocking issues * core: revert change in blockchain.go Co-authored-by: Martin Holst Swende <martin@swende.se>
-
trie: test for edgecase in VerifyRangeProof (ethereum#24257)
* trie/proof: edge case for VerifyRangeProof * more consistency with other tests in the file * trie: fix test todo Co-authored-by: Martin Holst Swende <martin@swende.se>
Commits on Jan 22, 2022
Commits on Jan 24, 2022
-
internal/ethapi: remove unnecessary comment (ethereum#24271)
Because there is no `fullTx` parameter at function signatures and uncle apis does not return txs also, those lines are un-necessary.
-
-
eth, miner: use miner for post-merge block production (ethereum#23256)
* eth, miner: remove duplicated code * eth/catalyst: remove unneeded code * miner: keep update pending state even the Merge is happened * eth, miner: rebase * miner: fix tests * eth, miner: address comments from marius * miner: use empty zero randomness for pending blocks after the merge * eth/catalyst: gofmt * miner: add warning log for state recovery * miner: ignore uncles for post-merge blocks Co-authored-by: Péter Szilágyi <peterke@gmail.com>
-
-
Merge pull request ethereum#24281 from karalabe/dev-read-write
cmd/utils: fix regression placing dev mode datadir readonly
-
accounts/abi: simplify Arguments.Unpack (ethereum#24277)
Since len(nonIndexedArgs) is definitely 0 in this context, the code can be simplified.
Commits on Jan 25, 2022
Commits on Jan 26, 2022
Commits on Jan 27, 2022
-
-
rpc: set Request.GetBody for client requests (ethereum#24292)
When talking to an HTTP2 server, there are situations where it needs to "rewind" the Request.Body. To allow this, we have to set up the Request.GetBody function to return a brand new instance of the body. If not set, we can end up with the following error: http2: Transport: cannot retry err [http2: Transport received Server's graceful shutdown GOAWAY] after Request.Body was written; define Request.GetBody to avoid this error See this commit for more information: https://sourcegraph.com/github.com/golang/net/-/commit/cffdcf672aee934982473246bc7e9a8ba446aa9b?visible=2
Commits on Jan 28, 2022
-
tests: external evm benchmarks (ethereum#24050)
* tests: add ipsilon/evm-benchmarks git submodule * tests: plug-in evm-benchmarks
Commits on Jan 31, 2022
-
eth/tracers: native prestate tracer (ethereum#24268)
* eth/tracers: add initial native prestate tracer * fix balance hex * handle prestate for tx from and to * drop created contract from prestate * fix sender balance * use switch instead Co-authored-by: Martin Holst Swende <martin@swende.se> * minor fix * lookup create2 account * mv code around a bit * check stackLen for create2 * fix transfer tx for js prestate tracer * fix create2 addr * track extcodehash in js prestate tracer Co-authored-by: Martin Holst Swende <martin@swende.se>
-
build: fix lint on ARM (ethereum#24311)
* build: append GOARM to arm lint download URL otherwise it fails with: downloading from https://github.com/golangci/golangci-lint/releases/download/v1.42.0/golangci-lint-1.42.0-linux-arm.tar.gz ci.go:347: download error: status 404 * build: increase timeout for lint Otherwise it times out on a pi * Increase timeout even further saw longer build times
-
all: separate catalyst package (ethereum#24280)
* all: seperate catalyst package * eth/catalyst: moved some methods, added docs * eth/catalyst, les/catalyst: add method docs * core, eth, les, miner: move common function to beacon package * eth/catalyst: goimported * cmd/utils, miner/stress/beacon: naming nitpicks Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de> Co-authored-by: Péter Szilágyi <peterke@gmail.com>
Commits on Feb 1, 2022
-
accounts: correct spelling mistake (ethereum#24323)
I believe the sentence is attempting to explain that the URL is "[used] by upper layers to define a sorting order over all wallets from multiple backends."
-
eth/tracers: clean-up tracer collection (ethereum#24320)
* eth/tracers: clean-up tracer collection * Rm test for dropped tracer
-
accounts/abi/bind: improve WaitMined error handling (ethereum#24321)
This change makes it so WaitMined no longer logs an error when the receipt is unavailable. It also changes the simulated backend to return NotFound for unavailable receipts, just like ethclient does.
Commits on Feb 2, 2022
-
-
Merge pull request ethereum#24328 from karalabe/uke-catalyst
cmd: auto-enable beacon APIs if TTD is defined
Commits on Feb 4, 2022
-
cmd/devp2p: implement snap protocol testing (ethereum#24276)
This also contains some changes to the protocol handler to make the tests pass.
Commits on Feb 7, 2022
Commits on Feb 8, 2022
-
signer/core: fix complex typed data sign (EIP712) (ethereum#24220)
Co-authored-by: specerxi <xhxpecer@gmail.com>
-
go.mod: upgrade to github.com/karalabe/usb v0.0.2 (ethereum#24356)
This upgrade resolves a build issue on Android 7+ and removes a build warning on macOS >= 12.0.
Commits on Feb 14, 2022
-
p2p: reduce the scope of variable dialPubkey (ethereum#24385)
dialPubkey isn't used anywhere else after dialDest.Load, so it should be safe to restrict its scope to the if clause.
Commits on Feb 15, 2022
-
internal/ethapi: fix incorrect type on empty slice (ethereum#24372)
* Fixes ethereum#24368 Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com> * Update internal/ethapi/api.go Co-authored-by: Martin Holst Swende <martin@swende.se>
-
ethclient: add CallContractAtHash (ethereum#24355)
* add CallContractAtHash to ethclient * add docstring and test * optimize test * ethclient: nits Co-authored-by: Péter Szilágyi <peterke@gmail.com>
-
Commits on Feb 25, 2022
-
consensus/misc, core, core/vm: disabled EIP-1559 & EIP-3198, fixed --…
…override.london option to include berlin as well
-
-
Commits on Mar 11, 2022
Commits on Mar 16, 2022
Commits on Mar 17, 2022
-
Merge pull request METADIUM#11 from sadoci/metadium
Metadium - v1.10.16 merge
Commits on Mar 18, 2022
Commits on Mar 21, 2022
-
-
Merge pull request METADIUM#12 from sadoci/metadium
core, params, consensus: testnet berlin & london block height, abort block generation upon rewards calculation error
Commits on Mar 30, 2022
Commits on Apr 7, 2022
Commits on Apr 11, 2022
Commits on Apr 12, 2022
Commits on Apr 14, 2022
-
Merge pull request METADIUM#14 from sadoci/metadium
metadium: fixes for sync issues, pending block issue & chaindata directory name issue
Commits on Apr 21, 2022
Commits on May 6, 2022
-
-
-
feat: apply compact window && update check logic
* apply concept of compact window * update check logic