Skip to content

Commit

Permalink
add test for validateCoinbaseTx
Browse files Browse the repository at this point in the history
  • Loading branch information
fluency03 committed Apr 27, 2018
1 parent 048ab54 commit abfbb20
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit abfbb20

Please sign in to comment.