Skip to content

Commit

Permalink
rpc: add height value in getblockbyXXX
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengOrangeJu committed Sep 21, 2018
1 parent b1df5d1 commit b528922
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpc/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ func (s *APIService) toBlockResponse(block *core.Block, fullFillTransaction bool
} else {
tx = &rpcpb.TransactionResponse{Hash: v.Hash().String()}
}
tx.BlockHeight = block.Height()
txs = append(txs, tx)
}
resp.Transactions = txs
Expand Down

0 comments on commit b528922

Please sign in to comment.