Refactor api txs

This commit is contained in:
Arnau B
2020-10-26 16:47:16 +01:00
parent decc4996ee
commit a329d894d2
18 changed files with 1452 additions and 1272 deletions

View File

@@ -85,7 +85,7 @@ func getBatch(c *gin.Context) {
type fullBatch struct {
Batch *historydb.BatchAPI
Txs []historyTxAPI
Txs []historydb.TxAPI
}
func getFullBatch(c *gin.Context) {
@@ -107,7 +107,7 @@ func getFullBatch(c *gin.Context) {
}
// Fetch txs from historyDB
// TODO
txs := []historyTxAPI{}
txs := []historydb.TxAPI{}
// JSON response
c.JSON(http.StatusOK, fullBatch{
Batch: batch,