Skip to content

Commit

Permalink
chore: nits
Browse files Browse the repository at this point in the history
  • Loading branch information
ninabarbakadze committed Mar 27, 2024
1 parent de0011b commit 7658b7c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion light/proxy/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func RPCRoutes(c *lrpc.Client) map[string]*rpcserver.RPCFunc {
"consensus_params": rpcserver.NewRPCFunc(makeConsensusParamsFunc(c), "height", rpcserver.Cacheable("height")),
"unconfirmed_txs": rpcserver.NewRPCFunc(makeUnconfirmedTxsFunc(c), "limit"),
"num_unconfirmed_txs": rpcserver.NewRPCFunc(makeNumUnconfirmedTxsFunc(c), ""),
"tx_status": rpcserver.NewRPCFunc(makeTxStatusFunc(c), "hash", rpcserver.Cacheable()),
"tx_status": rpcserver.NewRPCFunc(makeTxStatusFunc(c), "hash"),

// tx broadcast API
"broadcast_tx_commit": rpcserver.NewRPCFunc(makeBroadcastTxCommitFunc(c), "tx"),
Expand Down
1 change: 1 addition & 0 deletions light/rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ func (c *Client) BlockResults(ctx context.Context, height *int64) (*ctypes.Resul
return res, nil
}

// TxStatus retrieves the status of the transaction given its hash.
func (c *Client) TxStatus(ctx context.Context, hash []byte) (*ctypes.ResultTxStatus, error) {
return c.next.TxStatus(ctx, hash)
}
Expand Down
1 change: 0 additions & 1 deletion store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ func (bs *BlockStore) PruneBlocks(height int64) (uint64, error) {

// flush every 1000 blocks to avoid batches becoming too large
if pruned%1000 == 0 && pruned > 0 {

err := flush(batch, h)
if err != nil {
return 0, err
Expand Down

0 comments on commit 7658b7c

Please sign in to comment.