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

introduce message prototypes #5893

Merged
merged 6 commits into from
Mar 30, 2021
Merged

Conversation

vyzo
Copy link
Contributor

@vyzo vyzo commented Mar 27, 2021

This introduces message prototypes to applicable API endpoints, which
allows us to invert control of message sending and give the user a
chance to intervene with an interactive ui.

This introduces message prototypes to applicable API endpoints, which
allows us to invert control of message sending and give the user a
chance to intervene with an interactive ui.
@vyzo vyzo requested a review from Kubuxu March 27, 2021 14:37
@vyzo vyzo marked this pull request as draft March 27, 2021 14:47
vyzo added 5 commits March 28, 2021 12:57
…ion logic

Otherwise the lotus-gateway msig tests are failing
MpoolCheck* return all checks, whether successful or not; that means we would always fail
with ErrCheckFailed, which is _not_ what we want; we only want to fail if a check has failed.
@vyzo vyzo force-pushed the feat/message-prototypes branch from 8052516 to 89e634a Compare March 28, 2021 09:57
@vyzo vyzo marked this pull request as ready for review March 28, 2021 10:08
@arajasek
Copy link
Contributor

We should think about solutions to #1136 (which is quite desired, see #5647 as an example) as part of this.

@Kubuxu
Copy link
Contributor

Kubuxu commented Mar 30, 2021

@arajasek this is quite unrelated.

var outChecks [][]api.MessageCheckStatus
checks, err := s.api.MpoolCheckMessages(ctx, []*types.Message{prototype})
checks, err := s.api.MpoolCheckMessages(ctx, []*types.Message{&prototype.Message})
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be better to pass the prototype to MpoolCheckMessages

@Kubuxu Kubuxu merged commit 13541b9 into feat/fee-cap-ui Mar 30, 2021
@Kubuxu Kubuxu deleted the feat/message-prototypes branch March 30, 2021 14:39
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.

3 participants