Change beneficiary to reporter in slash.Record marshal (#4101)

pull/4112/head
Dimitris Lamprinos 3 years ago committed by GitHub
parent 0dbf490477
commit 027896adac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      staking/slash/double-sign.go

@ -130,7 +130,7 @@ func (r Record) MarshalJSON() ([]byte, error) {
common2.MustAddressToBech32(r.Evidence.Offender)
return json.Marshal(struct {
Evidence Evidence `json:"evidence"`
Beneficiary string `json:"beneficiary"`
Reporter string `json:"reporter"`
AddressForBLSKey string `json:"offender"`
}{r.Evidence, reporter, offender})
}

Loading…
Cancel
Save