Skip to content
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

Closed
wants to merge 1,753 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
1753 commits
Select commit Hold shift + click to select a range
bff3303
core: fixed stale comment in txlist (#23825)
MariusVanDerWijden Oct 28, 2021
32150f8
cmd/geth, cmd/evm, params: implement Arrow Glacier (EIP 4345) (#23810)
holiman Oct 28, 2021
fef6e47
eth/ethconfig: changed default network id to 11 from 1
sadoci Oct 28, 2021
7114f4c
cmd/geth, metadium: fixed idv5 from pubkey
sadoci Oct 29, 2021
31870a5
eth/filters, p2p/simulations: fix benchmarks (#23806)
holiman Oct 29, 2021
117f254
metadium: changed Name to NodeName to avoid conflicts
sadoci Oct 31, 2021
0121483
eth, eth/protocols/eth: added metadium message handlers
sadoci Oct 31, 2021
410e731
optimize the judge of invalide notification.number (#22658)
r1cs Oct 31, 2021
5d95d03
eth/protocols/eth: made handlers asynchronous
iproudhon Nov 1, 2021
57c252e
accounts/abi/bin/backends: return basefee in suggestGasPrice (#23838)
Sparty Nov 1, 2021
c113520
miner: fix receipt deep copy in worker (#23835)
PlasmaPower Nov 1, 2021
ff84491
rpc: avoid crashing on clique getSigner during sync (#23832)
holiman Nov 1, 2021
1e4becb
rpc/client: fix typo (#23834)
chuwt Nov 1, 2021
c2e64db
accounts/abi/bind/backends: make suggestGasPrice compatible with non-…
MariusVanDerWijden Nov 1, 2021
c576fa1
core: fix snapshot missing when recovery from crash (#23496)
zzyalbert Nov 1, 2021
551bd6e
eth/tracers: invoke enter/exit on 0-value calls to inex accounts (#23…
holiman Nov 1, 2021
2e8b58f
cmd/geth: implement data import and export (#22931)
rjl493456442 Nov 2, 2021
178debe
consensus/ethash: avoid runtime errors due to OOD on mmap writes (#23…
holiman Nov 2, 2021
f49e90e
cmd/puppeth: make it possible to have pw-protected keyfiles (#22148)
holiman Nov 2, 2021
03bc8b7
core: more efficient nonce-update in txpool (#22231)
holiman Nov 2, 2021
53b94f1
rpc: linear time batch response matching (#23856)
fjl Nov 4, 2021
3bbeb94
eth: make traceChain avoid OOM on long-running tracing (#23736)
holiman Nov 4, 2021
8d7e606
eth/tracers: support for golang tracers + add golang callTracer (#23708)
s1na Nov 5, 2021
476fb56
miner, consensus/clique: avoid memory leak during block stasis (#23861)
holiman Nov 5, 2021
8be8ba4
les/vflux: fixed panic and data races (#23865)
zsfelfoldi Nov 8, 2021
e1c000b
cmd/geth: add support for sepolia testnet (#23730)
holiman Nov 8, 2021
a4f0f8f
cmd/geth, cmd/utils, metadium/scripts: renamed --testnet to --meta-te…
sadoci Nov 8, 2021
e61b8cb
params: update CHTs for the 1.10.12 release
karalabe Nov 8, 2021
aa2727f
Merge pull request #23868 from karalabe/cht-1.10.12
karalabe Nov 8, 2021
c4fff0f
params: update Ropsten CHT too
karalabe Nov 8, 2021
851256e
Merge pull request #23869 from karalabe/cht-1.10.12-ropsten
karalabe Nov 8, 2021
787a3b1
eth/tracers: make native calltracer default (#23867)
s1na Nov 8, 2021
6c4dc6c
params: release Geth v1.10.12
karalabe Nov 8, 2021
ad11691
params: begin v1.10.13 release cycle
karalabe Nov 8, 2021
9489853
core: check effective tip in txpool pricelimit validation (#23855)
fjl Nov 8, 2021
7ddcc15
eth: added SynchroniseWith to synchronize with a given peer
sadoci Nov 9, 2021
6b9c77f
eth/tracers: package restructuring (#23857)
holiman Nov 9, 2021
0efed7f
cmd/devp2p/internal/ethtest: clarify protocol version in tests (#23872)
holiman Nov 9, 2021
fb7da82
p2p: fix typo in v4wire.go
eltociear Nov 10, 2021
e185a8c
Merge pull request #23880 from eltociear/patch-3
karalabe Nov 10, 2021
f32feeb
core/vm: implement EIP-2681: Limit account nonce to 2^64-1 (#23853)
gumb0 Nov 11, 2021
c57df9c
core/rawdb: add slow path for getting legacy logs (#23879)
s1na Nov 11, 2021
5358e49
cmd/devp2p: update TTL max for Cloudflare (#23885)
meowsbits Nov 11, 2021
e9294a7
eth/tracers: add golang 4byte tracer (#23882)
wardbradt Nov 11, 2021
a992c50
core/types: fixed rlp encoding for TransactionEx
sadoci Nov 12, 2021
b89baa7
eth, eth/protocols/eth: transaction announcements for ETH66 only as t…
sadoci Nov 12, 2021
abc74a5
accounts/abi/bind/backends: fix race condition in simulated backend …
joshuacolvin0 Nov 12, 2021
b0b708b
cmd/evm: add `gasUsed` to t8n `result` (#23919)
lightclient Nov 16, 2021
05acc27
eth/tracers: make native 4byte default, remove js version (#23916)
s1na Nov 16, 2021
b7a6409
core/rawdb: better error message in freezer (#23901)
holiman Nov 16, 2021
33f2813
cmd/geth: add flag --dev.gaslimit for dev mode (#23686)
jessetane Nov 16, 2021
fa96718
cmd/evm: rename t8n result to match types.Header (ReceiptRoot->Receip…
lightclient Nov 17, 2021
16341e0
ethclient: fix tx sender cache miss detection (#23877)
PlasmaPower Nov 17, 2021
ab31fbb
core/vm: don't use iota for opcode definitions
holiman Nov 18, 2021
c52def7
eth/gasprice: sanitize max header and block history (#23886)
Nov 18, 2021
98bc33d
ethdb/rocksdb: fixed iterator & added tests
sadoci Nov 19, 2021
e761255
cmd/evm: make t9n intrinsicGas output hex, fixes #23883 (#23889)
holiman Nov 19, 2021
e076143
eth: fix typo in comment (#23941)
a2br Nov 22, 2021
6f2c3f2
cmd/geth: add ancient flag to db inspect (#23946)
lightclient Nov 22, 2021
5d4bcbc
trie: more tests for stacktrie (#23936)
chfast Nov 22, 2021
441c7f2
cmd/evm: add b11r tool (#23843)
lightclient Nov 22, 2021
d9c13d4
core, eth/downloader: fix resetting below freezer threshold
karalabe Nov 22, 2021
17f1c2d
Merge pull request #23949 from karalabe/fix-repair-heuristic
karalabe Nov 22, 2021
23f69c6
cmd/evm: add support for signing transactions in the unprotected form…
lightclient Nov 23, 2021
50e07a1
Merge pull request #23928 from holiman/no_iota
karalabe Nov 23, 2021
347c37b
core/rawdb: use AncientRange when initializing leveldb from freezer (…
holiman Nov 23, 2021
d15e423
p2p/enode: store local port number as uint16 (#23926)
jfcg Nov 23, 2021
743769f
trie: reject deletions when verifying range proofs
karalabe Nov 23, 2021
7322b25
Merge pull request #23960 from karalabe/verify-range-deletion
karalabe Nov 23, 2021
edb77d5
consensus/misc: not checking extra data on metadium mainnet
sadoci Nov 23, 2021
0a7672f
cmd/evm: rename t8n args to improve clarity when tracing (#23934)
lightclient Nov 24, 2021
7a0c19f
params: release Geth v1.10.13
karalabe Nov 24, 2021
8151dd6
params: begin v1.10.14 release cycle
karalabe Nov 24, 2021
66ee942
consensus/clique: fix block number unmarshal (#23961)
s1na Nov 24, 2021
10b1cd9
core/vm: use proper JumpTable type
chfast Nov 24, 2021
ad7c90c
cmd/devp2p/internal/v4test: fix false-positive hive test (#23966)
holiman Nov 24, 2021
cf0f6d2
eth: broadcast transactions to all the peers for now
sadoci Nov 25, 2021
45ef5d9
Merge pull request #1 from sadoci/metadium-wip
sadoci Nov 25, 2021
9055cc1
core/vm, core/state/snapshot: remove unused code (#23956)
holiman Nov 25, 2021
1876cb4
all: move loggers to eth/tracers (#23892)
s1na Nov 25, 2021
4ebeca1
Merge pull request #23967 from ipsilon/evm_jumptable_type
karalabe Nov 25, 2021
519cf98
core/vm: simplify op lookup in contract (#23974)
gumb0 Nov 25, 2021
3038e48
all: core rework for the merge transition (#23761)
MariusVanDerWijden Nov 26, 2021
c10a0a6
eth: request id dispatcher and direct req/reply APIs (#23576)
karalabe Nov 26, 2021
86fe359
trie: simplify StackTrie implementation (#23950)
chfast Nov 29, 2021
1fa9172
core/vm: simplify error handling in interpreter loop (#23952)
chfast Nov 29, 2021
dbdc2c0
build, dockerfile: updated docker build
sadoci Nov 29, 2021
a69d4b2
core/vm: Rename SHA3 instruction to KECCAK256 (#23976)
axic Nov 30, 2021
163f166
core/vm: don't copy JumpTable when no EIP mods are needed (#23977)
gumb0 Nov 30, 2021
1988b47
tests/fuzzzers. eth/protocols/snap: add snap protocol fuzzers (#23957)
holiman Dec 1, 2021
9393d1f
core/vm: Move interpreter.ReadOnly check into the opcode implementati…
axic Dec 1, 2021
2be129b
core/vm: rename opSuicide to opSelfdestruct (#24022)
axic Dec 1, 2021
721c572
eth/tracers/js: add support for REVERT/SELFDESTRUCT in evmdis_tracer …
axic Dec 1, 2021
c893488
eth: pre-process downloader responses on the peer reader thread
karalabe Dec 1, 2021
8fbe0b9
p2p/enr: reduce allocation in Record.encode (#24034)
Evolution404 Dec 2, 2021
b45931c
accounts/abi/bind: correctly handle structs used only as constructor …
Dec 2, 2021
85064ed
all: fix 'the the' in comments (#24036)
acktsap Dec 2, 2021
5e78fc0
Merge pull request #24032 from karalabe/downloader-response-preprocess
karalabe Dec 3, 2021
a0f7771
core/vm: remove stack.pushN (#24040)
axic Dec 3, 2021
9331fe2
core/vm: fill gaps in jump table with opUndefined (#24031)
chfast Dec 3, 2021
b02fe53
core/vm: move interpreter interruption check to jump instructions (#2…
gumb0 Dec 3, 2021
58d1988
core, eth, les, trie: remove the sync bloom, used by fast sync
karalabe Dec 3, 2021
cca482b
Merge pull request #24047 from karalabe/delete-dead-sync-bloom
karalabe Dec 3, 2021
46f701c
readme: use correct link for web3.js docs (#24046)
nala-two Dec 3, 2021
93f196c
eth/catalyst: implement kintsugi spec v1.0.0-alpha.4 (#23984)
MariusVanDerWijden Dec 3, 2021
619a3e7
signer/core: move EIP-712 types to package apitypes (#24029)
holiman Dec 5, 2021
a95675d
core/vm: remove no-recursion option from config
holiman Dec 6, 2021
69686fa
core, core/rawdb: fix transaction indexing (#24024)
rjl493456442 Dec 6, 2021
a25906e
Merge pull request #24066 from holiman/no_no_recursion
karalabe Dec 6, 2021
acb0f7a
p2p/simulations: improve README language (#24051)
uwatm8 Dec 6, 2021
cc87cbd
security policy: updated pgp key (#24069)
fredriksvantes Dec 6, 2021
d785905
eth/filters: remove unused field 'chaindb' in PublicFilterAPI (#24072)
aaronbuchwald Dec 7, 2021
7f7877a
miner: update pending block even after the PoS transition (#24075)
rjl493456442 Dec 7, 2021
db03faa
core, eth: improve delivery speed on header requests (#23105)
holiman Dec 7, 2021
ae8ff26
core/vm: remove unused code (IsStaticJump) (#24085)
axic Dec 9, 2021
72c2c0a
cmd/geth, console: support interrupting the js console (#23387)
holiman Dec 11, 2021
b3b8b26
consensus: define MaxGasLimit as a const in params (#24092)
jovijovi Dec 14, 2021
adec878
core/rawdb: fix error message fields in ReadLogs (#24104)
ucwong Dec 14, 2021
155795b
core/vm: avoid memory expansion check for trivial ops (#24048)
holiman Dec 14, 2021
fc01a7c
les/vflux/client, p2p/nodestate: fix data races (#24058)
zsfelfoldi Dec 14, 2021
0ba0b81
rpc: fix time key collision for logger with json output (#24112)
bobakxd Dec 15, 2021
893502e
trie, core, eth: use db.has over db.get where possible
holiman Dec 15, 2021
bc6bf1e
README: remove mentions of snap sync (#24122)
MariusVanDerWijden Dec 16, 2021
81ec6b1
core/vm: reverse bit order in bytes of code bitmap (#24120)
chfast Dec 17, 2021
3e47e38
core/vm: Make INVALID a defined opcode (#24017)
gumb0 Dec 17, 2021
ada9c77
eth, les: update unclean shutdown markers regularly (#24077)
s1na Dec 17, 2021
f5f5c08
tests/solidity/contracts: fix typo in OpCodes.sol (#24123)
eltociear Dec 17, 2021
2295640
eth/catalyst: implement kintsugi-spec v3 (#24067)
MariusVanDerWijden Dec 17, 2021
8bbf83e
core: ignore basefee when comparing with pool gasprice in txpool (#24…
XWJACK Dec 17, 2021
99be62a
accounts/abi: avoid unnecessary alloc (#24128)
fomotrader Dec 20, 2021
b8edc04
build: upgrade -dlgo version to Go 1.17.5 (#24144)
fjl Dec 22, 2021
980b768
core/types: document JSON field name equivalents of DynamicFeeTx (#24…
fjl Dec 22, 2021
3f2e96c
cmd/geth: add missing sepolia testnet flag checks (#24147)
shekhirin Dec 22, 2021
11a3a35
params: release go-ethereum v1.10.14 stable
fjl Dec 23, 2021
dddf73a
params: begin v1.10.15 release cycle
fjl Dec 23, 2021
356bbe3
core/asm: change order of items in stringtokenTypes (#24153)
zgfzgf Dec 26, 2021
062d910
go.mod : go-nat-pmp v1.0.2
ucwong Dec 30, 2021
98be5f9
trie: fix spelling mistake (#24185)
codeoneline Jan 4, 2022
d0bd501
accounts: correct comment (#24186)
pcresswell Jan 4, 2022
66a908c
core/rawdb: fix double-lock causing hang (#24189)
holiman Jan 4, 2022
4bd2d0e
core: periodically flush the transaction indexes
rjl493456442 Jan 5, 2022
c0d17bc
graphql: check header first in blocks query (#24190)
s1na Jan 5, 2022
0169d57
ethclient: fix unmarshaling of ethereum.SyncProgress (#24199)
fjl Jan 5, 2022
c20de3c
graphql: fix pre-byzantium receipt status (#24188)
s1na Jan 5, 2022
3ccd6b6
graphql: fix block resolving for parent field (#24191)
s1na Jan 5, 2022
335914a
les: fix serverHandler crash after setHead (#24200)
holiman Jan 5, 2022
8be800f
params: go-ethereum v1.10.15 stable
fjl Jan 5, 2022
0f89310
params: begin v1.10.16 release cycle
fjl Jan 5, 2022
af2ca5a
Merge pull request #24117 from holiman/db_has
karalabe Jan 6, 2022
7403a38
core: fix a typo (#24198)
Xia-Sam Jan 6, 2022
9aa2e98
README: fix a typo (#24196)
fishmandev Jan 6, 2022
127ce93
accounts: corrected spelling mistakes (#24194)
sanskarkhare Jan 6, 2022
0dec47b
eth: continue after whitelist check
holiman Jan 7, 2022
adc0a6a
Merge pull request #24210 from holiman/whitelist_investigate
karalabe Jan 7, 2022
2347128
accouts/scwallet: typo fix (#24207)
ucwong Jan 7, 2022
1884f37
cmd/ethkey: fix comment typo (#24205)
aaronbuchwald Jan 7, 2022
b1e72f7
core/evm: RANDOM opcode (EIP-4399) (#24141)
MariusVanDerWijden Jan 10, 2022
acd7b36
Merge pull request #24197 from rjl493456442/periodically-flush-batch
karalabe Jan 11, 2022
e6b61ed
Merge pull request #24171 from ucwong/pmp
karalabe Jan 11, 2022
c006261
cmd/geth: add tests for version_check (#24169)
rangzen Jan 11, 2022
52448e9
cmd/geth: update copyright year (#24224)
vieyang Jan 11, 2022
2c58e6b
trie: use keyvalue reader for non-mutating methods (#24221)
darioush Jan 11, 2022
045e90c
crypto/ecies: use AES-192 for curve P384 (#24139)
xq840622 Jan 12, 2022
b1f0959
SECURITY.md: fix typo (#24244)
myersg86 Jan 15, 2022
f80ce14
accounts/abi/bind/backends: return errors instead of panic (#24242)
pespantelis Jan 18, 2022
4aab440
core/rawdb: enforce readonly in freezer instantiation (#24119)
s1na Jan 18, 2022
51eb5f8
cmd/geth: add db cmd to show metadata (#23900)
holiman Jan 18, 2022
7dec26d
signer, core: support chainId for GnosisSafeTx (#24231)
mmv08 Jan 18, 2022
03aaea1
internal/ethapi: use same receiver names (#24252)
aeharvlee Jan 20, 2022
514ae7c
eth/catalyst: evict old payloads, type PayloadID (#24236)
protolambda Jan 20, 2022
5bcbb29
rpc: add PeerInfo (#24255)
fjl Jan 20, 2022
c029cdc
core: fix typo in blockchain test (#24263)
Codier Jan 21, 2022
4c77062
ethdb/rocksdb: fixed iterator range issue
sadoci Jan 21, 2022
7ef5d1a
rpc: lowered log level for failed rpc request to Debug
sadoci Jan 21, 2022
318d3eb
metadium: removed unnecessary contract calls
sadoci Jan 21, 2022
6656da8
params: Berlin & London block numbers to nil
sadoci Jan 21, 2022
880b5cb
core: unon fast sync completion wait for governance to be initialized…
sadoci Jan 21, 2022
ae45c97
trie: fix range prover (#24266)
rjl493456442 Jan 21, 2022
eef7a33
core, miner, rpc, eth: fix goroutine leaks in tests (#24211)
charlesxsh Jan 21, 2022
2dfa4bc
trie: test for edgecase in VerifyRangeProof (#24257)
darioush Jan 21, 2022
c66e0f9
metadium/scripts: update gmet.sh for new command line options
sadoci Jan 22, 2022
e51e813
core: moved governance initialization check after block validation fails
sadoci Jan 22, 2022
06e16de
internal/ethapi: remove unnecessary comment (#24271)
aeharvlee Jan 24, 2022
6838542
accounts: fix typo in errors.go (#24270)
DavidCai1111 Jan 24, 2022
bd615e0
go.mod : golang-set 1.8.0 go.mod added & cardinality check for subset…
ucwong Jan 24, 2022
78636ee
eth, miner: use miner for post-merge block production (#23256)
rjl493456442 Jan 24, 2022
4230f5f
cmd/utils: fix regression placing dev mode datadir readonly
karalabe Jan 24, 2022
f9ce40b
Merge pull request #24281 from karalabe/dev-read-write
karalabe Jan 24, 2022
f39f068
accounts/abi: simplify Arguments.Unpack (#24277)
zhiqiangxu Jan 24, 2022
0e35192
core/rawdb: do prefixed lookup first
holiman Jan 25, 2022
78f13a3
Merge pull request #24288 from holiman/prefer_prefixed
karalabe Jan 25, 2022
29cb5de
core/rawdb: fix typo (#24289)
MariusVanDerWijden Jan 25, 2022
015fde9
eth/tracers: avoid using blockCtx concurrently (#24286)
holiman Jan 25, 2022
68b5f00
etcd: added patched etcd
sadoci Jan 26, 2022
c935183
rocksdb: bump-up rocksdb version to 6.27.3
sadoci Jan 26, 2022
579c759
eth/ethconfig: unlimited gascap and feecap for now
sadoci Jan 26, 2022
e282246
cmd/utils: open db in readonly when dev datadir exists (#24298)
s1na Jan 27, 2022
a988550
internal/web3ext: add eth.getLogs wrapper (#24297)
s1na Jan 27, 2022
abd49a6
rpc: set Request.GetBody for client requests (#24292)
ValentinTrinque Jan 27, 2022
64c53ed
tests: external evm benchmarks (#24050)
chfast Jan 28, 2022
0c1bd22
cmd/geth: make test pass on a pi4 by using lightkdf (#24314)
ligi Jan 31, 2022
cac09a3
eth/tracers: native prestate tracer (#24268)
s1na Jan 31, 2022
a5c0cfb
build: fix lint on ARM (#24311)
ligi Jan 31, 2022
9da25c5
all: separate catalyst package (#24280)
rjl493456442 Jan 31, 2022
b868ca1
accounts: correct spelling mistake (#24323)
B-Harden Feb 1, 2022
c5436c8
eth/tracers: clean-up tracer collection (#24320)
s1na Feb 1, 2022
afe344b
accounts/abi/bind: improve WaitMined error handling (#24321)
komkom Feb 1, 2022
d99e759
cmd: auto-enable beacon APIs if TTD is defined
karalabe Feb 2, 2022
1a7e345
Merge pull request #24328 from karalabe/uke-catalyst
karalabe Feb 2, 2022
aaca58a
go.mode: bump graphql-go dependency to v1.3.0 (#24324)
aaronbuchwald Feb 2, 2022
6ce4670
cmd/devp2p: implement snap protocol testing (#24276)
holiman Feb 4, 2022
2d20fed
miner: avoid data race in miner (#24349)
rjl493456442 Feb 7, 2022
5a0d487
signer/core: fix complex typed data sign (EIP712) (#24220)
holiman Feb 8, 2022
fb3a652
go.mod: upgrade to github.com/karalabe/usb v0.0.2 (#24356)
fjl Feb 8, 2022
51e7968
core/state: fix read-meters + simplify code (#24304)
holiman Feb 14, 2022
6c3513c
p2p: reduce the scope of variable dialPubkey (#24385)
zhiqiangxu Feb 14, 2022
f01e2fa
internal/ethapi: fix incorrect type on empty slice (#24372)
rodneyosodo Feb 15, 2022
e98114d
ethclient: add CallContractAtHash (#24355)
zhiqiangxu Feb 15, 2022
20356e5
params: go-ethereum v1.10.16 stable
holiman Feb 15, 2022
892bb78
consensus/misc, core, core/vm: disabled EIP-1559 & EIP-3198, fixed --…
sadoci Feb 25, 2022
79f3279
metadium/scripts: updated genesis template
sadoci Feb 25, 2022
8c34371
core, params: berlin & london block place holders
sadoci Feb 25, 2022
7be245c
Merge ethereum v1.10.16
sadoci Mar 11, 2022
f773bf5
consensus, eth: restored ETH/65 protocol
sadoci Mar 16, 2022
74721c6
metadium/scripts: gmet.sh to start ws service
sadoci Mar 16, 2022
eb658a4
Merge pull request #11 from sadoci/metadium
MetadiumRelease Mar 17, 2022
d6e9369
Makefile: fixed gmet-linux
MetadiumRelease Mar 18, 2022
c116cc5
core, params: update metadium testnet berlin & london block height
sadoci Mar 21, 2022
a0e66b5
consensus: abort upon rewards calculation error
sadoci Mar 21, 2022
993beaf
Merge pull request #12 from sadoci/metadium
MetadiumRelease Mar 21, 2022
43194ea
conensus, metadium: allow block generation when governance is not ini…
sadoci Mar 30, 2022
10e9aeb
metadium/scripts: updated gmet.sh to check if db is still open
sadoci Apr 7, 2022
dcd3da5
eth/protocols/eth: updated GetBlockHeaders66() to handle legacy cases
sadoci Apr 7, 2022
01c2171
metadium/scripts: removed chaindata* from gmet.sh wipe
sadoci Apr 7, 2022
8e6c344
core, params: reverted metadium testnet berlin & london block height
sadoci Apr 7, 2022
ccf8b63
ethdb/rocksdb: null terminated file name string, fixed read only rocksdb
sadoci Apr 11, 2022
59cab3a
core/rawdb: db detection before opening
sadoci Apr 11, 2022
aff46db
miner: fixed pending block refresh issue
sadoci Apr 12, 2022
98df44a
Merge pull request #14 from sadoci/metadium
MetadiumRelease Apr 14, 2022
00b76f3
ethdb/rocksdb: added 1 second delay to batch finalizer
sadoci Apr 21, 2022
c440fbe
feat: add etcd compact
lukepark327 May 6, 2022
53ca60d
add etcdCompactWindow
lukepark327 May 6, 2022
2069123
feat: apply compact window && update check logic
lukepark327 May 6, 2022
7d802e3
metadium: fixed error handling during rewards calculation
sadoci Sep 21, 2022
d5fdd66
core, params: update metadium testnet berlin & london block height to…
sadoci Sep 21, 2022
548c814
miner: sets baseFee in pending block
sadoci Sep 22, 2022
3763ee7
core, params: drop underpriced transactions
sadoci Sep 23, 2022
47ae953
add "meta" to ethstats
trident86 Mar 24, 2022
0bd1232
Merge metadium into master
sadoci Sep 23, 2022
ad68a03
Update CODEOWNERS
MetadiumRelease Sep 23, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
consensus: abort upon rewards calculation error
  • Loading branch information
sadoci committed Mar 21, 2022
commit a0e66b5b6e2a2320f45a822ae199140d72cc2e55
5 changes: 3 additions & 2 deletions consensus/beacon/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,16 +264,17 @@ func (beacon *Beacon) Prepare(chain consensus.ChainHeaderReader, header *types.H
}

// Finalize implements consensus.Engine, setting the final state on the header
func (beacon *Beacon) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header) {
func (beacon *Beacon) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header) error {
// Finalize is different with Prepare, it can be used in both block generation
// and verification. So determine the consensus rules by header type.
if !beacon.IsPoSHeader(header) {
beacon.ethone.Finalize(chain, header, state, txs, uncles)
return
return nil
}
// The block reward is no longer handled here. It's done by the
// external consensus engine.
header.Root = state.IntermediateRoot(true)
return nil
}

// FinalizeAndAssemble implements consensus.Engine, setting the final state and
Expand Down
3 changes: 2 additions & 1 deletion consensus/clique/clique.go
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,11 @@ func (c *Clique) Prepare(chain consensus.ChainHeaderReader, header *types.Header

// Finalize implements consensus.Engine, ensuring no uncles are set, nor block
// rewards given.
func (c *Clique) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header) {
func (c *Clique) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header) error {
// No block rewards in PoA, so the state remains as is and uncles are dropped
header.Root = state.IntermediateRoot(chain.Config().IsEIP158(header.Number))
header.UncleHash = types.CalcUncleHash(nil)
return nil
}

// FinalizeAndAssemble implements consensus.Engine, ensuring no uncles are set,
Expand Down
2 changes: 1 addition & 1 deletion consensus/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ type Engine interface {
// Note: The block header and state database might be updated to reflect any
// consensus rules that happen at finalization (e.g. block rewards).
Finalize(chain ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction,
uncles []*types.Header)
uncles []*types.Header) error

// FinalizeAndAssemble runs any post-transaction state modifications (e.g. block
// rewards) and assembles the final block.
Expand Down
32 changes: 16 additions & 16 deletions consensus/ethash/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -600,17 +600,22 @@ func (ethash *Ethash) Prepare(chain consensus.ChainHeaderReader, header *types.H

// Finalize implements consensus.Engine, accumulating the block and uncle rewards,
// setting the final state on the header
func (ethash *Ethash) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header) {
func (ethash *Ethash) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header) error {
// Accumulate any block and uncle rewards and commit the final state root
accumulateRewards(chain.Config(), state, header, uncles)
if err := accumulateRewards(chain.Config(), state, header, uncles); err != nil {
return err
}
header.Root = state.IntermediateRoot(chain.Config().IsEIP158(header.Number))
return nil
}

// FinalizeAndAssemble implements consensus.Engine, accumulating the block and
// uncle rewards, setting the final state and assembling the block.
func (ethash *Ethash) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header, receipts []*types.Receipt) (*types.Block, error) {
// Finalize block
ethash.Finalize(chain, header, state, txs, uncles)
if err := ethash.Finalize(chain, header, state, txs, uncles); err != nil {
return nil, err
}

// sign header.Root with node's private key
if !metaminer.IsPoW() {
Expand Down Expand Up @@ -663,7 +668,7 @@ var (
// AccumulateRewards credits the coinbase of the given block with the mining
// reward. The total reward consists of the static block reward and rewards for
// included uncles. The coinbase of each uncle block is also rewarded.
func accumulateRewards(config *params.ChainConfig, state *state.StateDB, header *types.Header, uncles []*types.Header) {
func accumulateRewards(config *params.ChainConfig, state *state.StateDB, header *types.Header, uncles []*types.Header) error {
// Select the correct block reward based on chain progression
blockReward := FrontierBlockReward
if config.IsByzantium(header.Number) {
Expand Down Expand Up @@ -695,18 +700,13 @@ func accumulateRewards(config *params.ChainConfig, state *state.StateDB, header
func(addr common.Address, amt *big.Int) {
state.AddBalance(addr, amt)
})
if err == nil {
header.Rewards = rewards
if coinbase != nil {
header.Coinbase = *coinbase
}
} else {
// upon error, rewards go to the coinbase
reward := new(big.Int)
if header.Fees != nil {
reward.Add(blockReward, header.Fees)
}
state.AddBalance(header.Coinbase, reward)
if err != nil {
return err
}
header.Rewards = rewards
if coinbase != nil {
header.Coinbase = *coinbase
}
}
return nil
}