Compare commits
9 Commits
v1.1.0-bet
...
v1.1.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7822e9e2a1 | ||
|
|
7c2cca285b | ||
|
|
6ce2cef425 | ||
|
|
1bde62fe87 | ||
|
|
3a87f6256a | ||
|
|
72dfda0e88 | ||
|
|
b67a129e5b | ||
|
|
571a317092 | ||
|
|
1f3e0606ee |
@@ -1,6 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
## v1.1.0
|
||||
*[\#282](https://github.com/binance-chain/bsc/pull/282) update discord link
|
||||
*[\#280](https://github.com/binance-chain/bsc/pull/280) update discord link
|
||||
*[\#227](https://github.com/binance-chain/bsc/pull/227) use more aggressive write cache policy
|
||||
|
||||
## v1.1.0-beta
|
||||
*[\#152](https://github.com/binance-chain/bsc/pull/152) upgrade to go-ethereum 1.10.3
|
||||
|
||||
## v1.0.7-hf.2
|
||||
|
||||
@@ -7,7 +7,7 @@ Binance Smart Chain starts its development based on go-ethereum fork. So you may
|
||||
[](https://pkg.go.dev/github.com/ethereum/go-ethereum?tab=doc)
|
||||
[](https://discord.gg/T3Ka4V4N)
|
||||
[](https://discord.gg/5Z3C3SdxDw)
|
||||
|
||||
But from that baseline of EVM compatible, Binance Smart Chain introduces a system of 21 validators with Proof of Staked Authority (PoSA) consensus that can support short block time and lower fees. The most bonded validator candidates of staking will become validators and produce blocks. The double-sign detection and other slashing logic guarantee security, stability, and chain finality.
|
||||
|
||||
@@ -203,7 +203,7 @@ from anyone on the internet, and are grateful for even the smallest of fixes!
|
||||
|
||||
If you'd like to contribute to bsc, please fork, fix, commit and send a pull request
|
||||
for the maintainers to review and merge into the main code base. If you wish to submit
|
||||
more complex changes though, please check up with the core devs first on [our discord channel](https://discord.com/invite/T3Ka4V4N)
|
||||
more complex changes though, please check up with the core devs first on [our discord channel](https://discord.gg/5Z3C3SdxDw)
|
||||
to ensure those changes are in line with the general philosophy of the project and/or get
|
||||
some early feedback which can make both your efforts much lighter as well as our review
|
||||
and merge procedures quick and simple.
|
||||
|
||||
@@ -868,7 +868,7 @@ func (p *Parlia) EnoughDistance(chain consensus.ChainReader, header *types.Heade
|
||||
if err != nil {
|
||||
return true
|
||||
}
|
||||
return snap.enoughDistance(p.val)
|
||||
return snap.enoughDistance(p.val, header)
|
||||
}
|
||||
|
||||
// CalcDifficulty is the difficulty adjustment algorithm. It returns the difficulty
|
||||
|
||||
@@ -244,17 +244,23 @@ func (s *Snapshot) inturn(validator common.Address) bool {
|
||||
return validators[offset] == validator
|
||||
}
|
||||
|
||||
func (s *Snapshot) enoughDistance(validator common.Address) bool {
|
||||
func (s *Snapshot) enoughDistance(validator common.Address, header *types.Header) bool {
|
||||
idx := s.indexOfVal(validator)
|
||||
if idx < 0 {
|
||||
return true
|
||||
}
|
||||
validatorNum := int64(len(s.validators()))
|
||||
if validatorNum == 1 {
|
||||
return true
|
||||
}
|
||||
if validator == header.Coinbase {
|
||||
return false
|
||||
}
|
||||
offset := (int64(s.Number) + 1) % int64(validatorNum)
|
||||
if int64(idx) >= offset {
|
||||
return int64(idx)-offset >= validatorNum/2
|
||||
return int64(idx)-offset >= validatorNum-2
|
||||
} else {
|
||||
return validatorNum+int64(idx)-offset >= validatorNum/2
|
||||
return validatorNum+int64(idx)-offset >= validatorNum-2
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -574,6 +574,9 @@ func (s *Ethereum) Stop() error {
|
||||
close(s.closeBloomHandler)
|
||||
s.txPool.Stop()
|
||||
s.miner.Stop()
|
||||
s.miner.Close()
|
||||
// TODO this is a hotfix for https://github.com/ethereum/go-ethereum/issues/22892, need a better solution
|
||||
time.Sleep(5 * time.Second)
|
||||
s.blockchain.Stop()
|
||||
s.engine.Close()
|
||||
rawdb.PopUncleanShutdownMarker(s.chainDb)
|
||||
|
||||
@@ -24,7 +24,7 @@ const (
|
||||
VersionMajor = 1 // Major version component of the current release
|
||||
VersionMinor = 1 // Minor version component of the current release
|
||||
VersionPatch = 0 // Patch version component of the current release
|
||||
VersionMeta = "beta" // Version metadata to append to the version string
|
||||
VersionMeta = "" // Version metadata to append to the version string
|
||||
)
|
||||
|
||||
// Version holds the textual version string.
|
||||
|
||||
Reference in New Issue
Block a user