Skip to content

Commit fca6a6b

Browse files
authored
Merge pull request bnb-chain#3323 from bnb-chain/develop
Draft release v1.6.0-alpha
2 parents e7b198c + 7b3c190 commit fca6a6b

File tree

824 files changed

+108876
-25358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

824 files changed

+108876
-25358
lines changed

.github/CODEOWNERS

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ beacon/light/ @zsfelfoldi
99
beacon/merkle/ @zsfelfoldi
1010
beacon/types/ @zsfelfoldi @fjl
1111
beacon/params/ @zsfelfoldi @fjl
12-
cmd/clef/ @holiman
13-
cmd/evm/ @holiman @MariusVanDerWijden @lightclient
14-
core/state/ @rjl493456442 @holiman
15-
crypto/ @gballet @jwasinger @holiman @fjl
16-
core/ @holiman @rjl493456442
17-
eth/ @holiman @rjl493456442
12+
cmd/evm/ @MariusVanDerWijden @lightclient
13+
core/state/ @rjl493456442
14+
crypto/ @gballet @jwasinger @fjl
15+
core/ @rjl493456442
16+
eth/ @rjl493456442
1817
eth/catalyst/ @MariusVanDerWijden @lightclient @fjl @jwasinger
1918
eth/tracers/ @s1na
2019
ethclient/ @fjl
@@ -26,11 +25,9 @@ core/tracing/ @s1na
2625
graphql/ @s1na
2726
internal/ethapi/ @fjl @s1na @lightclient
2827
internal/era/ @lightclient
29-
metrics/ @holiman
30-
miner/ @MariusVanDerWijden @holiman @fjl @rjl493456442
28+
miner/ @MariusVanDerWijden @fjl @rjl493456442
3129
node/ @fjl
3230
p2p/ @fjl @zsfelfoldi
3331
rlp/ @fjl
34-
params/ @fjl @holiman @karalabe @gballet @rjl493456442 @zsfelfoldi
35-
rpc/ @fjl @holiman
36-
signer/ @holiman
32+
params/ @fjl @karalabe @gballet @rjl493456442 @zsfelfoldi
33+
rpc/ @fjl

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
---
22
name: Report a bug
3-
about: Something with go-ethereum is not working as expected
3+
about: Something with BSC geth client is not working as expected
44
title: ''
55
labels: 'type:bug'
66
assignees: ''
77
---
88

99
#### System information
10-
1110
Geth version: `geth version`
1211
OS & Version: Windows/Linux/OSX
1312
Commit hash : (if `develop`)
13+
Arguments:
1414

15-
#### Expected behaviour
16-
17-
18-
#### Actual behaviour
19-
15+
#### Description
16+
- Steps to reproduce the behaviour
17+
...
2018

21-
#### Steps to reproduce the behaviour
19+
- Expected behaviour
20+
...
2221

22+
- Actual behaviour
23+
...
2324

2425
#### Backtrace
2526

.github/ISSUE_TEMPLATE/question.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ labels: 'type:docs'
66
assignees: ''
77
---
88

9-
This should only be used in very rare cases e.g. if you are not 100% sure if something is a bug or asking a question that leads to improving the documentation. For general questions please use [discord](https://discord.gg/nthXNEv) or the Ethereum stack exchange at https://ethereum.stackexchange.com.
9+
This should only be used in very rare cases e.g. if you are not 100% sure if something is a bug or asking a question that leads to improving the documentation.
10+
For general questions please use [discord](https://discord.com/invite/bnbchain).

.github/workflows/build-test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ jobs:
4545
4646
- name: Test Build
4747
run: |
48-
go run build/ci.go check_tidy
4948
go run build/ci.go check_generate
5049
go run build/ci.go check_baddeps
5150
go mod download && make geth

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,16 @@ cmd/bootnode/bootnode
4848
graphql/__debug_bin
4949

5050
tests/spec-tests/
51+
52+
# binaries
53+
cmd/abidump/abidump
54+
cmd/abigen/abigen
55+
cmd/blsync/blsync
56+
cmd/clef/clef
57+
cmd/devp2p/devp2p
58+
cmd/era/era
59+
cmd/ethkey/ethkey
60+
cmd/evm/evm
61+
cmd/geth/geth
62+
cmd/rlpdump/rlpdump
63+
cmd/workload/workload

.golangci.yml

Lines changed: 80 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,29 @@
11
# This file configures github.com/golangci/golangci-lint.
2-
2+
version: '2'
33
run:
4-
timeout: 20m
54
tests: true
65

76
output:
87
format: colored-line-number
98

109
linters:
11-
disable-all: true
10+
default: none
1211
enable:
13-
- goimports
14-
- gosimple
12+
- bidichk
13+
- copyloopvar
14+
- durationcheck
15+
- gocheckcompilerdirectives
1516
- govet
1617
- ineffassign
18+
- mirror
1719
- misspell
20+
- reassign
21+
- revive # only certain checks enabled
22+
- staticcheck
1823
- unconvert
19-
- typecheck
2024
- unused
21-
- staticcheck
22-
- bidichk
23-
- durationcheck
24-
- copyloopvar
25+
# - usetesting
2526
- whitespace
26-
- revive # only certain checks enabled
27-
- durationcheck
28-
- gocheckcompilerdirectives
29-
- reassign
30-
- mirror
31-
- tenv
3227
### linters we tried and will not be using:
3328
###
3429
# - structcheck # lots of false positives
@@ -39,46 +34,73 @@ linters:
3934
# - exhaustive # silly check
4035
# - makezero # false positives
4136
# - nilerr # several intentional
42-
43-
linters-settings:
44-
gofmt:
45-
simplify: true
46-
revive:
47-
enable-all-rules: false
48-
# here we enable specific useful rules
49-
# see https://golangci-lint.run/usage/linters/#revive for supported rules
37+
settings:
38+
staticcheck:
39+
checks:
40+
# disable Quickfixes
41+
- -QF1*
42+
revive:
43+
enable-all-rules: false
44+
# here we enable specific useful rules
45+
# see https://golangci-lint.run/usage/linters/#revive for supported rules
46+
rules:
47+
- name: receiver-naming
48+
severity: warning
49+
disabled: false
50+
exclude:
51+
- ''
52+
exclusions:
53+
generated: lax
54+
presets:
55+
- comments
56+
- common-false-positives
57+
- legacy
58+
- std-error-handling
5059
rules:
51-
- name: receiver-naming
52-
severity: warning
53-
disabled: false
54-
exclude: [""]
55-
56-
issues:
57-
# default is true. Enables skipping of directories:
58-
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
59-
exclude-dirs-use-default: true
60-
exclude-files:
61-
- core/genesis_alloc.go
62-
exclude-rules:
63-
- path: core/state/metrics.go
64-
linters:
65-
- unused
66-
- path: core/txpool/legacypool/list.go
67-
linters:
68-
- staticcheck
69-
- path: crypto/bn256/
70-
linters:
71-
- revive
72-
- path: cmd/utils/flags.go
73-
text: "SA1019: cfg.TxLookupLimit is deprecated: use 'TransactionHistory' instead."
74-
- path: cmd/utils/flags.go
75-
text: "SA1019: ethconfig.Defaults.TxLookupLimit is deprecated: use 'TransactionHistory' instead."
76-
- path: internal/build/pgp.go
77-
text: 'SA1019: "golang.org/x/crypto/openpgp" is deprecated: this package is unmaintained except for security fixes.'
78-
- path: core/vm/contracts.go
79-
text: 'SA1019: "golang.org/x/crypto/ripemd160" is deprecated: RIPEMD-160 is a legacy hash and should not be used for new applications.'
80-
exclude:
81-
- 'SA1019: event.TypeMux is deprecated: use Feed'
82-
- 'SA1019: strings.Title is deprecated'
83-
- 'SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead.'
84-
- 'SA1029: should not use built-in type string as key for value'
60+
- linters:
61+
- deadcode
62+
- staticcheck
63+
path: crypto/bn256/cloudflare/optate.go
64+
- linters:
65+
- staticcheck
66+
path: core/txpool/legacypool/list.go
67+
- linters:
68+
- unused
69+
path: core/state/metrics.go
70+
- linters:
71+
- revive
72+
path: crypto/bn256/
73+
- path: cmd/utils/flags.go
74+
text: "SA1019: cfg.TxLookupLimit is deprecated: use 'TransactionHistory' instead."
75+
- path: cmd/utils/flags.go
76+
text: "SA1019: ethconfig.Defaults.TxLookupLimit is deprecated: use 'TransactionHistory' instead."
77+
- path: internal/build/pgp.go
78+
text: 'SA1019: "golang.org/x/crypto/openpgp" is deprecated: this package is unmaintained except for security fixes.'
79+
- path: core/vm/contracts.go
80+
text: 'SA1019: "golang.org/x/crypto/ripemd160" is deprecated: RIPEMD-160 is a legacy hash and should not be used for new applications.'
81+
- path: (.+)\.go$
82+
text: 'SA1019: event.TypeMux is deprecated: use Feed'
83+
- path: (.+)\.go$
84+
text: 'SA1019: strings.Title is deprecated'
85+
- path: (.+)\.go$
86+
text: 'SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead.'
87+
- path: (.+)\.go$
88+
text: 'SA1029: should not use built-in type string as key for value'
89+
paths:
90+
- core/genesis_alloc.go
91+
- third_party$
92+
- builtin$
93+
- examples$
94+
formatters:
95+
enable:
96+
- goimports
97+
settings:
98+
gofmt:
99+
simplify: true
100+
exclusions:
101+
generated: lax
102+
paths:
103+
- core/genesis_alloc.go
104+
- third_party$
105+
- builtin$
106+
- examples$

.mailmap

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ Boqin Qin <bobbqqin@bupt.edu.cn> <Bobbqqin@gmail.com>
5050

5151
Casey Detrio <cdetrio@gmail.com>
5252

53+
Charlotte <tqpcharlie@proton.me>
54+
Charlotte <tqpcharlie@proton.me> <Zachinquarantine@protonmail.com>
55+
Charlotte <tqpcharlie@proton.me> <zachinquarantine@yahoo.com>
56+
5357
Cheng Li <lob4tt@gmail.com>
5458

5559
Chris Ziogas <ziogaschr@gmail.com>
@@ -301,9 +305,6 @@ Yohann Léon <sybiload@gmail.com>
301305
yzb <335357057@qq.com>
302306
yzb <335357057@qq.com> <flyingyzb@gmail.com>
303307

304-
Zachinquarantine <Zachinquarantine@protonmail.com>
305-
Zachinquarantine <Zachinquarantine@protonmail.com> <zachinquarantine@yahoo.com>
306-
307308
Ziyuan Zhong <zzy.albert@163.com>
308309

309310
Zsolt Felföldi <zsfelfoldi@gmail.com>

.nancy-ignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
CVE-2024-34478 # "CWE-754: Improper Check for Unusual or Exceptional Conditions." This vulnerability is BTC only, BSC does not have the issue.
2-
CVE-2021-43668 # "CWE-476: NULL Pointer Dereference", the repo: syndtr/goleveldb is not actively maintained, seems there is no fix for this crash yet, BSC used pebbleDB to replaced levelDB, so ignore this vulnerability.
2+
CVE-2021-43668 # "CWE-476: NULL Pointer Dereference", the repo: syndtr/goleveldb is not actively maintained, seems there is no fix for this crash yet, BSC used pebbleDB to replaced levelDB, so ignore this vulnerability.
3+
CVE-2025-47908 # "CWE-400: Uncontrolled Resource Consumption ('Resource Exhaustion')", This vulnerability is only for RPC nodes which have specifically enabled malicous Cors options, which is unlikely to happen.

AUTHORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ Ceyhun Onur <ceyhun.onur@avalabs.org>
123123
chabashilah <doumodoumo@gmail.com>
124124
changhong <changhong.yu@shanbay.com>
125125
Charles Cooper <cooper.charles.m@gmail.com>
126+
Charlotte <tqpcharlie@proton.me>
126127
Chase Wright <mysticryuujin@gmail.com>
127128
Chawin Aiemvaravutigul <nick41746@hotmail.com>
128129
Chen Quan <terasum@163.com>
@@ -839,7 +840,6 @@ ywzqwwt <39263032+ywzqwwt@users.noreply.github.com>
839840
yzb <335357057@qq.com>
840841
zaccoding <zaccoding725@gmail.com>
841842
Zach <zach.ramsay@gmail.com>
842-
Zachinquarantine <Zachinquarantine@protonmail.com>
843843
zah <zahary@gmail.com>
844844
Zahoor Mohamed <zahoor@zahoor.in>
845845
Zak Cole <zak@beattiecole.com>

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,36 @@
11
# Changelog
2+
## v1.6.0
3+
v1.6.0-alpha is a preview release for upstream code sync, it catches up with [go-ethereum release [v1.16.1]](https://github.com/ethereum/go-ethereum/releases/tag/v1.16.1) and also inlcude several bug fix.
4+
5+
#### Code Sync
6+
- [upstream: merge geth-v1.16.1](https://github.com/bnb-chain/bsc/pull/3261)
7+
8+
Key changes from the code sync include:
9+
- Archive Mode: Added history indexing and RPC querying interface
10+
- Enhanced Log Filtering: Introduced Filtermap as a faster replacement for bloombit-based log queries
11+
- Log Timestamps: Added timestamp metadata to derived event logs
12+
- Performance Optimizations: Multiple improvements to enhance overall performance
13+
- Code Refactoring: Major cleanup and improvements to components including:
14+
- PBSS snapshot system
15+
- Blockchain configuration
16+
- EVM internals
17+
- Removal of EOF (Ethereum Object Format) code
18+
19+
#### BUGFIX
20+
- [core/filtermaps: stop indexing if target block is pruned](https://github.com/bnb-chain/bsc/pull/3316)
21+
- [freezer: slow down freeze when live sync](https://github.com/bnb-chain/bsc/pull/3310)
22+
- [worker: fix a trie prefetch corner case](https://github.com/bnb-chain/bsc/pull/3314)
23+
- [consensus/parlia: ignore client version warning when in history sync](https://github.com/bnb-chain/bsc/pull/3308)
24+
- [fix: only enable EVN feature after node get synced](https://github.com/bnb-chain/bsc/pull/3309)
25+
- [core/fitermaps: fix final block logic](https://github.com/bnb-chain/bsc/pull/3300)
26+
- [fix: set all chain tables to be prunable](https://github.com/bnb-chain/bsc/pull/3294)
27+
- [api.go: add retry for snapshots stale error](https://github.com/bnb-chain/bsc/pull/3290)
28+
- [core/types: disable EIP-7594 in BSC](https://github.com/bnb-chain/bsc/pull/3291)
29+
30+
#### Others
31+
- [docs: update readme for release types](https://github.com/bnb-chain/bsc/pull/3315)
32+
- [prefetch: lower prefetch threshold from 100 to 50](https://github.com/bnb-chain/bsc/pull/3274)
33+
234
## v1.5.19
335
### BUGFIX
436
[\#3251](https://github.com/bnb-chain/bsc/pull/3251) freezer: change freeze batch size

0 commit comments

Comments
 (0)