mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
tiny make up
This commit is contained in:
parent
5475ef4faa
commit
bd5fcbdcde
4 changed files with 6 additions and 6 deletions
|
|
@ -485,7 +485,7 @@ func (c *Posv) YourTurn(chain consensus.ChainReader, parent *types.Header, signe
|
|||
return 0, -1, -1, false, err
|
||||
}
|
||||
if len(masternodes) == 0 {
|
||||
return 0, -1, -1, false, errors.New("Not found master nodes")
|
||||
return 0, -1, -1, false, errors.New("Masternodes not found")
|
||||
}
|
||||
pre := common.Address{}
|
||||
// masternode[0] has chance to create block 1
|
||||
|
|
|
|||
|
|
@ -127,9 +127,9 @@ type BlockChain struct {
|
|||
bodyRLPCache *lru.Cache // Cache for the most recent block bodies in RLP encoded format
|
||||
blockCache *lru.Cache // Cache for the most recent entire blocks
|
||||
futureBlocks *lru.Cache // future blocks are blocks added for later processing
|
||||
resultProcess *lru.Cache
|
||||
calculatingBlock *lru.Cache
|
||||
downloadingBlock *lru.Cache
|
||||
resultProcess *lru.Cache // Cache for processed blocks
|
||||
calculatingBlock *lru.Cache // Cache for processing blocks
|
||||
downloadingBlock *lru.Cache // Cache for downloading blocks (avoid duplication from fetcher)
|
||||
quit chan struct{} // blockchain quit channel
|
||||
running int32 // running must be called atomically
|
||||
// procInterrupt must be atomically called
|
||||
|
|
|
|||
|
|
@ -37,5 +37,5 @@ var (
|
|||
|
||||
ErrNotFoundM1 = errors.New("list M1 not found ")
|
||||
|
||||
ErrStopPreparingBlock = errors.New("stop calculate a block not vrified M2")
|
||||
ErrStopPreparingBlock = errors.New("stop calculating a block not verified by M2")
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue