Skip to content
Snippets Groups Projects
Commit 36e23d01 authored by Josh Brooks's avatar Josh Brooks
Browse files

Add GetWrappedRound to instance level

parent 2a893f33
No related branches found
No related tags found
1 merge request!58Revert "Modify waiting lock"
...@@ -507,11 +507,16 @@ func (i *Instance) GetCmixGroup() *cyclic.Group { ...@@ -507,11 +507,16 @@ func (i *Instance) GetCmixGroup() *cyclic.Group {
return i.cmixGroup.Get() return i.cmixGroup.Get()
} }
// Get the round of a given ID // Get the round of a given ID as a roundInfo (protobuff)
func (i *Instance) GetRound(id id.Round) (*pb.RoundInfo, error) { func (i *Instance) GetRound(id id.Round) (*pb.RoundInfo, error) {
return i.roundData.GetRound(int(id)) return i.roundData.GetRound(int(id))
} }
// Get the round of a given ID as a ds.Round object
func (i *Instance) GetWrappedRound(id id.Round) (*ds.Round, error) {
return i.roundData.GetWrappedRound(int(id))
}
// Get an update ID // Get an update ID
func (i *Instance) GetRoundUpdate(updateID int) (*pb.RoundInfo, error) { func (i *Instance) GetRoundUpdate(updateID int) (*pb.RoundInfo, error) {
return i.roundUpdates.GetUpdate(updateID) return i.roundUpdates.GetUpdate(updateID)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment