Skip to content

Commit 7ea2ca5

Browse files
0.1.18
1 parent ca88c9d commit 7ea2ca5

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/block_parser_napi.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,10 @@ impl ChiaBlockParser {
178178
/// Parse a FullBlock from hex string
179179
#[napi]
180180
pub fn parse_full_block_from_hex(&self, block_hex: String) -> Result<ParsedBlockJS> {
181-
debug!("Parsing FullBlock from hex string of length {}", block_hex.len());
181+
debug!(
182+
"Parsing FullBlock from hex string of length {}",
183+
block_hex.len()
184+
);
182185

183186
let block_bytes = hex::decode(&block_hex)
184187
.map_err(|e| Error::new(Status::InvalidArg, format!("Hex decode error: {e}")))?;
@@ -193,7 +196,10 @@ impl ChiaBlockParser {
193196

194197
/// Extract generator from block bytes
195198
#[napi]
196-
pub fn extract_generator_from_block_bytes(&self, block_bytes: Buffer) -> Result<Option<String>> {
199+
pub fn extract_generator_from_block_bytes(
200+
&self,
201+
block_bytes: Buffer,
202+
) -> Result<Option<String>> {
197203
debug!("Extracting generator from {} bytes", block_bytes.len());
198204

199205
let block = FullBlock::from_bytes(&block_bytes).map_err(|e| {
@@ -217,7 +223,10 @@ impl ChiaBlockParser {
217223
&self,
218224
block_bytes: Buffer,
219225
) -> Result<BlockHeightInfoJS> {
220-
debug!("Getting height and tx status from {} bytes", block_bytes.len());
226+
debug!(
227+
"Getting height and tx status from {} bytes",
228+
block_bytes.len()
229+
);
221230

222231
let block = FullBlock::from_bytes(&block_bytes).map_err(|e| {
223232
Error::new(

0 commit comments

Comments
 (0)