@@ -11,6 +11,7 @@ export interface BlockData {
1111 timestamp : number ;
1212 number : number ;
1313 author : Address ;
14+ lastCommittedValidators : string [ ] ;
1415 extraData : number [ ] ;
1516 transactionsRoot : H256 ;
1617 stateRoot : H256 ;
@@ -24,6 +25,7 @@ export interface BlockJSON {
2425 timestamp : number ;
2526 number : number ;
2627 author : string ;
28+ lastCommittedValidators : string [ ] ;
2729 extraData : number [ ] ;
2830 transactionsRoot : string ;
2931 stateRoot : string ;
@@ -42,6 +44,7 @@ export class Block {
4244 timestamp,
4345 number,
4446 author,
47+ lastCommittedValidators,
4548 extraData,
4649 transactionsRoot,
4750 stateRoot,
@@ -55,6 +58,7 @@ export class Block {
5558 timestamp,
5659 number,
5760 author : Address . fromString ( author ) ,
61+ lastCommittedValidators,
5862 extraData,
5963 transactionsRoot : new H256 ( transactionsRoot ) ,
6064 stateRoot : new H256 ( stateRoot ) ,
@@ -68,6 +72,7 @@ export class Block {
6872 public timestamp : number ;
6973 public number : number ;
7074 public author : Address ;
75+ public lastCommittedValidators : string [ ] ;
7176 public extraData : number [ ] ;
7277 public transactionsRoot : H256 ;
7378 public stateRoot : H256 ;
@@ -82,6 +87,7 @@ export class Block {
8287 timestamp,
8388 number,
8489 author,
90+ lastCommittedValidators,
8591 extraData,
8692 transactionsRoot,
8793 stateRoot,
@@ -94,6 +100,7 @@ export class Block {
94100 this . timestamp = timestamp ;
95101 this . number = number ;
96102 this . author = author ;
103+ this . lastCommittedValidators = lastCommittedValidators ;
97104 this . extraData = extraData ;
98105 this . transactionsRoot = transactionsRoot ;
99106 this . stateRoot = stateRoot ;
@@ -109,6 +116,7 @@ export class Block {
109116 timestamp,
110117 number,
111118 author,
119+ lastCommittedValidators,
112120 extraData,
113121 transactionsRoot,
114122 stateRoot,
@@ -122,6 +130,7 @@ export class Block {
122130 timestamp,
123131 number,
124132 author : author . toString ( ) ,
133+ lastCommittedValidators : [ ...lastCommittedValidators ] ,
125134 extraData : [ ...extraData ] ,
126135 transactionsRoot : transactionsRoot . toJSON ( ) ,
127136 stateRoot : stateRoot . toJSON ( ) ,
@@ -138,6 +147,7 @@ export class Block {
138147 timestamp,
139148 number,
140149 author,
150+ lastCommittedValidators,
141151 extraData,
142152 transactionsRoot,
143153 stateRoot,
@@ -154,6 +164,7 @@ export class Block {
154164 blockHeader . push ( nextValidatorSetHash . toEncodeObject ( ) ) ;
155165 blockHeader . push ( number ) ;
156166 blockHeader . push ( timestamp ) ;
167+ blockHeader . push ( lastCommittedValidators ) ;
157168 blockHeader . push ( `0x${ Buffer . from ( extraData ) . toString ( "hex" ) } ` ) ;
158169 blockHeader . push (
159170 ...seal . map ( s => `0x${ Buffer . from ( s ) . toString ( "hex" ) } ` )
0 commit comments