If either there's no nays or the number of yays is bigger than the
concensus the vote can be considered successful. We don't want to
always wait for a majority of yays, because that'd possibly delay
voting for a long time, even if enough nodes for a consensus on
another chunk are online.
" UPDATE bdr_sequence_elections\n"
" SET\n"
" open = false,\n"
-" success = (nays = 0)\n"
+" success = (nays = 0 OR yays >= ceil($5/ 2.0))\n"
" FROM tallied_votes\n"
" WHERE\n"
" bdr_sequence_elections.owning_sysid = tallied_votes.owning_sysid\n"