Unverified Commit 8bba9856 authored by roadscape's avatar roadscape Committed by GitHub
Browse files

Merge pull request #83 from steemit/netuoso-79-stale-witnesses

Community - Consider stale witnesses as disabled
parents 66469e1b 523f4786
......@@ -103,8 +103,10 @@ class Witnesses extends React.Component {
const thread = item.get('url');
const myVote = witness_votes ? witness_votes.has(owner) : null;
const signingKey = item.get('signing_key');
const isDisabled = signingKey == DISABLED_SIGNING_KEY;
const lastBlock = item.get('last_confirmed_block_num');
const noBlock7days = (head_block - lastBlock) * 3 > 604800;
const isDisabled =
signingKey == DISABLED_SIGNING_KEY || noBlock7days;
const votingActive = witnessVotesInProgress.has(owner);
const classUp =
'Voting__button Voting__button-up' +
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment