@@ -178,7 +178,10 @@ impl ChiaBlockParser {
178
178
/// Parse a FullBlock from hex string
179
179
#[ napi]
180
180
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
+ ) ;
182
185
183
186
let block_bytes = hex:: decode ( & block_hex)
184
187
. map_err ( |e| Error :: new ( Status :: InvalidArg , format ! ( "Hex decode error: {e}" ) ) ) ?;
@@ -193,7 +196,10 @@ impl ChiaBlockParser {
193
196
194
197
/// Extract generator from block bytes
195
198
#[ 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 > > {
197
203
debug ! ( "Extracting generator from {} bytes" , block_bytes. len( ) ) ;
198
204
199
205
let block = FullBlock :: from_bytes ( & block_bytes) . map_err ( |e| {
@@ -217,7 +223,10 @@ impl ChiaBlockParser {
217
223
& self ,
218
224
block_bytes : Buffer ,
219
225
) -> 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
+ ) ;
221
230
222
231
let block = FullBlock :: from_bytes ( & block_bytes) . map_err ( |e| {
223
232
Error :: new (
0 commit comments