File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -73,16 +73,11 @@ type TunaV2State struct {
73
73
LeadingZeros int64
74
74
DifficultyNumber int64
75
75
EpochTime int64
76
- RealTimeNow int64
77
- Interlink [][]byte
78
- Extra any
76
+ CurrentPosixTime int64
77
+ MerkleRoot []byte
79
78
}
80
79
81
80
func (t * TunaV2State ) MarshalCBOR () ([]byte , error ) {
82
- var tmpInterlink []any
83
- for _ , item := range t .Interlink {
84
- tmpInterlink = append (tmpInterlink , item )
85
- }
86
81
tmp := cbor .NewConstructor (
87
82
0 ,
88
83
cbor.IndefLengthList {
@@ -91,9 +86,8 @@ func (t *TunaV2State) MarshalCBOR() ([]byte, error) {
91
86
t .LeadingZeros ,
92
87
t .DifficultyNumber ,
93
88
t .EpochTime ,
94
- t .RealTimeNow ,
95
- cbor .IndefLengthList (tmpInterlink ),
96
- t .Extra ,
89
+ t .CurrentPosixTime ,
90
+ t .MerkleRoot ,
97
91
},
98
92
)
99
93
return cbor .Encode (& tmp )
You can’t perform that action at this time.
0 commit comments