Skip to content

Commit

Permalink
use universal (de)serializer for Policy (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
LesnyRumcajs authored Dec 15, 2022
1 parent 038630c commit 45c56ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ repository = "https://github.com/filecoin-project/builtin-actors"
fvm_ipld_hamt = "0.5.1"
fvm_ipld_amt = { version = "0.4.2", features = ["go-interop"] }
fvm_shared = { version = "2.0.0-alpha.2", default-features = false }
num = { version = "0.4", features = ["serde"] }
num-traits = "0.2.14"
num-derive = "0.3.3"
serde = { version = "1.0.136", features = ["derive"] }
Expand Down
3 changes: 0 additions & 3 deletions runtime/src/runtime/policy.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::collections::HashSet;

use fvm_shared::bigint::bigint_ser;
use fvm_shared::clock::ChainEpoch;
use fvm_shared::sector::{RegisteredPoStProof, RegisteredSealProof, StoragePower};
use num_traits::FromPrimitive;
Expand Down Expand Up @@ -137,7 +136,6 @@ pub struct Policy {

// --- verifreg policy
/// Minimum verified deal size
#[serde(with = "bigint_ser")]
pub minimum_verified_allocation_size: StoragePower,
/// Minimum term for a verified data allocation (epochs)
pub minimum_verified_allocation_term: i64,
Expand Down Expand Up @@ -167,7 +165,6 @@ pub struct Policy {

// --- power ---
/// Minimum miner consensus power
#[serde(with = "bigint_ser")]
pub minimum_consensus_power: StoragePower,
}

Expand Down

0 comments on commit 45c56ed

Please sign in to comment.