parent
9c4a629659
commit
100ce03643
|
@ -358,7 +358,7 @@ impl CompactTarget {
|
||||||
mod tmp {
|
mod tmp {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
impl CompactTarget {
|
impl CompactTarget {
|
||||||
/// Creates a `CompactTarget` from a prefixed hex string.
|
/// Creates a `CompactTarget` from a prefixed hex string.
|
||||||
pub fn from_hex(s: &str) -> Result<Self, PrefixedHexError> {
|
pub fn from_hex(s: &str) -> Result<Self, PrefixedHexError> {
|
||||||
let target = parse::hex_u32_prefixed(s)?;
|
let target = parse::hex_u32_prefixed(s)?;
|
||||||
|
@ -446,7 +446,7 @@ impl CompactTarget {
|
||||||
let bits = current.bits;
|
let bits = current.bits;
|
||||||
CompactTarget::from_next_work_required(bits, timespan.into(), params)
|
CompactTarget::from_next_work_required(bits, timespan.into(), params)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<CompactTarget> for Target {
|
impl From<CompactTarget> for Target {
|
||||||
|
|
Loading…
Reference in New Issue