Skip to content

Commit

Permalink
Bug fix for middleware processor
Browse files Browse the repository at this point in the history
  • Loading branch information
syuan100 committed Aug 24, 2021
1 parent d1d1b79 commit dbd7026
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion helium/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func GetBlock(blockIdentifier *types.PartialBlockIdentifier) (*types.Block, *typ

var processedTxs []*types.Transaction
for _, tx := range result.Transactions {
ptx, txErr := GetTransaction(tx)
ptx, txErr := GetTransaction(fmt.Sprint(tx["hash"]))
if txErr != nil {
return nil, txErr
}
Expand Down
10 changes: 5 additions & 5 deletions helium/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,11 @@ var (
)

type Block struct {
Hash string `json:"hash"`
Height int64 `json:"height"`
PrevHash string `json:"prev_hash"`
Time int64 `json:"time"`
Transactions []string `json:"transactions"`
Hash string `json:"hash"`
Height int64 `json:"height"`
PrevHash string `json:"prev_hash"`
Time int64 `json:"time"`
Transactions []map[string]interface{} `json:"transactions"`
}

type Peer struct {
Expand Down

0 comments on commit dbd7026

Please sign in to comment.