diff --git a/server/app/com/xsn/explorer/models/Transaction.scala b/server/app/com/xsn/explorer/models/Transaction.scala index 06d720c..7d1d515 100644 --- a/server/app/com/xsn/explorer/models/Transaction.scala +++ b/server/app/com/xsn/explorer/models/Transaction.scala @@ -6,7 +6,13 @@ case class Transaction( time: Long, size: Size, inputs: List[Transaction.Input], - outputs: List[Transaction.Output]) + outputs: List[Transaction.Output]) { + + require( + outputs.forall(_.txid == id), + "There are outputs that having a different txid" + ) +} object Transaction {