• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revision38428c09e48c1c6080d8e1671a78bd3c118529cc (tree)
Time2019-07-18 15:56:44
AuthorYahtoo Ma <yahtoo.ma@gmai...>
CommiterYahtoo Ma

Log Message

Opz name of the variable

Change Summary

Incremental Difference

--- a/protocol/protocol.go
+++ b/protocol/protocol.go
@@ -201,7 +201,7 @@ func (c *Chain) setState(blockHeader, irrBlockHeader *types.BlockHeader, mainBlo
201201 func (c *Chain) BlockWaiter(height uint64) <-chan struct{} {
202202 ch := make(chan struct{}, 1)
203203 go func() {
204- for bestHeigh := c.BestBlockHeight(); bestHeigh < height; bestHeigh = c.BestBlockHeight() {
204+ for bestHeight := c.BestBlockHeight(); bestHeight < height; bestHeight = c.BestBlockHeight() {
205205 c.cond.Wait()
206206 }
207207 ch <- struct{}{}
Show on old repository browser