tiny make up

This commit is contained in:
Tuna 2018-12-10 17:14:49 +07:00
parent 5475ef4faa
commit bd5fcbdcde
4 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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

View file

@ -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")
)