@@ -58,8 +58,6 @@ func handle(ctx context.Context, act action.Action, sm protocol.StateManager, in
5858 if ! ok {
5959 return nil , nil
6060 }
61- zap .L ().Debug ("Handle PutPollResult Action" , zap .Uint64 ("height" , r .Height ()))
62-
6361 if err := setCandidates (ctx , sm , indexer , r .Candidates (), r .Height ()); err != nil {
6462 return nil , errors .Wrap (err , "failed to set candidates" )
6563 }
@@ -124,13 +122,6 @@ func createPostSystemActions(ctx context.Context, sr protocol.StateReader, p Pro
124122 if _ , _ , err := candidatesutil .CandidatesFromDB (sr , nextEpochHeight , beforeEaster , true ); errors .Cause (err ) != state .ErrStateNotExist {
125123 return nil , err
126124 }
127- log .L ().Debug (
128- "createPutPollResultAction" ,
129- zap .Uint64 ("height" , blkCtx .BlockHeight ),
130- zap .Uint64 ("epochNum" , epochNum ),
131- zap .Uint64 ("epochHeight" , epochHeight ),
132- zap .Uint64 ("nextEpochHeight" , nextEpochHeight ),
133- )
134125 l , err := p .CalculateCandidatesByHeight (ctx , sr , epochHeight )
135126 if err == nil && len (l ) == 0 {
136127 err = errors .Wrapf (
@@ -188,12 +179,6 @@ func setCandidates(
188179 if err := accountutil .StoreAccount (sm , candAddr , delegate ); err != nil {
189180 return errors .Wrap (err , "failed to update pending account changes to trie" )
190181 }
191- log .L ().Debug (
192- "add candidate" ,
193- zap .String ("address" , candidate .Address ),
194- zap .String ("rewardAddress" , candidate .RewardAddress ),
195- zap .String ("score" , candidate .Votes .String ()),
196- )
197182 }
198183 if indexer != nil {
199184 if err := indexer .PutCandidateList (height , & candidates ); err != nil {
@@ -238,7 +223,6 @@ func setUnproductiveDelegates(
238223
239224// shiftCandidates updates current data with next data of candidate list
240225func shiftCandidates (sm protocol.StateManager ) (uint64 , error ) {
241- zap .L ().Debug ("Shift candidatelist from next key to current key" )
242226 var next state.CandidateList
243227 var err error
244228 var stateHeight , putStateHeight , delStateHeight uint64
@@ -273,7 +257,6 @@ func shiftCandidates(sm protocol.StateManager) (uint64, error) {
273257
274258// shiftProbationList updates current data with next data of probation list
275259func shiftProbationList (sm protocol.StateManager ) (uint64 , error ) {
276- zap .L ().Debug ("Shift probationList from next key to current key" )
277260 var err error
278261 var stateHeight , putStateHeight , delStateHeight uint64
279262 next := & vote.ProbationList {}
0 commit comments