[input-output-hk/cardano-sl] [CBR-375] Create transaction metadata for incoming transactions (#3428)

kderme commented on this pull request.

> @@ -140,22 +142,31 @@ isomorphicTo t1 t2 =
, t1 ^. txMetaAccountIx == t2 ^. txMetaAccountIx
]

+— This means TxMeta have same Inputs and TxId.
+txIdIsomorphic :: TxMeta -> TxMeta -> Bool
+txIdIsomorphic t1 t2 =
+ and [ t1 ^. txMetaId == t2 ^. txMetaId
+ , NonEmpty.sort (t1 ^. txMetaInputs) == NonEmpty.sort (t2 ^. txMetaInputs)
+ , t1 ^. txMetaOutputs == t2 ^. txMetaOutputs
+ ]

You’re right. I`ll add a new stricter equality for most Meta. I will keep this as a bare minimum to not throw error.