github.com/turingchain2020/turingchain@v1.1.21/system/mempool/const.go (about)

     1  // Copyright Turing Corp. 2018 All Rights Reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package mempool
     6  
     7  import (
     8  	"runtime"
     9  	//log "github.com/turingchain2020/turingchain/common/log/log15"
    10  )
    11  
    12  var (
    13  	poolCacheSize          int64 = 10240 // mempool容量
    14  	mempoolExpiredInterval int64 = 600   // mempool内交易过期时间,10分钟
    15  	maxTxNumPerAccount     int64 = 100   // TODO 每个账户在mempool中最大交易数量,10
    16  	maxTxLast              int64 = 10
    17  	processNum             int
    18  )
    19  
    20  // TODO
    21  func init() {
    22  	processNum = runtime.NumCPU()
    23  }