@@ -387,7 +387,7 @@ func fblockHead() (interfaces.IFBlock, error) {
387387 if err != nil {
388388 return nil , err
389389 }
390- dblock , _ , err := factom .GetDBlock (dbhead )
390+ dblock , err := factom .GetDBlock (dbhead )
391391 if err != nil {
392392 return nil , err
393393 }
@@ -406,25 +406,25 @@ func fblockHead() (interfaces.IFBlock, error) {
406406}
407407
408408func getfblock (keymr string ) (interfaces.IFBlock , error ) {
409- _ , raw , err := factom .GetFBlock (keymr )
409+ raw , err := factom .GetRaw (keymr )
410410 if err != nil {
411411 return nil , err
412412 }
413413 return factoid .UnmarshalFBlock (raw )
414414}
415415
416416func getfblockbyheight (height uint32 ) (interfaces.IFBlock , error ) {
417- _ , raw , err := factom .GetFBlockByHeight ( int64 (height ))
417+ raw , err := factom .GetBlockByHeightRaw ( "f" , int64 (height ))
418418 if err != nil {
419419 return nil , err
420420 }
421- return factoid .UnmarshalFBlock (raw )
421+ return factoid .UnmarshalFBlock ([] byte ( raw . RawData ) )
422422}
423423
424424func getdblockbyheight (height uint32 ) (interfaces.IDirectoryBlock , error ) {
425- _ , raw , err := factom .GetDBlockByHeight ( int64 (height ))
425+ raw , err := factom .GetBlockByHeightRaw ( "d" , int64 (height ))
426426 if err != nil {
427427 return nil , err
428428 }
429- return directoryBlock .UnmarshalDBlock (raw )
429+ return directoryBlock .UnmarshalDBlock ([] byte ( raw . RawData ) )
430430}
0 commit comments