rjl493456442
380fb4e249
core/state: clear out cached state data when reset occurs ( #27376 )
...
* core/state: remove cached snap data if reset occurs
* core/state: address comment from peter
* core/state: skip revert in case data is nil
2023-06-05 16:25:57 +03:00
Péter Szilágyi
c7c84ca16c
all: remove the Rinkeby testnet ( #27406 )
2023-06-02 14:03:21 +03:00
rjl493456442
15bd21f3c8
core/state: mark account as dirty when resetObject occurs ( #27339 )
...
This changes the journal logic to mark the state object dirty immediately when it
is reset.
We're mostly adding this change to appease the fuzzer. Marking it dirty immediately
makes no difference in practice because accounts will always be modified by EVM
right after creation.
2023-06-01 11:09:32 +02:00
Guillaume Ballet
45a3ab42aa
core/state: move slot RLP encoding into the MPT implementation ( #27000 )
...
Continuing with a series of PRs to make the Trie interface more generic, this PR moves
the RLP encoding of storage slots inside the StateTrie and light.Trie implementations,
as other types of tries don't use RLP.
2023-06-01 10:29:41 +02:00
Ng Wei Han
e802c737ab
consensus, core/rawdb, miner: downgrade logs ( #1662 )
2023-05-31 22:01:28 +08:00
Péter Szilágyi
008086f935
core, eth/downloader: validate blobtx.To at serialization time ( #27393 )
2023-05-31 13:08:15 +03:00
Péter Szilágyi
495692c9db
core, eth/downloader, params: validate blob tx bodies ( #27392 )
2023-05-31 11:12:26 +03:00
Péter Szilágyi
1f9b69b36d
consensus, core, eth/downloader, params: 4844 chain validation ( #27382 )
2023-05-31 10:21:13 +03:00
NathanBSC
86446edf55
feat: add a tool for submitting evidence of malicious voting ( #1660 )
...
* feat: add a tool for submitting evidence of malicious voting
2023-05-31 14:36:31 +08:00
Guillaume Ballet
188817468e
core/types: remove superfluous todo-comment ( #27383 )
2023-05-30 04:49:09 -04:00
NathanBSC
3d8753cae6
fix: remove naturally finality
2023-05-30 09:51:31 +08:00
Delweng
6c732766c8
core,console: replace noarg fmt.Errorf with errors.New ( #27332 )
...
* core: replace noarg fmt.Errorf with errors.New
Signed-off-by: jsvisa <delweng@gmail.com >
* console: replace noarg fmt.Errorf with errors.New
Signed-off-by: jsvisa <delweng@gmail.com >
* core: go autoimport
Signed-off-by: jsvisa <delweng@gmail.com >
* core: dry
Signed-off-by: jsvisa <delweng@gmail.com >
---------
Signed-off-by: jsvisa <delweng@gmail.com >
2023-05-25 08:24:09 -04:00
Mister-EA
1036dc70be
core: port several London EIPs on BSC( #1422 )
...
Here is the list:
a.BEP-227: Implement EIP-3198: BASEFEE opcode
b.BEP-226: Implement EIP-1559 with base fee of 0
c.BEP-228: Implement EIP-3541: Prevent deploying contracts starting with 0xEF
d.BEP-212: Implement EIP-3529: Reduction in Refunds
2023-05-25 17:34:04 +08:00
Park Changwan
bfded65ed8
core/state: do not ignore null addr while iterative dump ( #27320 )
...
fixes bug which caused the zero-address to be ignored during an iterative state-dump.
---------
Co-authored-by: Martin Holst Swende <martin@swende.se >
2023-05-23 06:10:26 -04:00
sunny2022da
08eab8b928
feature: Enable Berlin EIPs ( #1608 )
...
Enable following Berlin EIPs on BSC and introduce HertzBlock
** EIP-2565: ModExp Gas Cost
** EIP-2929: Gas cost increases for state access opcodes
** EIP-2718: Typed Transaction Envelope
** EIP-2930: Optional access lists
2023-05-19 21:32:10 +08:00
Péter Szilágyi
85a4b82b33
all: tie timestamp based forks to the passage of London ( #27279 )
2023-05-19 11:27:19 +03:00
NathanBSC
bac626c39c
upgrade: avoid to modify RialtoGenesisHash when testing in rialtoNet ( #1621 )
2023-05-19 10:56:20 +08:00
John Chase
2f2959d003
core/state/pruner: remove unused error-return ( #27273 )
2023-05-17 04:23:06 -04:00
Martin Holst Swende
eb83e7c540
core/state/snapshot: check difflayer staleness early ( #27255 )
...
This PR adds a staleness-check to AccountRLP, before checking the bloom-filter and potentially going directly into the disklayer.
---------
Co-authored-by: rjl493456442 <garyrong0905@gmail.com >
2023-05-16 09:18:39 -04:00
joohhnnn
c2148c644d
core/asm: remove unused return value ( #27272 )
2023-05-16 10:14:04 +02:00
Péter Szilágyi
1982437259
core/types: un-ssz blob txs, add json marshalling and tweaks ( #27256 )
2023-05-12 20:14:29 +03:00
rjl493456442
a14301823e
all: new empty trie with types.EmptyRootHash instead of null ( #27230 )
2023-05-11 10:19:42 +03:00
Guillaume Ballet
7577b9c28f
core/state: unexport NodeIterator ( #27239 )
2023-05-11 10:15:44 +03:00
NathanBSC
b0ad7428c2
feature: add malicious vote monitor ( #1597 )
2023-05-11 14:45:15 +08:00
NathanBSC
4cc78fd175
upgrade: update PlatoUpgrade contracts code ( #1600 )
2023-05-10 11:00:54 +08:00
rjl493456442
5021d36d35
all: port boring changes from pbss ( #27176 )
...
* all: port boring changes from pbss
* core, trie: address comments from martin
* trie: minor fixes
* core/rawdb: update comment
* core, eth, tests, trie: address comments
* tests, trie: add extra check when update trie database
* trie/triedb/hashdb: degrade the error to warning
2023-05-09 10:11:04 +03:00
Roshan
7e1590c928
upgrade: update PlatoUpgrade contracts code ( #1592 )
2023-05-08 17:27:40 +08:00
ucwong
cc8d40c65f
core/state: initialize maps with known size ( #27222 )
...
* core/state : fix map size avoid resizing
* core/state : fixed size
2023-05-08 09:59:14 +03:00
lmittmann
880535c730
eth/tracers, core/vm: remove time from trace output and tracing interface ( #1488 )
...
This removes the 'time' field from logs, as well as from the tracer interface. This change makes the trace output deterministic. If a tracer needs the time they can measure it themselves. No need for evm to do this.
Co-authored-by: Martin Holst Swende <martin@swende.se >
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com >
2023-05-06 11:16:27 +08:00
Evgeny Kolyakov
f8e000309c
code: x = append(y) is equivalent to x = y ( #866 )
2023-05-06 10:43:44 +08:00
NathanBSC
daae7718a8
fix: support golang 1.20 by upgrading prysm to v4 ( #1576 )
2023-05-06 09:56:10 +08:00
Roshan
0359e063b0
upgrade: update PlatoUpgrade contracts code ( #1574 )
2023-05-05 19:03:57 +08:00
ucwong
ba09403113
core/txpool : fix map size avoid resizing ( #27221 )
2023-05-05 12:33:01 +03:00
yutianwu
b801f291df
feat: remove supports for legacy proof type ( #1573 )
2023-05-05 17:06:10 +08:00
NathanBSC
5b75f597b4
fix: remove dynamic metric labels about fast finality ( #1572 )
2023-05-05 14:15:43 +08:00
Péter Szilágyi
dde2da0efb
all: remove ethash pow, only retain shims needed for consensus and tests ( #27178 )
...
* all: remove ethash pow, only retain shims needed for consensus and tests
* all: thank you linter
* all: disallow launching Geth in legacy PoW mode
* cmd/env/internal/t8ntool: remove dangling ethash flag
2023-05-03 12:58:39 +03:00
Guillaume Ballet
7f6c045e0d
core: remove unused ContractCode method from BlockChain ( #27186 )
2023-05-02 04:56:08 -04:00
ucwong
a9d7cdaf6e
core/types: go generate ( #27196 )
...
Fixes a discrepancy between source and generated files, which was introduced when ExcessDataGas was added in https://github.com/ethereum/go-ethereum/pull/27046 .
2023-05-02 04:32:27 -04:00
Péter Szilágyi
66c0c4e517
cmd, eth, les: replace Shanghai override flag with Cancun ( #27171 )
2023-04-26 18:17:37 +03:00
Roberto Bayardo
f8aa623536
core/types: fix discrepancy in receipt.EffectiveGasPrice json encoding tags ( #27114 )
...
Regenerate receipt json code to remove omit empty. Previously, there was a discrepancy between the generated code and the source.
---------
Co-authored-by: lightclient@protonmail.com <lightclient@protonmail.com >
Co-authored-by: Martin Holst Swende <martin@swende.se >
2023-04-26 02:37:11 -04:00
NathanBSC
129bcfe7de
fix: memory leak of receivedVotes ( #1516 )
2023-04-24 14:53:51 +08:00
NathanBSC
fb0893a631
fix: all votes rejected for span voting caused by reorg ( #1510 )
...
* fix: all votes rejected for span voting caused by reorg
* fix: change internal for recover voting to 256 from 512
2023-04-24 14:28:28 +08:00
Péter Szilágyi
d3ece3a07c
cmd/utils, node: switch to Pebble as the default db if none exists ( #27136 )
...
* cmd/utils, node: switch to Pebble as the default db if none exists
* node: fall back to LevelDB on platforms not supporting Pebble
* core/rawdb, node: default to Pebble at the node level
* cmd/geth: fix some tests explicitly using leveldb
* ethdb/pebble: allow double closes, makes tests simpler
2023-04-21 19:24:18 +03:00
Péter Szilágyi
bbc565ab05
core/types, params: add blob transaction type, RLP encoded for now ( #27049 )
...
* core/types, params: add blob transaction type, RLP encoded for now
* all: integrate Cancun (and timestamp based forks) into MakeSigner
* core/types: fix 2 back-and-forth type refactors
* core: fix review comment
* core/types: swap blob tx type id to 0x03
2023-04-21 12:52:02 +03:00
lx
0222ce7479
upgrade: rename hardfork to Luban & Plato ( #1504 )
2023-04-21 17:07:11 +08:00
lx
54be51fe05
upgrade: correct the typo the commit url ( #1500 )
2023-04-21 10:09:55 +08:00
zjubfd
3769f25b30
bep: update the bytecode of boneh fork after the contract release ( #1493 )
2023-04-20 22:28:25 +08:00
rjl493456442
99f81d2724
all: refactor trie API ( #26995 )
...
In this PR, all TryXXX(e.g. TryGet) APIs of trie are renamed to XXX(e.g. Get) with an error returned.
The original XXX(e.g. Get) APIs are renamed to MustXXX(e.g. MustGet) and does not return any error -- they print a log output. A future PR will change the behaviour to panic on errorrs.
2023-04-20 06:57:24 -04:00
Alex Beregszaszi
3f7afc3f57
core/vm: order opcodes properly ( #27113 )
2023-04-20 02:52:00 -04:00
KeefeL
bbd4e9252f
BEP-221: implement cometBFT light block validation ( #1463 )
2023-04-18 15:51:26 +08:00