add election

Signed-off-by: jonnyhsy <jonnyhsy@foxmail.com>