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

feat: message: Add uuid to mpool message sent to chain node from miner #9174

Merged
merged 9 commits into from
Aug 17, 2022

Conversation

shrenujbansal
Copy link
Contributor

@shrenujbansal shrenujbansal commented Aug 16, 2022

Related Issues

#9171

Proposed Changes

Add a uuid to each message sent from the miner to the chain node in order to properly dedupe retried messages

Additional Info

Checklist

Before you mark the PR ready for review, please make sure that:

  • All commits have a clear commit message.
  • The PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, INTERFACE BREAKING CHANGE, CONSENSUS BREAKING, build, chore, ci, docs,perf, refactor, revert, style, test
    • area: api, chain, state, vm, data transfer, market, mempool, message, block production, multisig, networking, paychan, proving, sealing, wallet, deps
  • This PR has tests for new functionality or change in behaviour
  • If new user-facing features are introduced, clear usage guidelines and / or documentation updates should be included in https://lotus.filecoin.io or Discussion Tutorials.
  • CI is green

@shrenujbansal shrenujbansal requested a review from a team as a code owner August 16, 2022 19:51
@shrenujbansal shrenujbansal linked an issue Aug 16, 2022 that may be closed by this pull request
14 tasks
@shrenujbansal shrenujbansal changed the title Add uuid to mpool message sent to chain node from miner feat: message: Add uuid to mpool message sent to chain node from miner Aug 16, 2022
node/modules/storageminer.go Show resolved Hide resolved
return a.FullNode.MpoolPushMessage(ctx, msg, spec)
}

func GetUuidWrapper(a v1api.RawFullNodeAPI) v1api.FullNode {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: would call this MakeUuidWrapper

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@magik6k magik6k enabled auto-merge August 17, 2022 19:00
@magik6k magik6k merged commit b5ac141 into master Aug 17, 2022
@magik6k magik6k deleted the 9171-add-uuid-to-message-sent-to-chain-node branch August 17, 2022 19:07
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.

Add UUID to message sent to chain node
2 participants