Skip to content

Commit

Permalink
log double spending in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
catena2w committed Jun 9, 2016
1 parent a88adb3 commit 09b8c88
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -124,6 +124,9 @@ with TransactionTestingCommons {
(trans, valid)
}
state.validate(trans).nonEmpty shouldBe true
if(valid.size >= trans.size) {
log.error(s"Double spending: $trans | $valid | ${state.asInstanceOf[BalanceSheet].balance(trans.head.sender.address)}")
}
valid.size should be < trans.size

waitGenerationOfBlocks(2)
Expand Down

0 comments on commit 09b8c88

Please sign in to comment.