aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vendor/github.com/dexon-foundation/dexon-consensus/core/consensus.go9
-rw-r--r--vendor/vendor.json34
2 files changed, 26 insertions, 17 deletions
diff --git a/vendor/github.com/dexon-foundation/dexon-consensus/core/consensus.go b/vendor/github.com/dexon-foundation/dexon-consensus/core/consensus.go
index 2eed101c7..56c757b0d 100644
--- a/vendor/github.com/dexon-foundation/dexon-consensus/core/consensus.go
+++ b/vendor/github.com/dexon-foundation/dexon-consensus/core/consensus.go
@@ -159,6 +159,15 @@ func (recv *consensusBAReceiver) ConfirmBlock(
recv.consensus.logger.Error("Failed to process block", "error", err)
return
}
+ // Clean the restartNotary channel so BA will not stuck by deadlock.
+CleanChannelLoop:
+ for {
+ select {
+ case <-recv.restartNotary:
+ default:
+ break CleanChannelLoop
+ }
+ }
if block.Timestamp.After(recv.changeNotaryTime) {
recv.round++
recv.restartNotary <- true
diff --git a/vendor/vendor.json b/vendor/vendor.json
index 4c9a951be..9f8d288d1 100644
--- a/vendor/vendor.json
+++ b/vendor/vendor.json
@@ -105,50 +105,50 @@
{
"checksumSHA1": "ev84RyegNbt2Pr/sK26LK9LoQNI=",
"path": "github.com/dexon-foundation/dexon-consensus/common",
- "revision": "c4541185c1d2502dffe09de1af52594f6fae16a6",
- "revisionTime": "2018-11-05T05:29:15Z"
+ "revision": "f3e03e18d815d92493d3a85ecb3a0048247ecf71",
+ "revisionTime": "2018-11-05T10:36:13Z"
},
{
- "checksumSHA1": "+zyT9PTNnQCnagwCssmx1mJeAqg=",
+ "checksumSHA1": "mpmQy/NAsKliUPVFaUEW9+vsTe8=",
"path": "github.com/dexon-foundation/dexon-consensus/core",
- "revision": "c4541185c1d2502dffe09de1af52594f6fae16a6",
- "revisionTime": "2018-11-05T05:29:15Z"
+ "revision": "f3e03e18d815d92493d3a85ecb3a0048247ecf71",
+ "revisionTime": "2018-11-05T10:36:13Z"
},
{
"checksumSHA1": "vNsaBvsrXJF+W6K5DCLpgy1rUZY=",
"path": "github.com/dexon-foundation/dexon-consensus/core/blockdb",
- "revision": "c4541185c1d2502dffe09de1af52594f6fae16a6",
- "revisionTime": "2018-11-05T05:29:15Z"
+ "revision": "f3e03e18d815d92493d3a85ecb3a0048247ecf71",
+ "revisionTime": "2018-11-05T10:36:13Z"
},
{
"checksumSHA1": "tQSbYCu5P00lUhKsx3IbBZCuSLY=",
"path": "github.com/dexon-foundation/dexon-consensus/core/crypto",
- "revision": "c4541185c1d2502dffe09de1af52594f6fae16a6",
- "revisionTime": "2018-11-05T05:29:15Z"
+ "revision": "f3e03e18d815d92493d3a85ecb3a0048247ecf71",
+ "revisionTime": "2018-11-05T10:36:13Z"
},
{
"checksumSHA1": "p2jOAulavUU2xyj018pYPHlj8XA=",
"path": "github.com/dexon-foundation/dexon-consensus/core/crypto/dkg",
- "revision": "c4541185c1d2502dffe09de1af52594f6fae16a6",
- "revisionTime": "2018-11-05T05:29:15Z"
+ "revision": "f3e03e18d815d92493d3a85ecb3a0048247ecf71",
+ "revisionTime": "2018-11-05T10:36:13Z"
},
{
"checksumSHA1": "6Pf6caC8LTNCI7IflFmglKYnxYo=",
"path": "github.com/dexon-foundation/dexon-consensus/core/crypto/ecdsa",
- "revision": "c4541185c1d2502dffe09de1af52594f6fae16a6",
- "revisionTime": "2018-11-05T05:29:15Z"
+ "revision": "f3e03e18d815d92493d3a85ecb3a0048247ecf71",
+ "revisionTime": "2018-11-05T10:36:13Z"
},
{
"checksumSHA1": "RlxtJw5enzIY+6PNEyl1q48qKFg=",
"path": "github.com/dexon-foundation/dexon-consensus/core/types",
- "revision": "c4541185c1d2502dffe09de1af52594f6fae16a6",
- "revisionTime": "2018-11-05T05:29:15Z"
+ "revision": "f3e03e18d815d92493d3a85ecb3a0048247ecf71",
+ "revisionTime": "2018-11-05T10:36:13Z"
},
{
"checksumSHA1": "ovChyW9OfDGnk/7CDAR+A5vJymc=",
"path": "github.com/dexon-foundation/dexon-consensus/core/types/dkg",
- "revision": "c4541185c1d2502dffe09de1af52594f6fae16a6",
- "revisionTime": "2018-11-05T05:29:15Z"
+ "revision": "f3e03e18d815d92493d3a85ecb3a0048247ecf71",
+ "revisionTime": "2018-11-05T10:36:13Z"
},
{
"checksumSHA1": "TAkwduKZqLyimyTPPWIllZWYFuE=",