Skip to content

Feature/fip 0027 market label #670

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

Merged
merged 9 commits into from
Apr 28, 2022

Conversation

Alexey-N-Chernyshov
Copy link
Contributor

Description of the Change

FIP-0027 - Label encoding for market actors v8

Benefits

Possible Drawbacks

Usage Examples or Tests [optional]

Alternate Designs [optional]

Actors v8 to be implemented.

Signed-off-by: Alexey Chernyshov <alexey.n.chernyshov@gmail.com>
Signed-off-by: Alexey Chernyshov <alexey.n.chernyshov@gmail.com>
# Conflicts:
#	core/node/main/main.cpp
Signed-off-by: Alexey Chernyshov <alexey.n.chernyshov@gmail.com>
@@ -119,7 +59,7 @@ namespace fc::vm::actor::builtin::types::market {
CBOR_TUPLE(DealState, sector_start_epoch, last_updated_epoch, slash_epoch)

struct ClientDealProposal {
DealProposal proposal;
Universal<DealProposal> proposal;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

proposal is ptr now and default copy assigment of ClientDealProposal is a shallow copy.
Please, take a look.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If you need a full copy, please write copy constructor and operator for ClientDealProposal where call Universal::copy

@codecov
Copy link

codecov bot commented Apr 27, 2022

Codecov Report

Merging #670 (90aa586) into master (7e7ab00) will increase coverage by 0.04%.
The diff coverage is 46.35%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #670      +/-   ##
==========================================
+ Coverage   44.60%   44.64%   +0.04%     
==========================================
  Files         753      755       +2     
  Lines       34345    34388      +43     
  Branches    19215    19232      +17     
==========================================
+ Hits        15319    15354      +35     
+ Misses      14540    14537       -3     
- Partials     4486     4497      +11     
Impacted Files Coverage Δ
core/api/full_node/make.cpp 0.00% <ø> (ø)
core/api/rpc/json.hpp 6.89% <0.00%> (-0.01%) ⬇️
...storage/client/impl/storage_market_client_impl.hpp 28.57% <ø> (ø)
core/markets/storage/mk_protocol.hpp 79.31% <ø> (ø)
core/miner/storage_fsm/impl/sealing_impl.cpp 45.06% <0.00%> (ø)
core/miner/storage_fsm/types.hpp 66.00% <ø> (ø)
core/node/main/main.cpp 0.00% <0.00%> (ø)
...actor/builtin/states/market/market_actor_state.hpp 100.00% <ø> (ø)
...or/builtin/states/market/v3/market_actor_state.cpp 5.55% <0.00%> (ø)
...or/builtin/states/market/v3/market_actor_state.hpp 100.00% <ø> (ø)
... and 39 more

Signed-off-by: Alexey Chernyshov <alexey.n.chernyshov@gmail.com>
Signed-off-by: Alexey Chernyshov <alexey.n.chernyshov@gmail.com>
Alexey-N-Chernyshov and others added 3 commits April 28, 2022 15:19
Signed-off-by: Alexey Chernyshov <alexey.n.chernyshov@gmail.com>
Signed-off-by: Alexey-N-Chernyshov <alexey.n.chernyshov@gmail.com>
@Alexey-N-Chernyshov Alexey-N-Chernyshov merged commit 25ac16d into master Apr 28, 2022
@Alexey-N-Chernyshov Alexey-N-Chernyshov deleted the feature/fip-0027-market_label branch April 28, 2022 18:05
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