@@ -25,6 +25,7 @@ type Application struct {
2525 TemplateURI string `json:"-"`
2626 EpochLength uint64 `json:"epoch_length"`
2727 DataAvailability []byte `json:"data_availability"`
28+ DaveConsensus bool `json:"dave_consensus"`
2829 State ApplicationState `json:"state"`
2930 Reason * string `json:"reason"`
3031 IInputBoxBlock uint64 `json:"iinputbox_block"`
@@ -439,6 +440,9 @@ type Epoch struct {
439440 Index uint64 `sql:"primary_key" json:"index"`
440441 FirstBlock uint64 `json:"first_block"`
441442 LastBlock uint64 `json:"last_block"`
443+ InputIndexLowerBound uint64 `json:"input_index_lower_bound"`
444+ InputIndexUpperBound uint64 `json:"input_index_upper_bound"`
445+ MachineHash * common.Hash `json:"machine_hash"`
442446 ClaimHash * common.Hash `json:"claim_hash"`
443447 ClaimTransactionHash * common.Hash `json:"claim_transaction_hash"`
444448 Status EpochStatus `json:"status"`
@@ -452,17 +456,21 @@ func (e *Epoch) MarshalJSON() ([]byte, error) {
452456 type Alias Epoch
453457 // Define a new structure that embeds the alias but overrides the hex fields.
454458 aux := & struct {
455- Index string `json:"index"`
456- FirstBlock string `json:"first_block"`
457- LastBlock string `json:"last_block"`
458- VirtualIndex string `json:"virtual_index"`
459+ Index string `json:"index"`
460+ FirstBlock string `json:"first_block"`
461+ LastBlock string `json:"last_block"`
462+ InputIndexLowerBound string `json:"input_index_lower_bound"`
463+ InputIndexUpperBound string `json:"input_index_upper_bound"`
464+ VirtualIndex string `json:"virtual_index"`
459465 * Alias
460466 }{
461- Index : fmt .Sprintf ("0x%x" , e .Index ),
462- FirstBlock : fmt .Sprintf ("0x%x" , e .FirstBlock ),
463- LastBlock : fmt .Sprintf ("0x%x" , e .LastBlock ),
464- VirtualIndex : fmt .Sprintf ("0x%x" , e .VirtualIndex ),
465- Alias : (* Alias )(e ),
467+ Index : fmt .Sprintf ("0x%x" , e .Index ),
468+ FirstBlock : fmt .Sprintf ("0x%x" , e .FirstBlock ),
469+ LastBlock : fmt .Sprintf ("0x%x" , e .LastBlock ),
470+ InputIndexLowerBound : fmt .Sprintf ("0x%x" , e .InputIndexLowerBound ),
471+ InputIndexUpperBound : fmt .Sprintf ("0x%x" , e .InputIndexUpperBound ),
472+ VirtualIndex : fmt .Sprintf ("0x%x" , e .VirtualIndex ),
473+ Alias : (* Alias )(e ),
466474 }
467475 return json .Marshal (aux )
468476}
0 commit comments