[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Commit

Permalink
refactor models
Browse files Browse the repository at this point in the history
Signed-off-by: Author <vadiminshakov@gmail.com>
  • Loading branch information
vadiminshakov committed Apr 20, 2020
1 parent 715f196 commit 8cf5127
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 156 deletions.
14 changes: 9 additions & 5 deletions models/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,18 @@ type Chaincode struct {
}

type Block struct {
BlockHash string `json:"blockhash"`
Blocknum uint64 `json:"blocknum"`
Tx []Tx `json:"txs"`
ChannelId string `json:"channelid" bson:"ChannelId"`
BlockHash string `json:"blockhash"`
PreviousHash string `json:"previoushash"`
Blocknum uint64 `json:"blocknum"`
Txs []Tx `json:"txs"`
Time int64 `json:"time" bson:"Time"`
}

type Tx struct {
Txid string `json:"txid"`
KW []KW
Txid string `json:"txid"`
KW []KW
ValidationCode int32 `json:"validationcode"`
}

type KW struct {
Expand Down
Loading

0 comments on commit 8cf5127

Please sign in to comment.