Skip to content

Commit

Permalink
wip bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolie-ssv committed Feb 1, 2025
1 parent eec9c90 commit a7a9854
Show file tree
Hide file tree
Showing 4 changed files with 706 additions and 193 deletions.
8 changes: 3 additions & 5 deletions api/handlers/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ type round struct {

type roundChange struct {
message
PreparedRound uint8 `json:"preparedRound"`
PreparedRound uint64 `json:"preparedRound"`
PrepareMessages []message `json:"prepareMessages"`
}

type message struct {
Round uint8 `json:"round"`
Round uint64 `json:"round"`
BeaconRoot phase0.Root `json:"beaconRoot"`
Signer spectypes.OperatorID `json:"signer"`
ReceivedTime uint64 `json:"time"`
Expand Down Expand Up @@ -67,9 +67,7 @@ func toMessageTrace(m []*model.MessageTrace) (out []message) {
func toRoundTrace(r []*model.RoundTrace) (out []round) {
for _, rt := range r {
out = append(out, round{
Proposer: rt.Proposer,
ProposalRoot: rt.ProposalRoot,
ProposalReceivedTime: rt.ProposalReceivedTime,
Proposer: rt.Proposer,
})
}
return
Expand Down
6 changes: 3 additions & 3 deletions exporter/v2/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type DutyTrace struct {
type DecidedTrace struct {
MessageTrace
// Value []byte // full data needed?
Signers []spectypes.OperatorID
Signers []spectypes.OperatorID `ssz-max:"13"`
}

type RoundTrace struct {
Expand All @@ -58,7 +58,7 @@ type RoundTrace struct {

type RoundChangeTrace struct {
MessageTrace
PreparedRound uint8
PreparedRound uint64
PrepareMessages []*MessageTrace `ssz-max:"13"`
}

Expand All @@ -69,7 +69,7 @@ type ProposalTrace struct {
}

type MessageTrace struct {
Round uint8 // same for
Round uint64 // same for
BeaconRoot phase0.Root `ssz-size:"32"`
Signer spectypes.OperatorID
ReceivedTime uint64 // TODO fix time
Expand Down
Loading

0 comments on commit a7a9854

Please sign in to comment.