Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cherrypick/conflict wrongfully resolved #10439

Merged
merged 4 commits into from
Mar 10, 2023
Merged

fix: cherrypick/conflict wrongfully resolved #10439

merged 4 commits into from
Mar 10, 2023

Conversation

jennijuju
Copy link
Member

seems like the right code should be

lotus/node/impl/full/eth.go

Lines 251 to 268 in 58900a7

default:
var num ethtypes.EthUint64
err := num.UnmarshalJSON([]byte(`"` + blkParam + `"`))
if err != nil {
return nil, fmt.Errorf("cannot parse block number: %v", err)
}
if abi.ChainEpoch(num) > head.Height()-1 {
return nil, fmt.Errorf("requested a future epoch (beyond 'latest')")
}
ts, err := a.ChainAPI.ChainGetTipSetByHeight(ctx, abi.ChainEpoch(num), head.Key())
if err != nil {
return nil, fmt.Errorf("cannot get tipset at height: %v", num)
}
if strict && ts.Height() != abi.ChainEpoch(num) {
return nil, ErrNullRound
}
return ts, nil
}

but

lotus/node/impl/full/eth.go

Lines 251 to 265 in 99749e9

default:
var num ethtypes.EthUint64
err := num.UnmarshalJSON([]byte(`"` + blkParam + `"`))
if err != nil {
return nil, fmt.Errorf("cannot parse block number: %v", err)
}
ts, err := a.Chain.GetTipsetByHeight(ctx, abi.ChainEpoch(num), nil, true)
if err != nil {
return nil, fmt.Errorf("cannot get tipset at height: %v", num)
}
if strict && ts.Height() != abi.ChainEpoch(num) {
return nil, ErrNullRound
}
return ts, nil
}
was outdated

@jennijuju jennijuju requested a review from a team as a code owner March 10, 2023 02:12
Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would explain the failing test.

@Stebalien
Copy link
Member

Looks like something is still wrong with the go.mod file.

@jennijuju
Copy link
Member Author

Would explain the failing test.

I thought was flakey..... my bad...

@Stebalien
Copy link
Member

I thought was flakey..... my bad...

So did I.

@jennijuju jennijuju merged commit b332db0 into releases Mar 10, 2023
@jennijuju jennijuju deleted the jen/v1203 branch March 10, 2023 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants