Skip to content

Commit

Permalink
more renamed ops
Browse files Browse the repository at this point in the history
  • Loading branch information
e-asphyx committed Jan 24, 2024
1 parent 5526a45 commit 415d3c5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkg/signatory/signatory.go
Original file line number Diff line number Diff line change
Expand Up @@ -656,10 +656,18 @@ func PreparePolicy(src config.TezosConfig) (out Policy, err error) {

if core.CompareProtocols(&latest.Protocol, &core.Proto018Proxford) >= 0 {
for i, o := range pol.AllowedOps {
if o == "endorsement" {
switch o {
case "endorsement":
pol.AllowedOps[i] = "attestation"
case "preendorsement":
pol.AllowedOps[i] = "preattestation"
case "double_endorsement_evidence":
pol.AllowedOps[i] = "double_attestation_evidence"
case "double_preendorsement_evidence":
pol.AllowedOps[i] = "double_preattestation_evidence"
}
}
sort.Strings(pol.AllowedOps)
}

if v.AuthorizedKeys != nil {
Expand Down

0 comments on commit 415d3c5

Please sign in to comment.