Skip to content

Commit

Permalink
Review Response
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenGround0 committed Sep 4, 2023
1 parent 55f3f7a commit 60d12ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 7 additions & 1 deletion actors/miner/src/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ use crate::{
SectorOnChainInfo, SectorPreCommitOnChainInfo, Sectors, State,
};
use fil_actors_runtime::runtime::Policy;
use fil_actors_runtime::{parse_uint_key, Map, MessageAccumulator, DEFAULT_HAMT_CONFIG};
use fil_actors_runtime::{
parse_uint_key, DealWeight, Map, MessageAccumulator, DEFAULT_HAMT_CONFIG,
};
use fvm_ipld_bitfield::BitField;
use fvm_ipld_blockstore::Blockstore;
use fvm_ipld_encoding::CborStore;
Expand Down Expand Up @@ -80,6 +82,8 @@ pub fn check_state_invariants<BS: Blockstore>(
DealSummary {
sector_start: sector.activation,
sector_expiration: sector.expiration,
deal_weight: sector.deal_weight.clone(),
verified_deal_weight: sector.verified_deal_weight.clone(),
},
);
}
Expand Down Expand Up @@ -141,6 +145,8 @@ pub fn check_state_invariants<BS: Blockstore>(
pub struct DealSummary {
pub sector_start: ChainEpoch,
pub sector_expiration: ChainEpoch,
pub deal_weight: DealWeight,
pub verified_deal_weight: DealWeight,
}

pub struct StateSummary {
Expand Down
2 changes: 0 additions & 2 deletions actors/miner/tests/prove_commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ fn prove_single_sector() {

assert_eq!(precommit.info.seal_proof, sector.seal_proof);
assert_eq!(precommit.info.sealed_cid, sector.sealed_cid);
assert_eq!(verified_deal_space, sector.verified_deal_weight);
assert_eq!(deal_space, sector.deal_weight);
assert_eq!(*rt.epoch.borrow(), sector.activation);
assert_eq!(precommit.info.expiration, sector.expiration);

Expand Down

0 comments on commit 60d12ed

Please sign in to comment.