diff --git a/core/types/wo.go b/core/types/wo.go index 3699417b7f..7783f6eb29 100644 --- a/core/types/wo.go +++ b/core/types/wo.go @@ -1073,7 +1073,11 @@ type WorkObjectHeaderView struct { //////////////////////////////////////////////////////////// func (wo *WorkObject) ConvertToHeaderView() *WorkObjectHeaderView { - newWo := NewWorkObjectWithHeader(wo, nil, common.ZONE_CTX, HeaderObject) + newWo := NewWorkObject(wo.woHeader, wo.woBody, wo.tx) + newWo.Body().SetExtTransactions(Transactions{}) + newWo.Body().SetTransactions(Transactions{}) + newWo.Body().SetManifest(BlockManifest{}) + newWo.Body().SetInterlinkHashes(common.Hashes{}) return &WorkObjectHeaderView{ WorkObject: newWo, }