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: 重构消息推送及签名逻辑 / refactor sign & push-msg logic #241

Closed
wants to merge 7 commits into from

Conversation

diwufeiwen
Copy link
Contributor

@diwufeiwen diwufeiwen commented Aug 22, 2022

关联的Issues (Related Issues)

close

改动 (Proposed Changes)

附注 (Additional Info)

自查清单 (Checklist)

在你认为本 PR 满足被审阅的标准之前,需要确保 / Before you mark the PR ready for review, please make sure that:

  • 符合Venus项目管理规范中关于PR的相关标准 / The PR follows the PR standards set out in the Venus project management guidelines
  • 具有清晰明确的commit message / All commits have a clear commit message.
  • 包含相关的的测试用例或者不需要新增测试用例 / This PR has tests for new functionality or change in behaviour or not need to add new tests.
  • 包含相关的的指南以及文档或者不需要新增文档 / This PR has updated usage guidelines and documentation or not need
  • 通过必要的检查项 / All checks are green

@diwufeiwen diwufeiwen self-assigned this Aug 22, 2022
@diwufeiwen diwufeiwen force-pushed the feat/lt/refactor_msg_push_api branch 4 times, most recently from cf39953 to 9cc8312 Compare August 22, 2022 07:17
@diwufeiwen diwufeiwen changed the title feat: refactor sign & pish-msg logic feat: 重构消息推送及签名逻辑 / refactor sign & push-msg logic Aug 22, 2022
@codecov-commenter
Copy link

codecov-commenter commented Aug 22, 2022

Codecov Report

Merging #241 (f14043f) into master (c30612f) will increase coverage by 0.27%.
The diff coverage is 60.25%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #241      +/-   ##
==========================================
+ Coverage   53.98%   54.26%   +0.27%     
==========================================
  Files          62       62              
  Lines        6576     6485      -91     
==========================================
- Hits         3550     3519      -31     
+ Misses       2745     2686      -59     
+ Partials      281      280       -1     
Flag Coverage Δ
unittests 54.26% <60.25%> (+0.27%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cli/msg.go 0.00% <ø> (ø)
cli/send.go 0.00% <ø> (ø)
gateway/gateway_client.go 0.00% <0.00%> (ø)
main.go 0.00% <0.00%> (ø)
service/send.go 0.00% <0.00%> (ø)
service/message_service.go 59.14% <55.00%> (-0.10%) ⬇️
api/messager_impl.go 82.00% <100.00%> (-1.93%) ⬇️
gateway/mock_gateway_client.go 80.00% <100.00%> (+5.75%) ⬆️
integration_test/mock_messager_server.go 73.78% <100.00%> (ø)
models/mysql/message.go 77.05% <100.00%> (-0.26%) ⬇️
... and 5 more

@@ -117,8 +114,6 @@ func fromMessage(srcMsg *types.Message) *mysqlMessage {
Height: srcMsg.Height,
Receipt: repo.FromMsgReceipt(srcMsg.Receipt),
Meta: mtypes.FromMeta(srcMsg.Meta),
WalletName: srcMsg.WalletName,
Copy link
Collaborator

Choose a reason for hiding this comment

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

考虑留着?万一要回滚,没上链的消息就没有这两个值了

Copy link
Contributor Author

Choose a reason for hiding this comment

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

在新的体系中venus-messager不应该存在WalletName这种东西,其签名都应该通过venus-gateway处理

Copy link
Contributor

Choose a reason for hiding this comment

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

回滚的问题需要考虑到,不过真要是出问题,回滚程序也没用了,可能是要改数据库。

@diwufeiwen diwufeiwen force-pushed the feat/lt/refactor_msg_push_api branch 10 times, most recently from 723242f to 507509f Compare September 14, 2022 03:45
@diwufeiwen diwufeiwen force-pushed the feat/lt/refactor_msg_push_api branch from 507509f to bd58c40 Compare September 20, 2022 09:51
@diwufeiwen diwufeiwen force-pushed the feat/lt/refactor_msg_push_api branch from bd58c40 to f14043f Compare September 28, 2022 06:04
gateway/gateway_client.go Outdated Show resolved Hide resolved
@diwufeiwen
Copy link
Contributor Author

按计划给 release/v1.9.0-pre-rc1 分支合并,此pr关闭

@diwufeiwen diwufeiwen closed this Oct 25, 2022
@diwufeiwen diwufeiwen mentioned this pull request Oct 25, 2022
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

5 participants