From abfbb208e00a0e89c33d6e9b6fe51a7e126b933d Mon Sep 17 00:00:00 2001 From: fluency03 Date: Fri, 27 Apr 2018 18:30:58 +0100 Subject: [PATCH] add test for validateCoinbaseTx --- .../scala/com/fluency03/blockchain/core/TransactionTest.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/scala/com/fluency03/blockchain/core/TransactionTest.scala b/src/test/scala/com/fluency03/blockchain/core/TransactionTest.scala index 3767fbe..c8e5c01 100644 --- a/src/test/scala/com/fluency03/blockchain/core/TransactionTest.scala +++ b/src/test/scala/com/fluency03/blockchain/core/TransactionTest.scala @@ -31,6 +31,8 @@ class TransactionTest extends FlatSpec with Matchers { val json = expectedGenesisBlock.transactions.head.toJson genesisTx.toJson shouldEqual json parse(genesisTx.toString) shouldEqual json + + validateCoinbaseTx(genesisTx, 0) } "A Transaction" should "be able to add TxIn(s) and keep immutability." in {