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

feat: decun upgrade #7

Merged
merged 92 commits into from
Mar 14, 2024
Merged
Changes from 1 commit
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
5d98479
core: using math.MaxUint64 instead of 0xffffffffffffffff (#29022)
cuiweixie Feb 19, 2024
6fb0d09
core/txpool, miner: speed up blob pool pending retrievals (#29008)
karalabe Feb 19, 2024
ac0ff04
core/vm, params: ensure order of forks, prevent overflow (#29023)
holiman Feb 19, 2024
f4852b8
core/txpool, eth, miner: retrieve plain and blob txs separately (#29026)
karalabe Feb 20, 2024
7f5e96d
core/txpool: fix typo (#29031)
buddh0 Feb 20, 2024
bba3fa9
core,eth,internal: fix typo (#29024)
buddh0 Feb 20, 2024
79e340f
params: add cancun upgrade banner (#29042)
tmelhao Feb 21, 2024
b9ca38b
core/txpool: fix typo (#29036)
colinlyguo Feb 21, 2024
b47cf8f
internal/ethapi: fix defaults for blob fields (#29037)
s1na Feb 21, 2024
3b4ede7
params: release go-ethereum v1.13.13 stable
fjl Feb 21, 2024
b590cae
params: begin v1.13.14 release cycle
fjl Feb 21, 2024
e47a7c2
internal/ethapi: use overriden baseFee for gasPrice (#29051)
ArtificialPB Feb 22, 2024
b87b9b4
internal/ethapi:fix zero rpc gas cap in eth_createAccessList (#28846)
colinlyguo Feb 22, 2024
93c541a
eth/catalyst: fix wrong error message of payloadV2 after cancun (#29049)
tmelhao Feb 23, 2024
32d4d6e
core/txpool: reject blob txs with blob fee cap below the minimum (#29…
Feb 26, 2024
26724fc
p2p, log, rpc: use errors.New to replace fmt.Errorf with no parameter…
0x2d3c Feb 26, 2024
edffacc
eth/catalyst: enable some commented-out testcases   (#29073)
cuiweixie Feb 26, 2024
8bca93e
internal/ethapi: pass blob hashes to gas estimation (#29085)
mask-pp Feb 26, 2024
821d702
cmd/clef: add spaces in README.md table (#29077)
justindhillon Feb 26, 2024
c1f59b9
eth/catalyst: remove variable in tx conversion loop (#29076)
cuiweixie Feb 26, 2024
63aaac8
core/txpool/blobpool: reduce default database cap for rollout (#29090)
karalabe Feb 26, 2024
45a272c
core/txpool: no need to log loud rotate if no local txs (#29083)
jsvisa Feb 26, 2024
5a0f468
eth/tracers: Fix callTracer logs on onlyTopCall == true (#29068)
andreisilviudragnea Feb 27, 2024
51b479e
core/txpool: elevate the 'already reserved' error into a constant (#2…
Feb 27, 2024
9038ba6
params: release Geth v1.13.14
karalabe Feb 27, 2024
57d2b55
params: begin v1.13.15 cycle
karalabe Feb 27, 2024
02d77c9
core: using math.MaxUint64 instead of 0xffffffffffffffff (#29094)
cuiweixie Feb 28, 2024
170fcd8
params: being major version bump cycle
karalabe Feb 28, 2024
49623bd
core, triedb/pathdb: calculate the size for batch pre-allocation (#29…
rjl493456442 Feb 28, 2024
5bae14f
triedb/pathdb: fix panic in recoverable (#29107)
rjl493456442 Feb 28, 2024
9986a69
internal/ethapi: pass in accesslist in test (#29089)
buddh0 Feb 28, 2024
1883438
eth/catalyst: return invalid payload attributes instead of invalid pa…
lightclient Feb 28, 2024
dbc27a1
all: fix function names in docs (#29128)
cuishuang Feb 29, 2024
28d5521
cmd/geth: parseDumpConfig should not return closed db (#29100)
weiihann Feb 29, 2024
db4cf69
all: replace fmt.Errorf() with errors.New() if no param required (#29…
Feb 29, 2024
865e1e9
cmd/utils, core/rawdb, triedb/pathdb: flip hash to path scheme (#29108)
karalabe Feb 29, 2024
0a2f339
eth/catalyst: update simulated beacon for cancun (#28829)
s1na Feb 29, 2024
0b1438c
eth: make transaction propagation paths in the network deterministic …
karalabe Mar 2, 2024
00905f7
all: remove redundant import aliases (#29144)
undefinedor Mar 2, 2024
a732ad0
p2p: remove unused argument 'flags' (#29132)
yasyzb Mar 4, 2024
b408b3e
accounts/abi: delete duplicate error check (#29136)
yasyzb Mar 4, 2024
5a1e8a6
core: delete unused ErrMaxInitCodeSizeExceeded (#29062)
cuiweixie Mar 4, 2024
679a27a
all: use EmptyUncleHash, EmptyCodeHash instead of raw value (#29134)
buddh0 Mar 4, 2024
35cebc1
triedb/pathdb: changed the test code to check for verifying state (#2…
psogv0308 Mar 4, 2024
a97d622
cmd/devp2p: fix commandHasFlag (#29091)
fjl Mar 4, 2024
ca473b8
core: use finalized block as the chain freeze indicator (#28683)
rjl493456442 Mar 4, 2024
19607d1
eth/tracers: Fix prestateTracer pre nonce on contract creation (#29099)
andreisilviudragnea Mar 4, 2024
5d5b384
.mailmap: remove invalid email address (#29163)
reductionista Mar 4, 2024
9b3ceb2
core/types: reuse signtx (#29152)
vieyang Mar 5, 2024
d89d7eb
core: initialize `gasRemaining` with `=` instead of `+=` (#29149)
zhiqiangxu Mar 5, 2024
e199319
rlp: remove a moot todo (#29154)
buddh0 Mar 5, 2024
7b81cf6
core/state, trie/triedb/pathdb: remove storage incomplete flag (#28940)
rjl493456442 Mar 5, 2024
96bf23f
accounts/usbwallet: use updated hid (only) library (#28945)
holiman Mar 5, 2024
dfa6c5e
internal/jsre: format blob fields from hexdecimal to int (#29166)
jsvisa Mar 5, 2024
a6d6e8a
rpc: remove deprecated method "Notifier.Closed" (#29162)
undefinedor Mar 5, 2024
a970295
rlp: using unsafe.Slice instead of SliceHeader (#29067)
cuiweixie Mar 5, 2024
9e129ef
core: remove useless assignments (#29065)
zhiqiangxu Mar 5, 2024
9a0fa80
node: remove test which doesn't do a lot (#29159)
MariusVanDerWijden Mar 5, 2024
f4d5313
consensus, cmd, core, eth: remove support for non-merge mode of opera…
karalabe Mar 5, 2024
66e1a6e
go.mod: bump pebble db to official release (#29038)
Mar 5, 2024
588c548
internal/ethapi: delete needless error check (#29127)
tomdever Mar 6, 2024
899bb88
accounts/usbwallet: revert #28945 (#29175)
holiman Mar 6, 2024
a000acb
rpc: add more test cases for arg types (#29006)
AyumuKasuga Mar 6, 2024
e73f553
accounts/usbwallet: update hid library (#29176)
holiman Mar 6, 2024
a90fe84
accounts: remove deprecated function NewPlaintextKeyStore (#29171)
undefinedor Mar 6, 2024
6e379b6
eth/tracers: prestate tracer add blob fee (#29168)
jsvisa Mar 6, 2024
d8e0807
miner: refactor the miner, make the pending block on demand (#28623)
MariusVanDerWijden Mar 6, 2024
aadcb88
cmd/blsync, beacon/light: beacon chain light client (#28822)
zsfelfoldi Mar 6, 2024
3bebabb
accounts: remove redundant string conversion (#29184)
cuinix Mar 7, 2024
cd49060
all: fix typos in comments (#29186)
hyhnet Mar 7, 2024
c41105c
log: add Handler getter to Logger interface (#28793)
sebastianst Mar 7, 2024
d35c8f0
ethclient/gethclient: add blob transaction fields in toCallArg (#29198)
colinlyguo Mar 8, 2024
e31709d
console: fix the wrong error msg of datadir testcase (#29183)
tmelhao Mar 8, 2024
3dc549b
p2p/simulations/adapters: fix error messages in TestTCPPipeBidirectio…
keroro520 Mar 10, 2024
b393ad8
cmd, core, metrics: always report expensive metrics (#29191)
karalabe Mar 11, 2024
00c2112
core/txpool/blobpool: return ErrAlreadyKnown for duplicate txs (#29210)
PlasmaPower Mar 11, 2024
fa4ade8
core: fix deprecation comment for GenesisAccount (#29218)
s1na Mar 11, 2024
ebf9e11
beacon/light/request: fix typos (#29216)
testwill Mar 11, 2024
4e1116f
crypto/bn256/cloudflare: fix noescape-directive (#29222)
kumakichi Mar 12, 2024
89cefe2
cmd: use package filepath over path for file system operations (#29227)
songzhibin97 Mar 12, 2024
99bbbc0
internal/build, rpc: add missing HTTP response body Close() calls (#2…
wzshiming Mar 12, 2024
4bd55a0
common/math: copy result in Exp (#29233)
AaronChen0 Mar 12, 2024
6c76b81
miner: add additional log (#29193)
MariusVanDerWijden Mar 12, 2024
758fce7
p2p: fix race in dialScheduler (#29235)
fjl Mar 12, 2024
eff424c
eth/tracers: fix concurrency issue for JS-tracing a block (#29238)
s1na Mar 13, 2024
d5bacfa
crypto/kz4844: pass blobs by ref (#29050)
holiman Mar 13, 2024
b80643b
accounts/usbwallet, common/bitutil: fix broken links in docs (#29078)
justindhillon Mar 13, 2024
c170fa2
core: improve chain rewinding mechanism (#29196)
rjl493456442 Mar 13, 2024
f3d18d6
tests, appveyor: only execute one in four permutations on CI (#29220)
holiman Mar 13, 2024
57308be
go.mod: update golang.org/x/crypto from v0.17.0 to v0.21.0 (#29228)
songzhibin97 Mar 13, 2024
3c26ffe
eth/catalyst: remove error return in delayPayloadImport (#29043)
tmelhao Mar 13, 2024
0c1c305
decun upgrade
tiennampham23 Mar 14, 2024
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
core/txpool: fix typo (ethereum#29036)
* fix typos

* address comments
colinlyguo authored Feb 21, 2024
commit b9ca38b7358dbf7e236c624043bbab789a8d0389
2 changes: 1 addition & 1 deletion core/state_transition.go
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@ func (result *ExecutionResult) Revert() []byte {
}

// IntrinsicGas computes the 'intrinsic gas' for a message with the given data.
func IntrinsicGas(data []byte, accessList types.AccessList, isContractCreation bool, isHomestead, isEIP2028 bool, isEIP3860 bool) (uint64, error) {
func IntrinsicGas(data []byte, accessList types.AccessList, isContractCreation bool, isHomestead, isEIP2028, isEIP3860 bool) (uint64, error) {
// Set the starting gas for the raw transaction
var gas uint64
if isContractCreation && isHomestead {
12 changes: 6 additions & 6 deletions core/txpool/blobpool/blobpool.go
Original file line number Diff line number Diff line change
@@ -360,7 +360,7 @@ func (p *BlobPool) Init(gasTip uint64, head *types.Header, reserve txpool.Addres
}
}
// Initialize the state with head block, or fallback to empty one in
// case the head state is not available(might occur when node is not
// case the head state is not available (might occur when node is not
// fully synced).
state, err := p.chain.StateAt(head.Root)
if err != nil {
@@ -540,7 +540,7 @@ func (p *BlobPool) recheck(addr common.Address, inclusions map[common.Hash]uint6
}
delete(p.index, addr)
delete(p.spent, addr)
if inclusions != nil { // only during reorgs will the heap will be initialized
if inclusions != nil { // only during reorgs will the heap be initialized
heap.Remove(p.evict, p.evict.index[addr])
}
p.reserve(addr, false)
@@ -693,7 +693,7 @@ func (p *BlobPool) recheck(addr common.Address, inclusions map[common.Hash]uint6
if len(txs) == 0 {
delete(p.index, addr)
delete(p.spent, addr)
if inclusions != nil { // only during reorgs will the heap will be initialized
if inclusions != nil { // only during reorgs will the heap be initialized
heap.Remove(p.evict, p.evict.index[addr])
}
p.reserve(addr, false)
@@ -809,7 +809,7 @@ func (p *BlobPool) Reset(oldHead, newHead *types.Header) {
}
}
// Recheck the account's pooled transactions to drop included and
// invalidated one
// invalidated ones
p.recheck(addr, inclusions)
}
if len(adds) > 0 {
@@ -1226,7 +1226,7 @@ func (p *BlobPool) Add(txs []*types.Transaction, local bool, sync bool) []error
// consensus validity and pool restrictions).
func (p *BlobPool) add(tx *types.Transaction) (err error) {
// The blob pool blocks on adding a transaction. This is because blob txs are
// only even pulled form the network, so this method will act as the overload
// only even pulled from the network, so this method will act as the overload
// protection for fetches.
waitStart := time.Now()
p.lock.Lock()
@@ -1554,7 +1554,7 @@ func (p *BlobPool) updateStorageMetrics() {
}

// updateLimboMetrics retrieves a bunch of stats from the limbo store and pushes
// // them out as metrics.
// them out as metrics.
func (p *BlobPool) updateLimboMetrics() {
stats := p.limbo.store.Infos()

2 changes: 1 addition & 1 deletion core/txpool/legacypool/legacypool.go
Original file line number Diff line number Diff line change
@@ -296,7 +296,7 @@ func (pool *LegacyPool) Init(gasTip uint64, head *types.Header, reserve txpool.A
pool.gasTip.Store(uint256.NewInt(gasTip))

// Initialize the state with head block, or fallback to empty one in
// case the head state is not available(might occur when node is not
// case the head state is not available (might occur when node is not
// fully synced).
statedb, err := pool.chain.StateAt(head.Root)
if err != nil {