Skip to content

Commit 2df94c3

Browse files
authored
Merge pull request #2767 from bnb-chain/develop
Draft release v1.4.16
2 parents ec318b9 + 4f75fef commit 2df94c3

File tree

111 files changed

+2282
-1189
lines changed

Some content is hidden

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

111 files changed

+2282
-1189
lines changed

.nancy-ignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
CVE-2024-34478 # "CWE-754: Improper Check for Unusual or Exceptional Conditions." This vulnerability is BTC only, BSC does not have the issue.
22
CVE-2024-6104 # "CWE-532: Information Exposure Through Log Files" This is caused by the vulnerabilities [email protected], it is only used in cmd devp2p, impact is limited. will upgrade to v0.7.7 later
3-
CVE-2024-8421 # "CWE-400: Uncontrolled Resource Consumption (Resource Exhaustion)" This vulnerability is caused by issues in the golang.org/x/net package. Even the latest version(v0.29.0) has not yet addressed it, but we will continue to monitor updates closely.
3+
CVE-2024-8421 # "CWE-400: Uncontrolled Resource Consumption (Resource Exhaustion)" This vulnerability is caused by issues in the golang.org/x/net package. Even the latest version(v0.29.0) has not yet addressed it, but we will continue to monitor updates closely.
4+
CVE-2024-51744 # "CWE-347: Improper Verification of Cryptographic Signature" & "CWE-755: Improper Handling of Exceptional Conditions" This vulnerability is caused mishandling of JWT error code, BSC does not have the issue as it does not check the detail error code.

CHANGELOG.md

+28
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,32 @@
11
# Changelog
2+
3+
## v1.4.16
4+
### BUGFIX
5+
* [\#2736](https://github.com/bnb-chain/bsc/pull/2736) ethclient: move TransactionOpts to avoid import internal package;
6+
* [\#2755](https://github.com/bnb-chain/bsc/pull/2755) fix: fix multi-db env
7+
* [\#2759](https://github.com/bnb-chain/bsc/pull/2759) fix: add blobSidecars in db inspect
8+
* [\#2764](https://github.com/bnb-chain/bsc/pull/2764) fix: add blobSidecars in db inspect
9+
10+
### FEATURE
11+
* [\#2692](https://github.com/bnb-chain/bsc/pull/2692) feat: add pascal hardfork
12+
* [\#2718](https://github.com/bnb-chain/bsc/pull/2718) feat: add Prague hardfork
13+
* [\#2734](https://github.com/bnb-chain/bsc/pull/2734) feat: update system contract bytecodes of pascal hardfork
14+
* [\#2737](https://github.com/bnb-chain/bsc/pull/2737) feat: modify LOCK_PERIOD_FOR_TOKEN_RECOVER to 300 seconds on BSC Testnet in pascal hardfork
15+
* [\#2660](https://github.com/bnb-chain/bsc/pull/2660) core/txpool/legacypool: add overflowpool for txs
16+
* [\#2754](https://github.com/bnb-chain/bsc/pull/2754) core/txpool: improve Add() logic, handle edge case
17+
18+
### IMPROVEMENT
19+
* [\#2727](https://github.com/bnb-chain/bsc/pull/2727) core: clearup testflag for Bohr
20+
* [\#2716](https://github.com/bnb-chain/bsc/pull/2716) minor Update group_prover.sage
21+
* [\#2735](https://github.com/bnb-chain/bsc/pull/2735) concensus/parlia.go: make distribute incoming tx more independence
22+
* [\#2742](https://github.com/bnb-chain/bsc/pull/2742) feat: remove pipecommit
23+
* [\#2748](https://github.com/bnb-chain/bsc/pull/2748) jsutil: put all js utils in one file
24+
* [\#2749](https://github.com/bnb-chain/bsc/pull/2749) jsutils: add tool GetKeyParameters
25+
* [\#2756](https://github.com/bnb-chain/bsc/pull/2756) nancy: ignore github.com/golang-jwt/jwt/v4 4.5.0 in .nancy-ignore
26+
* [\#2757](https://github.com/bnb-chain/bsc/pull/2757) util: python script to get stats of reorg
27+
* [\#2758](https://github.com/bnb-chain/bsc/pull/2758) utils: print monikey for reorg script
28+
* [\#2714](https://github.com/bnb-chain/bsc/pull/2714) refactor: Directly swap two variables to optimize code
29+
230
## v1.4.15
331
### BUGFIX
432
* [\#2680](https://github.com/bnb-chain/bsc/pull/2680) txpool: apply miner's gasceil to txpool

accounts/abi/bind/backend.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"github.com/ethereum/go-ethereum"
2525
"github.com/ethereum/go-ethereum/common"
2626
"github.com/ethereum/go-ethereum/core/types"
27-
"github.com/ethereum/go-ethereum/internal/ethapi"
2827
)
2928

3029
var (
@@ -101,7 +100,7 @@ type ContractTransactor interface {
101100
PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
102101

103102
// SendTransactionConditional injects the conditional transaction into the pending pool for execution after verification.
104-
SendTransactionConditional(ctx context.Context, tx *types.Transaction, opts ethapi.TransactionOpts) error
103+
SendTransactionConditional(ctx context.Context, tx *types.Transaction, opts types.TransactionOpts) error
105104
}
106105

107106
// DeployBackend wraps the operations needed by WaitMined and WaitDeployed.

accounts/abi/bind/base_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131
"github.com/ethereum/go-ethereum/common/hexutil"
3232
"github.com/ethereum/go-ethereum/core/types"
3333
"github.com/ethereum/go-ethereum/crypto"
34-
"github.com/ethereum/go-ethereum/internal/ethapi"
3534
"github.com/ethereum/go-ethereum/rlp"
3635
"github.com/stretchr/testify/assert"
3736
)
@@ -76,7 +75,7 @@ func (mt *mockTransactor) SendTransaction(ctx context.Context, tx *types.Transac
7675
return nil
7776
}
7877

79-
func (mt *mockTransactor) SendTransactionConditional(ctx context.Context, tx *types.Transaction, opts ethapi.TransactionOpts) error {
78+
func (mt *mockTransactor) SendTransactionConditional(ctx context.Context, tx *types.Transaction, opts types.TransactionOpts) error {
8079
return nil
8180
}
8281

cmd/devp2p/internal/ethtest/chain.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,7 @@ func (a Addresses) Less(i, j int) bool {
272272
}
273273

274274
func (a Addresses) Swap(i, j int) {
275-
tmp := a[i]
276-
a[i] = a[j]
277-
a[j] = tmp
275+
a[i], a[j] = a[j], a[i]
278276
}
279277

280278
func blocksFromFile(chainfile string, gblock *types.Block) ([]*types.Block, error) {

cmd/geth/chaincmd.go

+9-4
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ var (
6363
Flags: flags.Merge([]cli.Flag{
6464
utils.CachePreimagesFlag,
6565
utils.OverridePassedForkTime,
66-
utils.OverrideBohr,
66+
utils.OverridePascal,
67+
utils.OverridePrague,
6768
utils.OverrideVerkle,
6869
utils.MultiDataBaseFlag,
6970
}, utils.DatabaseFlags),
@@ -258,9 +259,13 @@ func initGenesis(ctx *cli.Context) error {
258259
v := ctx.Uint64(utils.OverridePassedForkTime.Name)
259260
overrides.OverridePassedForkTime = &v
260261
}
261-
if ctx.IsSet(utils.OverrideBohr.Name) {
262-
v := ctx.Uint64(utils.OverrideBohr.Name)
263-
overrides.OverrideBohr = &v
262+
if ctx.IsSet(utils.OverridePascal.Name) {
263+
v := ctx.Uint64(utils.OverridePascal.Name)
264+
overrides.OverridePascal = &v
265+
}
266+
if ctx.IsSet(utils.OverridePrague.Name) {
267+
v := ctx.Uint64(utils.OverridePrague.Name)
268+
overrides.OverridePrague = &v
264269
}
265270
if ctx.IsSet(utils.OverrideVerkle.Name) {
266271
v := ctx.Uint64(utils.OverrideVerkle.Name)

cmd/geth/config.go

+7-3
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,13 @@ func makeFullNode(ctx *cli.Context) (*node.Node, ethapi.Backend) {
191191
v := ctx.Uint64(utils.OverridePassedForkTime.Name)
192192
cfg.Eth.OverridePassedForkTime = &v
193193
}
194-
if ctx.IsSet(utils.OverrideBohr.Name) {
195-
v := ctx.Uint64(utils.OverrideBohr.Name)
196-
cfg.Eth.OverrideBohr = &v
194+
if ctx.IsSet(utils.OverridePascal.Name) {
195+
v := ctx.Uint64(utils.OverridePascal.Name)
196+
cfg.Eth.OverridePascal = &v
197+
}
198+
if ctx.IsSet(utils.OverridePrague.Name) {
199+
v := ctx.Uint64(utils.OverridePrague.Name)
200+
cfg.Eth.OverridePrague = &v
197201
}
198202
if ctx.IsSet(utils.OverrideVerkle.Name) {
199203
v := ctx.Uint64(utils.OverrideVerkle.Name)

cmd/geth/main.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ var (
6767
utils.DirectBroadcastFlag,
6868
utils.DisableSnapProtocolFlag,
6969
utils.EnableTrustProtocolFlag,
70-
utils.PipeCommitFlag,
7170
utils.RangeLimitFlag,
7271
utils.USBFlag,
7372
utils.SmartCardDaemonPathFlag,
7473
utils.RialtoHash,
7574
utils.OverridePassedForkTime,
76-
utils.OverrideBohr,
75+
utils.OverridePascal,
76+
utils.OverridePrague,
7777
utils.OverrideVerkle,
7878
utils.OverrideFullImmutabilityThreshold,
7979
utils.OverrideMinBlocksForBlobRequests,
@@ -91,6 +91,7 @@ var (
9191
utils.TxPoolGlobalSlotsFlag,
9292
utils.TxPoolAccountQueueFlag,
9393
utils.TxPoolGlobalQueueFlag,
94+
utils.TxPoolOverflowPoolSlotsFlag,
9495
utils.TxPoolLifetimeFlag,
9596
utils.TxPoolReannounceTimeFlag,
9697
utils.BlobPoolDataDirFlag,

cmd/jsutils/README.md

+3-32
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,9 @@ Install node.js dependency:
1010
```shell script
1111
npm install
1212
```
13-
## Run
14-
### 1.Get Validator's Information: Version, MinGasPrice
15-
mainnet validators version
16-
```bash
17-
npm run startMainnet
18-
```
19-
testnet validators version
20-
```bash
21-
npm run startTestnet
22-
```
23-
24-
### 2.Get Transaction Count
25-
```bash
26-
node gettxcount.js --rpc ${url} --startNum ${start} --endNum ${end} --miner ${miner} (optional)
27-
```
2813

29-
### 3. Get Performance
30-
```bash
31-
node get_perf.js --rpc ${url} --startNum ${start} --endNum ${end}
32-
```
33-
output as following
34-
```bash
35-
Get the performance between [ 19470 , 19670 )
36-
txCountPerBlock = 3142.81 txCountTotal = 628562 BlockCount = 200 avgBlockTime = 3.005 inturnBlocksRatio = 0.975 justifiedBlocksRatio = 0.98
37-
txCountPerSecond = 1045.8602329450914 avgGasUsedPerBlock = 250.02062627 avgGasUsedPerSecond = 83.20153952412646
14+
## Run
15+
Run according to the usage:
3816
```
39-
40-
### 4. Get validators slash count
41-
```bash
42-
use the latest block
43-
node getslashcount.js --Rpc ${ArchiveRpc}
44-
use a block number
45-
node getslashcount.js --Rpc ${ArchiveRpc} --Num ${blockNum}
17+
node getchainstatus.js --help
4618
```
47-

cmd/jsutils/check_blobtx.js

-51
This file was deleted.

cmd/jsutils/faucet_request.js

-49
This file was deleted.

cmd/jsutils/get_perf.js

-70
This file was deleted.

0 commit comments

Comments
 (0)