Delweng
7f3fc15a8b
core/rawdb: update freezertable read meter ( #26946 )
...
The meter for "for measuring the effective amount of data read" within the freezertable was never updated. This change remedies that.
---------
Signed-off-by: jsvisa <delweng@gmail.com>
2023-03-23 03:34:40 -04:00
buddh0
9ffd7e139e
clean: reduce useless logs
2023-03-23 11:09:53 +08:00
buddh0
a32a7b1cf7
tracer: enable withLog for TraceCall
2023-03-23 11:09:53 +08:00
Nathan
33590ce2e9
ci: fix truffle test ( #1384 )
2023-03-23 10:39:20 +08:00
Marius van der Wijden
20f8eb756b
eth/catalyst: fix races ( #26950 )
2023-03-22 13:36:26 -04:00
Martin Holst Swende
b3f43c89b3
core/vm: expose jumptable constructors ( #26880 )
...
When interacting with geth as a library to e.g. produce state tests, it is desirable to obtain the consensus-correct jumptable definition for a given fork. This changes adds accessors so the instructionset can be obtained and characteristics about opcodes can be inspected.
2023-03-21 07:14:47 -04:00
s7v7nislands
905a723fae
core/rawdb: use atomic int added in go1.19 ( #26935 )
2023-03-21 07:10:23 -04:00
Péter Szilágyi
8a9a73c99b
log: add special casing of uint256 into the logger ( #26936 )
2023-03-21 12:01:43 +02:00
Péter Szilágyi
2ed8013f08
build: allow building nightly archives via cron jobs ( #26938 )
2023-03-21 11:52:29 +02:00
Martin Holst Swende
7ecb578564
params: begin v1.11.6 release cycle
2023-03-21 09:04:26 +01:00
Martin Holst Swende
a38f410857
params: go-ethereum v1.11.5 stable
2023-03-21 09:03:04 +01:00
Marius van der Wijden
e6b6a8b738
core/txpool: allow future local transactions ( #26930 )
...
Local transactions should not be subject to the "future shouldn't churn pending txs" rule
2023-03-20 09:15:18 -04:00
Marius van der Wijden
5d23d21fff
params: schedule shanghai fork on mainnet ( #26908 )
...
Schedules the shanghai hardfork on timestamp 1681338455 as discussed on ACDE 157: https://github.com/ethereum/execution-specs/pull/727
2023-03-20 07:38:34 -04:00
s7v7nislands
80ff0b4e6a
core/txpool: use atomic int added in go1.19 ( #26913 )
...
Makes use of atomic.Uint64 instead of atomic by pointer
2023-03-20 04:12:24 -04:00
Marius van der Wijden
81b0aa0cc7
trie: reduce unit test time ( #26918 )
2023-03-20 04:09:35 -04:00
Darioush Jalali
ee8e83fa5f
eth: fix output file permissions in admin_exportChain ( #26912 )
...
* api: Use 0700 file permissions for ExportChain
* change perm to 0644
* Update api.go
---------
Co-authored-by: Felix Lange <fjl@twurst.com>
2023-03-17 20:06:06 +02:00
Martin Holst Swende
58d0f6440b
rlp: support for uint256 ( #26898 )
...
This adds built-in support in package rlp for encoding, decoding and generating code dealing with uint256.Int.
---------
Co-authored-by: Felix Lange <fjl@twurst.com>
2023-03-17 06:51:55 -04:00
Darioush Jalali
b7bfbc1e64
trie, accounts/abi: add error-checks ( #26914 )
2023-03-17 06:19:51 -04:00
Darioush Jalali
f733657383
internal/ethapi: avoid int overflow in GetTransactionReceipt ( #26911 )
2023-03-16 23:53:39 +01:00
Marius van der Wijden
d8066dcde8
eth/catalyst: increase update consensus timeout ( #26840 )
...
Increases the time between consensus updates that we give the CL before we start warning the user.
2023-03-16 15:35:36 -04:00
rjl493456442
48d1bf0678
consensus: improve consensus engine definition ( #26871 )
...
Makes clear the distinction between Finalize and FinalizedAndAssemble:
- In Finalize function, a series of state operations are applied according to consensus rules. The statedb is mutated and the root hash can be checked and compared afterwards.
This function should be used in block processing(receive afrom network and apply it locally) but not block generation.
- In FinalizeAndAssemble function, after applying state mutations, the block is also to be assembled with the latest
state root computed, updating the header.
This function should be used in block generation only.
2023-03-16 15:34:25 -04:00
rjl493456442
bba2a1bac5
core: show db error-info in case of mismatched hash root ( #26870 )
...
When a database failure occurs, bubble it up a into statedb, and report it in suitable places, such as during a 'bad block' report.
2023-03-16 03:12:34 -04:00
Felix Lange
f86913bc3e
cmd/devp2p, cmd/geth: add version in --help output ( #26895 )
...
Not sure why this was removed, it's pretty useful to see the version
also in --help.
2023-03-15 14:34:36 +01:00
Larry
fc4303c6c6
fix: crash on nil access when TxPool shutdown ( #1353 ) ( #1356 )
v1.1.20
2023-03-15 18:06:00 +08:00
Larry
b99ef2541f
fix: crash on nil access when TxPool shutdown ( #1353 )
2023-03-15 17:43:18 +08:00
Larry
8bd6ee887b
Merge pull request #1352 from brilliant-lx/remove_bep188
...
upgrade: remove BEP-188 from planck hardfork
2023-03-15 12:24:55 +08:00
Jonathan Otto
6bc68f8d94
Increase websocket frame size (from erigon rpc client) ( #26883 )
...
This increases the maximum allowed message size to 32MB.
Originally submitted at https://github.com/ledgerwatch/erigon/pull/2739
example block failure: https://etherscan.io/tx/0x1317d973a55cedf9b0f2df6ea48e8077dd176f5444a3423368a46d6e4db89982#internal
2023-03-14 18:41:28 +01:00
Stephen Flynn
b5c9be3358
all: update links in documentation ( #26882 )
...
Co-authored-by: Stephen Flynn <stephen.flynn@gapac.com>
2023-03-14 10:23:49 -04:00
Larry
7b6cebed7b
Merge pull request #1351 from brilliant-lx/remove_bep188
...
upgrade: remove BEP-188 from planck hardfork
2023-03-14 21:54:30 +08:00
Martin Holst Swende
eca3d39c31
p2p/discover: pass invalid discv5 packets to Unhandled channel ( #26699 )
...
This makes it possible to run another protocol alongside discv5, by reading
unhandled packets from the channel.
2023-03-14 12:40:40 +01:00
larry.lx
9b4f10692b
doc: remove BEP-188 from planck
2023-03-14 17:32:22 +08:00
larry.lx
6526a601cb
Revert "parlia: consensus changes according to BEP of Early Broadcast ( #1268 )"
...
This reverts commit f5cb1378da878146a6b3402e7ce9f53783e4f977.
2023-03-14 17:31:21 +08:00
larry.lx
540adff8be
Revert "parlia: miner changes for BEP-188 of Early Broadcast ( #1269 )"
...
This reverts commit c8a1535c74152c8e91eca2d4dfeb914ffb02ba18.
2023-03-14 17:22:49 +08:00
rjl493456442
c8a6b7100c
core/state, trie: port changes from PBSS ( #26763 )
2023-03-14 04:50:53 -04:00
Larry
9c1d2836ae
Merge pull request #1350 from bnb-chain/develop
...
release: draft release v1.1.20
2023-03-14 12:29:22 +08:00
Larry
0d87a13c94
release: prepare for release v1.1.20 ( #1349 )
2023-03-14 10:40:26 +08:00
Eric
22645261bf
core/txpool: implement additional DoS defenses ( #1348 )
...
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
2023-03-13 21:16:00 +08:00
Felix Lange
94ff721911
.travis.yml: reenable PPA build on tag push ( #26873 )
2023-03-13 14:10:19 +01:00
Larry
36ccd334be
upgrade: update the fork height of planck upgrade on testnet ( #1347 )
2023-03-13 21:02:05 +08:00
lightclient
5f81db68c6
eth: return error if 'safe' or 'finalized' tag used pre-merge ( #26862 )
...
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Felix Lange <fjl@twurst.com>
2023-03-13 06:51:23 -04:00
ucwong
d1c5f918a3
core/txpool: use priceList.Put instead of heap.Push ( #26863 )
...
Minor refactor to use the 'intended' accessor
2023-03-13 04:45:25 -04:00
s7v7nislands
a20e38720c
core: minor code refactor ( #26852 )
...
* core: refactor code
* core: drop it from this anonymous goroutine func
2023-03-13 04:02:50 -04:00
xiyang
ca61048178
code/vm: fix comment typo ( #26865 )
...
it should be constantinople rather than contantinople
2023-03-13 09:30:32 +02:00
Leon
c1fde0e86c
consensus: fix delete the 1st validator from snapshot.recents list ( #1344 )
...
* consensus: fix delete the 1st validator from snapshot.recents list
* consensus:fix uint sub error with negative
2023-03-13 11:10:16 +08:00
Guruprasad Kamath
789de23d16
tests: define MuirGlacier
fork ( #26856 )
...
add muir glacier to t8n
2023-03-10 15:47:05 -05:00
Felix Lange
4930614a09
params: begin v1.11.5 release cycle
2023-03-10 20:00:23 +01:00
Felix Lange
7e3b149be0
params: go-ethereum v1.11.4 stable
2023-03-10 19:53:52 +01:00
Marius van der Wijden
6cf2e921a7
core/txpool: implement additional DoS defenses ( #26648 )
...
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>
2023-03-10 18:30:26 +01:00
Felix Lange
564db9a95f
core: add Timestamp method in BlockGen ( #26844 )
...
Since forks are now scheduled by block time, it can be necessary
to check the timestamp of a block while generating transactions.
2023-03-10 14:03:27 +01:00
panicalways
051493d9bf
p2p: small comment typo ( #26850 )
...
Update server.go
2023-03-10 11:45:49 +02:00