Skip to content

Commit

Permalink
make Node.isPlayedBy public (digital-asset#4206)
Browse files Browse the repository at this point in the history
CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
remyhaemmerle-da authored and mergify[bot] committed Jan 24, 2020
1 parent 1a0fb13 commit 40ea33c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ object Node {
override def mapNodeId[Nid2](f: Nothing => Nid2): NodeCreate[Cid, Val] = this

override def requiredAuthorizers(): Set[Party] = signatories

}

object NodeCreate extends WithTxValue2[NodeCreate]
Expand Down Expand Up @@ -196,7 +197,7 @@ object Node {
}
}

private[transaction] def isReplayedBy[Cid: Equal, Val: Equal](
final def isReplayedBy[Cid: Equal, Val: Equal](
recorded: GenNode[Nothing, Cid, Val],
isReplayedBy: GenNode[Nothing, Cid, Val]): Boolean =
ScalazEqual.match2[recorded.type, isReplayedBy.type, Boolean](fallback = false) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ case class GenTransaction[Nid, Cid, +Val](
*
* @note This function is asymmetric.
*/
private[lf] def isReplayedBy[Nid2, Val2 >: Val](other: GenTransaction[Nid2, Cid, Val2])(
final def isReplayedBy[Nid2, Val2 >: Val](other: GenTransaction[Nid2, Cid, Val2])(
implicit ECid: Equal[Cid],
EVal: Equal[Val2]): Boolean =
compareForest(other)(Node.isReplayedBy(_, _))
Expand Down

0 comments on commit 40ea33c

Please sign in to comment.