Skip to content

Commit

Permalink
add buffer channel to unlock deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
liam.lai committed Dec 19, 2024
1 parent c136cef commit 42c632a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 121 deletions.
119 changes: 0 additions & 119 deletions liam/main.go

This file was deleted.

2 changes: 1 addition & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func (self *worker) update() {
NewRoundCh := self.engine.(*XDPoS.XDPoS).NewRoundCh

timeout := time.NewTimer(time.Duration(minePeriod) * time.Second)
c := make(chan struct{})
c := make(chan struct{}, 1)
finish := make(chan struct{})
defer close(finish)
defer timeout.Stop()
Expand Down
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
const (
VersionMajor = 2 // Major version component of the current release
VersionMinor = 4 // Minor version component of the current release
VersionPatch = 3 // Patch version component of the current release
VersionPatch = 4 // Patch version component of the current release
VersionMeta = "beta1" // Version metadata to append to the version string
)

Expand Down

0 comments on commit 42c632a

Please sign in to comment.