Compare commits

..

8 Commits

Author SHA1 Message Date
zjubfd
60035da613 Merge pull request #192 from binance-chain/release_1.0.7-hf.1
[R4r]prepare for release v1.0.7-hf.1
2021-05-07 18:31:53 +08:00
fudongbai
552207ed9a prepare for release v1.0.7-hf.1 2021-05-07 18:00:29 +08:00
zjubfd
8362792981 Merge pull request #191 from binance-chain/stuck_issue
[R4R]fix the reorg routine stuck issue
2021-05-07 11:32:00 +08:00
fudongbai
f7d69f2ac1 fix the reorg routine stuck issue 2021-05-07 11:04:31 +08:00
zjubfd
68bde410b7 Merge pull request #190 from binance-chain/disk_increase_fix
[R4R]fix disk increase dramaticly issue
2021-05-07 10:57:23 +08:00
fudongbai
744dfd61ad fix disk increase dramaticly issue 2021-05-07 10:48:48 +08:00
zjubfd
46d185b4cf Merge pull request #130 from binance-chain/receiptsCacheLimit
[R4R]update receiptsCacheLimit to 10000
2021-04-03 20:51:52 +08:00
fudongbai
abdfec19bd update receiptsCacheLimit to 10000 2021-04-02 17:57:07 +08:00
4 changed files with 16 additions and 6 deletions

View File

@@ -1,4 +1,9 @@
# Changelog # Changelog
## v1.0.7-hf.1
BUGFIX
* [\#190](https://github.com/binance-chain/bsc/pull/190) fix disk increase dramaticly
* [\#191](https://github.com/binance-chain/bsc/pull/191) fix the reorg routine of tx pool stuck issue
## v1.0.7 ## v1.0.7
* [\#120](https://github.com/binance-chain/bsc/pull/120) add health check endpoint * [\#120](https://github.com/binance-chain/bsc/pull/120) add health check endpoint
* [\#116](https://github.com/binance-chain/bsc/pull/116) validator only write database state when enough distance * [\#116](https://github.com/binance-chain/bsc/pull/116) validator only write database state when enough distance

View File

@@ -82,7 +82,7 @@ var (
const ( const (
bodyCacheLimit = 256 bodyCacheLimit = 256
blockCacheLimit = 256 blockCacheLimit = 256
receiptsCacheLimit = 32 receiptsCacheLimit = 10000
txLookupCacheLimit = 1024 txLookupCacheLimit = 1024
maxFutureBlocks = 256 maxFutureBlocks = 256
maxTimeFutureBlocks = 30 maxTimeFutureBlocks = 30
@@ -322,6 +322,10 @@ func (bc *BlockChain) GetVMConfig() *vm.Config {
return &bc.vmConfig return &bc.vmConfig
} }
func (bc *BlockChain) CacheReceipts(hash common.Hash, receipts types.Receipts) {
bc.receiptsCache.Add(hash, receipts)
}
// empty returns an indicator whether the blockchain is empty. // empty returns an indicator whether the blockchain is empty.
// Note, it's a special case that we connect a non-empty ancient // Note, it's a special case that we connect a non-empty ancient
// database with an empty node, so that we can plugin the ancient // database with an empty node, so that we can plugin the ancient
@@ -1725,6 +1729,7 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals bool) (int, er
atomic.StoreUint32(&followupInterrupt, 1) atomic.StoreUint32(&followupInterrupt, 1)
return it.index, err return it.index, err
} }
bc.CacheReceipts(block.Hash(), receipts)
// Update the metrics touched during block processing // Update the metrics touched during block processing
accountReadTimer.Update(statedb.AccountReads) // Account reads are complete, we can mark them accountReadTimer.Update(statedb.AccountReads) // Account reads are complete, we can mark them
storageReadTimer.Update(statedb.StorageReads) // Storage reads are complete, we can mark them storageReadTimer.Update(statedb.StorageReads) // Storage reads are complete, we can mark them

View File

@@ -204,7 +204,7 @@ func (p *peer) broadcastTransactions() {
done = nil done = nil
case <-fail: case <-fail:
return p.Log().Trace("BroadcastTransactions failed")
case <-p.term: case <-p.term:
return return

View File

@@ -21,10 +21,10 @@ import (
) )
const ( const (
VersionMajor = 1 // Major version component of the current release VersionMajor = 1 // Major version component of the current release
VersionMinor = 0 // Minor version component of the current release VersionMinor = 0 // Minor version component of the current release
VersionPatch = 7 // Patch version component of the current release VersionPatch = 7 // Patch version component of the current release
VersionMeta = "" // Version metadata to append to the version string VersionMeta = "hf.1" // Version metadata to append to the version string
) )
// Version holds the textual version string. // Version holds the textual version string.