Skip to content

Commit

Permalink
update shards count in dal commitment status (baking-bad#23)
Browse files Browse the repository at this point in the history
* Add ShardsAttested and Attested (bool) field in DalCommitmentStatus

* update cumulative attestations received from all bakers for a Dal commitment

* Add API endpoints for cumulative DAL commitment status

* Use cache services for dalcommitmentstatus in UpdateDalCommitmentStatus

* Cache the dal attestation data for this level.

* Revert status update made to DalCommitmentStatus due to this block.
  • Loading branch information
ajinkyaraj-23 authored Sep 2, 2024
1 parent 714ab6a commit ffc0c6e
Show file tree
Hide file tree
Showing 13 changed files with 7,375 additions and 80 deletions.
10 changes: 10 additions & 0 deletions Tzkt.Api/Models/Dal/DalCommitment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,15 @@ public class DalCommitment
/// Information about the account who has published the commitment.
/// </summary>
public Alias Publisher { get; set; }

/// <summary>
/// Total number of Shards attested by the delegates for this commitment
/// </summary>
public int ShardsAttested { get; set; }

/// <summary>
/// Attestation successful for the commitment
/// </summary>
public bool Attested { get; set; }
}
}
229 changes: 154 additions & 75 deletions Tzkt.Api/Repositories/DalRepository.cs

Large diffs are not rendered by default.

Loading

0 comments on commit ffc0c6e

Please sign in to comment.