Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions chain/actors/builtin/miner/actor.go.template
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ func PledgePenaltyForContinuedFault(
{{- end}}
{{- end}}
default:
return big.Zero(), xerrors.Errorf("unsupported network version: %d", v)
return big.Zero(), xerrors.Errorf("unsupported network version: %d", nwVer)
}
}

Expand All @@ -401,6 +401,6 @@ func PledgePenaltyForTermination(
{{- end}}
{{- end}}
default:
return big.Zero(), xerrors.Errorf("unsupported network version: %d", v)
return big.Zero(), xerrors.Errorf("unsupported network version: %d", nwVer)
}
}
4 changes: 2 additions & 2 deletions chain/actors/builtin/miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ func PledgePenaltyForContinuedFault(

switch v {
default:
return big.Zero(), xerrors.Errorf("unsupported network version: %d", v)
return big.Zero(), xerrors.Errorf("unsupported network version: %d", nwVer)
}
}

Expand All @@ -476,6 +476,6 @@ func PledgePenaltyForTermination(
case actorstypes.Version16:
return minertypes16.PledgePenaltyForTermination(initialPledge, sectorAge, faultFee), nil
default:
return big.Zero(), xerrors.Errorf("unsupported network version: %d", v)
return big.Zero(), xerrors.Errorf("unsupported network version: %d", nwVer)
}
}