OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d064330
)
use https://github.com/Bytom/vapor/pull/181#pullrequestreview-250219072 3
author
HAOYUatHZ
<haoyu@protonmail.com>
Mon, 17 Jun 2019 09:00:01 +0000
(17:00 +0800)
committer
HAOYUatHZ
<haoyu@protonmail.com>
Mon, 17 Jun 2019 09:00:01 +0000
(17:00 +0800)
federation/warder.go
patch
|
blob
|
history
diff --git
a/federation/warder.go
b/federation/warder.go
index
ba75e4f
..
ba40a77
100644
(file)
--- a/
federation/warder.go
+++ b/
federation/warder.go
@@
-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) {