Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Feb 16, 2023
1 parent 310628e commit 17da6d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/messagepool/gas.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ func (mp *MessagePool) evalMessageGasLimit(ctx context.Context, msgIn *types.Mes

ret := res.MsgRct.GasUsed

// todo: remove after nv18
transitionalMulti := 1.0
// Overestimate gas around the upgrade
if ts.Height() <= mp.forkParams.UpgradeSkyrHeight && (mp.forkParams.UpgradeSkyrHeight-ts.Height() <= 20) {
Expand Down
2 changes: 2 additions & 0 deletions venus-shared/types/tipset_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ func (tsk TipSetKey) ToStorageBlock() (block.Block, error) {
return block.NewBlockWithCid(buf.Bytes(), cid)
}

// todo: remove after nv18
func (tsk *TipSetKey) V0UnmarshalCBOR(r io.Reader) error {
br := cbg.GetPeeker(r)
scratch := make([]byte, 8)
Expand Down Expand Up @@ -203,6 +204,7 @@ func (tsk *TipSetKey) V0UnmarshalCBOR(r io.Reader) error {
return nil
}

// todo: remove after nv18
func (tsk TipSetKey) V0MarshalCBOR(w io.Writer) error {
cids := tsk.Cids()
if len(cids) > cbg.MaxLength {
Expand Down

0 comments on commit 17da6d3

Please sign in to comment.