diff --git a/client/client.go b/client/client.go index 3477acb..13c7d27 100644 --- a/client/client.go +++ b/client/client.go @@ -222,6 +222,9 @@ func (ec *SDKClient) Status(ctx context.Context) ( return nil, -1, nil, nil, err } + fmt.Printf("header string from node: %s\n", header.Hash()) + fmt.Printf("hash returned : %s\n", header.Hash().Hex()) + // Get sync status var syncStatus *RosettaTypes.SyncStatus if ec.rosettaConfig.SupportsSyncing { diff --git a/services/block_service.go b/services/block_service.go index fc8f4d1..99d0638 100644 --- a/services/block_service.go +++ b/services/block_service.go @@ -177,9 +177,9 @@ func (s *BlockAPIService) GetEthBlock( blockIdentifier *RosettaTypes.PartialBlockIdentifier, ) (*EthTypes.Block, []*client.LoadedTransaction, *client.RPCBlock, error) { if blockIdentifier != nil { - if blockIdentifier.Hash != nil { - return s.GetBlock(ctx, "eth_getBlockByHash", *blockIdentifier.Hash, true) - } + //if blockIdentifier.Hash != nil { + // return s.GetBlock(ctx, "eth_getBlockByHash", *blockIdentifier.Hash, true) + //} if blockIdentifier.Index != nil { return s.GetBlock(ctx, "eth_getBlockByNumber", client.ToBlockNumArg(big.NewInt(*blockIdentifier.Index)), true)