Skip to content
Snippets Groups Projects
Commit ebf5afa0 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

added ReplayCHannelFromPrettyPrint

parent 2a53a7ef
Branches
Tags
3 merge requests!510Release,!419rewrote the health tracker to both consider if there are waiting rounds and...,!340Project/channels
...@@ -363,6 +363,21 @@ func (cm *ChannelsManager) ReplayChannel(marshalledChanId []byte) error { ...@@ -363,6 +363,21 @@ func (cm *ChannelsManager) ReplayChannel(marshalledChanId []byte) error {
return cm.api.ReplayChannel(chanId) return cm.api.ReplayChannel(chanId)
} }
// ReplayChannelFromPrettyPrint replays all messages from the channel within the network's
// memory (~3 weeks) over the event model.
//
// Parameters:
// - marshalledChanId - A JSON marshalled channel ID ([id.ID]).
func (cm *ChannelsManager) ReplayChannelFromPrettyPrint(prettyPrint string) error {
c, _, err := getChannelInfo(prettyPrint)
if err != nil {
return err
}
// Replay channel
return cm.api.ReplayChannel(c.ReceptionID)
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// Channel Sending Methods & Reports // // Channel Sending Methods & Reports //
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment