Skip to content

Commit

Permalink
Remove msg.hash field
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksej-paschenko committed Dec 5, 2023
1 parent 7d61e9b commit 67ea9d1
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 71 deletions.
5 changes: 0 additions & 5 deletions api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3546,10 +3546,6 @@
"format": "int64",
"type": "integer"
},
"hash": {
"example": "97264395BD65A255A429B11326C84128B7D70FFED7949ABAE3036D506BA38621",
"type": "string"
},
"ihr_disabled": {
"example": true,
"type": "boolean"
Expand Down Expand Up @@ -3596,7 +3592,6 @@
},
"required": [
"msg_type",
"hash",
"created_lt",
"ihr_disabled",
"bounce",
Expand Down
4 changes: 0 additions & 4 deletions api/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2967,7 +2967,6 @@ components:
type: object
required:
- msg_type
- hash
- created_lt
- ihr_disabled
- bounce
Expand All @@ -2985,9 +2984,6 @@ components:
- int_msg
- ext_in_msg
- ext_out_msg
hash:
type: string
example: 97264395BD65A255A429B11326C84128B7D70FFED7949ABAE3036D506BA38621
created_lt:
type: integer
format: int64
Expand Down
1 change: 0 additions & 1 deletion pkg/api/blockchain_converters.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ func convertMsgType(msgType core.MsgType) oas.MessageMsgType {
func convertMessage(m core.Message, book addressBook) oas.Message {
msg := oas.Message{
MsgType: convertMsgType(m.MsgType),
Hash: m.Hash.Hex(),
CreatedLt: int64(m.CreatedLt),
IhrDisabled: m.IhrDisabled,
Bounce: m.Bounce,
Expand Down
3 changes: 0 additions & 3 deletions pkg/core/converters.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ func ConvertMessage(message tlb.Message, txLT uint64) (Message, error) {
Destination: dest,
},
MsgType: IntMsg,
Hash: tongo.Bits256(message.Hash()),
IhrDisabled: info.IhrDisabled,
Bounce: info.Bounce,
Bounced: info.Bounced,
Expand All @@ -330,7 +329,6 @@ func ConvertMessage(message tlb.Message, txLT uint64) (Message, error) {
Destination: dest,
},
MsgType: ExtInMsg,
Hash: tongo.Bits256(message.Hash()),
SourceExtern: externalAddressFromTlb(info.Src),
ImportFee: int64(info.ImportFee),
Body: body,
Expand All @@ -350,7 +348,6 @@ func ConvertMessage(message tlb.Message, txLT uint64) (Message, error) {
Source: source,
},
MsgType: ExtOutMsg,
Hash: tongo.Bits256(message.Hash()),
DestinationExtern: externalAddressFromTlb(info.Dest),
Body: body,
DecodedBody: decodedBody,
Expand Down
2 changes: 0 additions & 2 deletions pkg/core/testdata/convert-tx-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"Source": "0:6ccd325a858c379693fae2bcaab1c2906831a4e10a6c3bb44ee8b615bca1d220",
"Destination": "0:6dcb8357c6bef52b43f0f681d976f5a46068ae195cb95f7a959d25c71b0cac6c",
"MsgType": "IntMsg",
"Hash": "ec658106d3196e2ae0a2471ff8a36f9ee304c3b035862f184791f3f1097de72d",
"SourceExtern": null,
"DestinationExtern": null,
"IhrDisabled": true,
Expand All @@ -33,7 +32,6 @@
"Source": "0:6dcb8357c6bef52b43f0f681d976f5a46068ae195cb95f7a959d25c71b0cac6c",
"Destination": "0:e185f22dd230150f2a9d6e9d2bf833b5c03d6215bdfd031d2691f8b835dd99de",
"MsgType": "IntMsg",
"Hash": "81a3c7682efc9187b59f210432169d34e4f088fa70994b0c6a5f893f6a90d896",
"SourceExtern": null,
"DestinationExtern": null,
"IhrDisabled": true,
Expand Down
1 change: 0 additions & 1 deletion pkg/core/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ const (
type Message struct {
MessageID
MsgType MsgType
Hash tongo.Bits256
SourceExtern *ExternalAddress
DestinationExtern *ExternalAddress
IhrDisabled bool
Expand Down
71 changes: 27 additions & 44 deletions pkg/oas/oas_json_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions pkg/oas/oas_schemas_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 67ea9d1

Please sign in to comment.