Skip to content

Commit

Permalink
don't clear StateProofID in ledgercore.AccountData.ClearState()
Browse files Browse the repository at this point in the history
  • Loading branch information
cce committed Feb 17, 2022
1 parent feb2e04 commit ca46d03
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ledger/ledgercore/accountdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ func (u *AccountData) ClearOnlineState() {
u.VoteKeyDilution = 0
u.VoteID = crypto.OneTimeSignatureVerifier{}
u.SelectionID = crypto.VRFVerifier{}
u.StateProofID = merklesignature.Verifier{}
}

// MinBalance computes the minimum balance requirements for an account based on
Expand Down Expand Up @@ -164,7 +163,6 @@ func (u *AccountData) OnlineAccountData(proto config.ConsensusParams, rewardsLev
MicroAlgosWithRewards: microAlgos,
VoteID: u.VoteID,
SelectionID: u.SelectionID,
StateProofID: u.StateProofID,
VoteFirstValid: u.VoteFirstValid,
VoteLastValid: u.VoteLastValid,
VoteKeyDilution: u.VoteKeyDilution,
Expand Down

0 comments on commit ca46d03

Please sign in to comment.