From de8c1aa204463c6201ada321f4c62b66106e8ca6 Mon Sep 17 00:00:00 2001 From: Minh Doan Date: Wed, 29 May 2019 23:15:28 -0700 Subject: [PATCH] add comments --- hmy/api_backend.go | 3 --- internal/hmyapi/blockchain.go | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/hmy/api_backend.go b/hmy/api_backend.go index ad88f0e8f..92141b2fb 100644 --- a/hmy/api_backend.go +++ b/hmy/api_backend.go @@ -130,21 +130,18 @@ func (b *APIBackend) ProtocolVersion() int { // Filter related APIs // GetLogs ... -// TODO: this is not implemented or verified yet for harmony. func (b *APIBackend) GetLogs(ctx context.Context, blockHash common.Hash) ([][]*types.Log, error) { // TODO(ricl): implement return nil, nil } // HeaderByHash ... -// TODO: this is not implemented or verified yet for harmony. func (b *APIBackend) HeaderByHash(ctx context.Context, blockHash common.Hash) (*types.Header, error) { // TODO(ricl): implement return nil, nil } // ServiceFilter ... -// TODO: this is not implemented or verified yet for harmony. func (b *APIBackend) ServiceFilter(ctx context.Context, session *bloombits.MatcherSession) { // TODO(ricl): implement } diff --git a/internal/hmyapi/blockchain.go b/internal/hmyapi/blockchain.go index 967c6d8d3..d4178dfd2 100644 --- a/internal/hmyapi/blockchain.go +++ b/internal/hmyapi/blockchain.go @@ -72,6 +72,7 @@ func (s *PublicBlockChainAPI) GetStorageAt(ctx context.Context, address common.A // given block number. The rpc.LatestBlockNumber and rpc.PendingBlockNumber meta // block numbers are also allowed. func (s *PublicBlockChainAPI) GetBalance(ctx context.Context, address common.Address, blockNr rpc.BlockNumber) (*hexutil.Big, error) { + // TODO: currently only get latest balance. Will add complete logic later. return s.b.GetBalance(address) }