Skip to content

Commit

Permalink
node: Move new Governor status proto fields from Emitter to Chain
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsaigle committed Jul 30, 2024
1 parent 9cbc434 commit 07fa1f8
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 61 deletions.
6 changes: 3 additions & 3 deletions node/pkg/governor/governor_monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -657,15 +657,15 @@ func (gov *ChainGovernor) publishStatus(hb *gossipv1.Heartbeat, sendC chan<- []b
EmitterAddress: "0x" + ce.emitterAddr.String(),
TotalEnqueuedVaas: uint64(len(ce.pending)),
EnqueuedVaas: enqueuedVaas,
SmallTxNetNotionalValue: netUsage,
SmallTxOutgoingNotionalValue: smallTxNotional,
FlowCancelNotionalValue: flowCancelNotional,
}

chains = append(chains, &gossipv1.ChainGovernorStatus_Chain{
ChainId: uint32(ce.emitterChainId),
RemainingAvailableNotional: remaining,
Emitters: []*gossipv1.ChainGovernorStatus_Emitter{&emitter},
SmallTxNetNotionalValue: netUsage,
SmallTxOutgoingNotionalValue: smallTxNotional,
FlowCancelNotionalValue: flowCancelNotional,
})
}

Expand Down
110 changes: 55 additions & 55 deletions node/pkg/proto/gossip/v1/gossip.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions proto/gossip/v1/gossip.proto
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ message ChainGovernorStatus {
string emitter_address = 1; // human-readable hex-encoded (leading 0x)
uint64 total_enqueued_vaas = 2;
repeated EnqueuedVAA enqueued_vaas = 3; // Only the first 20 will be included.
int64 small_tx_net_notional_value = 4;
uint64 small_tx_outgoing_notional_value = 5;
uint64 flow_cancel_notional_value = 6;
}

message Chain {
uint32 chain_id = 1;
uint64 remaining_available_notional = 2;
repeated Emitter emitters = 3;
int64 small_tx_net_notional_value = 4;
uint64 small_tx_outgoing_notional_value = 5;
uint64 flow_cancel_notional_value = 6;
}

string node_name = 1;
Expand Down

0 comments on commit 07fa1f8

Please sign in to comment.