示例#1
0
 /// <summary>
 /// 变成leader节点
 /// </summary>
 /// <param name="state"></param>
 public void BecomeLeader(CurrentState state)
 {
     TxPool.StartCacheTx();
     _logger.LogInformation($"{state.Id} became leader");
     State = _stateprovider.GetLeader(state);
 }