diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-03-20 11:55:01 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:58 +0800 |
commit | bbd2910687e9e5cd5c52e887f837f5c992ba2261 (patch) | |
tree | 5b76316f47ca4437fab3e0ae29dee4a112e2d805 /dex/recovery.go | |
parent | 614cca7f39b8d63a5da938e56509e6fa5fc467cf (diff) | |
download | dexon-bbd2910687e9e5cd5c52e887f837f5c992ba2261.tar dexon-bbd2910687e9e5cd5c52e887f837f5c992ba2261.tar.gz dexon-bbd2910687e9e5cd5c52e887f837f5c992ba2261.tar.bz2 dexon-bbd2910687e9e5cd5c52e887f837f5c992ba2261.tar.lz dexon-bbd2910687e9e5cd5c52e887f837f5c992ba2261.tar.xz dexon-bbd2910687e9e5cd5c52e887f837f5c992ba2261.tar.zst dexon-bbd2910687e9e5cd5c52e887f837f5c992ba2261.zip |
consensus: dexcon: disqualify dead node (#280)
Since a qualified node might fail stopped, we need to remove them from
qualified nodes to maintain network integrity. We do this by inspect the
previous round to see if there are dead nodes. A dead node is a notary
set node that does not propose any block in the previous round. We
disqualify them by fining them so their staked value is 1 wei below
minStake. This make them unqualified for being notary set in the follow
on rounds.
Diffstat (limited to 'dex/recovery.go')
-rw-r--r-- | dex/recovery.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dex/recovery.go b/dex/recovery.go index cfc8ae203..0e5c60e1a 100644 --- a/dex/recovery.go +++ b/dex/recovery.go @@ -442,7 +442,7 @@ func (r *Recovery) Votes(height uint64) (uint64, error) { return 0, err } - notarySet, err := r.gov.NotarySetAddresses(r.gov.Round()) + notarySet, err := r.gov.NotarySetNodeKeyAddresses(r.gov.Round()) if err != nil { return 0, err } |