aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-11-05 18:37:46 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:18 +0800
commit5db9884093fe8187fbf52bbdd96d4e166ab24a85 (patch)
treea07947fe5d001f1ae68b9ebb79cbeed35c4e0044
parente16a22e896cc10c42c8353d6adba45652d3c13d9 (diff)
downloadgo-tangerine-5db9884093fe8187fbf52bbdd96d4e166ab24a85.tar.gz
go-tangerine-5db9884093fe8187fbf52bbdd96d4e166ab24a85.tar.zst
go-tangerine-5db9884093fe8187fbf52bbdd96d4e166ab24a85.zip
vendor: sync to latest core
-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=",