@@ -40,6 +40,8 @@ export interface TransactionsBlockHeader {
40
40
prevBlockHash : Uint8Array ;
41
41
timestamp : Date ;
42
42
numTransactions : number ;
43
+ referenceTime : number ;
44
+ blockProposerAddress : Uint8Array ;
43
45
}
44
46
45
47
export interface ResultsBlockHeader {
@@ -50,6 +52,8 @@ export interface ResultsBlockHeader {
50
52
timestamp : Date ;
51
53
transactionsBlockHash : Uint8Array ;
52
54
numTransactionReceipts : number ;
55
+ referenceTime : number ;
56
+ blockProposerAddress : Uint8Array ;
53
57
}
54
58
55
59
export interface BlockTransaction {
@@ -182,6 +186,8 @@ export function decodeGetBlockResponse(buf: Uint8Array): GetBlockResponse {
182
186
prevBlockHash : transactionsBlockHeaderMsg . getBytes ( 3 ) ,
183
187
timestamp : Protocol . unixNanoToDate ( transactionsBlockHeaderMsg . getUint64 ( 4 ) ) ,
184
188
numTransactions : transactionsBlockHeaderMsg . getUint32 ( 7 ) ,
189
+ referenceTime : transactionsBlockHeaderMsg . getUint32 ( 9 ) ,
190
+ blockProposerAddress : transactionsBlockHeaderMsg . getBytes ( 8 )
185
191
} ,
186
192
resultsBlockHash : Hash . calcSha256 ( resultsBlockHeaderMsg . rawBuffer ( ) ) ,
187
193
resultsBlockHeader : {
@@ -192,6 +198,8 @@ export function decodeGetBlockResponse(buf: Uint8Array): GetBlockResponse {
192
198
timestamp : Protocol . unixNanoToDate ( resultsBlockHeaderMsg . getUint64 ( 4 ) ) ,
193
199
transactionsBlockHash : resultsBlockHeaderMsg . getBytes ( 7 ) ,
194
200
numTransactionReceipts : resultsBlockHeaderMsg . getUint32 ( 9 ) ,
201
+ blockProposerAddress : resultsBlockHeaderMsg . getBytes ( 11 ) ,
202
+ referenceTime : resultsBlockHeaderMsg . getUint32 ( 12 )
195
203
} ,
196
204
transactions : transactions ,
197
205
} ;
0 commit comments