fix: copy Flags field from SectorOnChainInfo
Fixes: https://github.com/filecoin-project/lotus/issues/11962
This commit is contained in:
parent
75f7e4571e
commit
95f1533c9b
@ -587,6 +587,7 @@ func fromV{{.v}}SectorOnChainInfo(v{{.v}} miner{{.v}}.SectorOnChainInfo) SectorO
|
||||
{{if (ge .v 12)}}
|
||||
PowerBaseEpoch: v{{.v}}.PowerBaseEpoch,
|
||||
ReplacedDayReward: v{{.v}}.ReplacedDayReward,
|
||||
Flags: SectorOnChainInfoFlags(v{{.v}}.Flags),
|
||||
{{end}}
|
||||
}
|
||||
return info
|
||||
|
1
chain/actors/builtin/miner/v12.go
generated
1
chain/actors/builtin/miner/v12.go
generated
@ -548,6 +548,7 @@ func fromV12SectorOnChainInfo(v12 miner12.SectorOnChainInfo) SectorOnChainInfo {
|
||||
|
||||
PowerBaseEpoch: v12.PowerBaseEpoch,
|
||||
ReplacedDayReward: v12.ReplacedDayReward,
|
||||
Flags: SectorOnChainInfoFlags(v12.Flags),
|
||||
}
|
||||
return info
|
||||
}
|
||||
|
1
chain/actors/builtin/miner/v13.go
generated
1
chain/actors/builtin/miner/v13.go
generated
@ -548,6 +548,7 @@ func fromV13SectorOnChainInfo(v13 miner13.SectorOnChainInfo) SectorOnChainInfo {
|
||||
|
||||
PowerBaseEpoch: v13.PowerBaseEpoch,
|
||||
ReplacedDayReward: v13.ReplacedDayReward,
|
||||
Flags: SectorOnChainInfoFlags(v13.Flags),
|
||||
}
|
||||
return info
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user