Skip to content

Commit

Permalink
Merge pull request lavanet#1280 from lavanet/CNS-922-add-provider-epo…
Browse files Browse the repository at this point in the history
…ch-and-latest-block-to-stake-entry

CNS-922: sets stake entry block report
  • Loading branch information
Yaroms authored Mar 11, 2024
2 parents e49a59a + 0cb7244 commit d538902
Show file tree
Hide file tree
Showing 3 changed files with 317 additions and 40 deletions.
9 changes: 9 additions & 0 deletions proto/lavanet/lava/epochstorage/stake_entry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,13 @@ message StakeEntry {
cosmos.base.v1beta1.Coin delegate_limit = 10 [(gogoproto.nullable) = false]; // delegation limit
uint64 delegate_commission = 11; // delegation commission (precentage 0-100)
uint64 last_change = 12;
BlockReport block_report = 13;
}

// BlockReport holds the most up-to-date info regarding blocks of the provider
// It is set in the relay payment TX logic
// used by the consumer to calculate the provider's sync score
message BlockReport {
uint64 epoch = 1;
uint64 latest_block = 2;
}
Loading

0 comments on commit d538902

Please sign in to comment.