OSDN Git Service

use https://github.com/Bytom/vapor/pull/181#pullrequestreview-250219072 3
authorHAOYUatHZ <haoyu@protonmail.com>
Mon, 17 Jun 2019 09:00:01 +0000 (17:00 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Mon, 17 Jun 2019 09:00:01 +0000 (17:00 +0800)
federation/warder.go

index ba75e4f..ba40a77 100644 (file)
@@ -271,9 +271,8 @@ func (w *warder) isTxSignsReachQuorum(destTx interface{}) bool {
        return false
 }
 
-// TODO:
 func (w *warder) isLeader() bool {
-       return false
+       return w.position == 1
 }
 
 func (w *warder) submitTx(destTx interface{}) (string, error) {