add comments

pull/919/head
Minh Doan 6 years ago committed by Minh Doan
parent e777b479f0
commit de8c1aa204
  1. 3
      hmy/api_backend.go
  2. 1
      internal/hmyapi/blockchain.go

@ -130,21 +130,18 @@ func (b *APIBackend) ProtocolVersion() int {
// Filter related APIs // Filter related APIs
// GetLogs ... // GetLogs ...
// TODO: this is not implemented or verified yet for harmony.
func (b *APIBackend) GetLogs(ctx context.Context, blockHash common.Hash) ([][]*types.Log, error) { func (b *APIBackend) GetLogs(ctx context.Context, blockHash common.Hash) ([][]*types.Log, error) {
// TODO(ricl): implement // TODO(ricl): implement
return nil, nil return nil, nil
} }
// HeaderByHash ... // HeaderByHash ...
// TODO: this is not implemented or verified yet for harmony.
func (b *APIBackend) HeaderByHash(ctx context.Context, blockHash common.Hash) (*types.Header, error) { func (b *APIBackend) HeaderByHash(ctx context.Context, blockHash common.Hash) (*types.Header, error) {
// TODO(ricl): implement // TODO(ricl): implement
return nil, nil return nil, nil
} }
// ServiceFilter ... // ServiceFilter ...
// TODO: this is not implemented or verified yet for harmony.
func (b *APIBackend) ServiceFilter(ctx context.Context, session *bloombits.MatcherSession) { func (b *APIBackend) ServiceFilter(ctx context.Context, session *bloombits.MatcherSession) {
// TODO(ricl): implement // TODO(ricl): implement
} }

@ -72,6 +72,7 @@ func (s *PublicBlockChainAPI) GetStorageAt(ctx context.Context, address common.A
// given block number. The rpc.LatestBlockNumber and rpc.PendingBlockNumber meta // given block number. The rpc.LatestBlockNumber and rpc.PendingBlockNumber meta
// block numbers are also allowed. // block numbers are also allowed.
func (s *PublicBlockChainAPI) GetBalance(ctx context.Context, address common.Address, blockNr rpc.BlockNumber) (*hexutil.Big, error) { 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) return s.b.GetBalance(address)
} }

Loading…
Cancel
Save