Skip to content

Commit

Permalink
Add check for JoinSplit priority as calculated by CCoinsViewCache::Ge…
Browse files Browse the repository at this point in the history
…tPriority.

Signed-off-by: Daira Hopwood <[email protected]>
  • Loading branch information
daira committed Apr 13, 2017
1 parent ec19e8e commit 60b7410
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gtest/test_mempool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "core_io.h"
#include "primitives/transaction.h"
#include "txmempool.h"
#include "policy/fees.h"

// Fake the input of transaction 5295156213414ed77f6e538e7e8ebe14492156906b9fe995b242477818789364
// - 532639cc6bebed47c1c69ae36dd498c68a012e74ad12729adbd3dbb56f8f3f4a, 0
Expand Down Expand Up @@ -83,4 +84,6 @@ TEST(Mempool, PriorityStatsDoNotCrash) {

// Check it does not crash (ie. the death test fails)
EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(testPool.addUnchecked(tx.GetHash(), entry), ""), "");

EXPECT_EQ(dPriority, MAX_PRIORITY);
}

0 comments on commit 60b7410

Please sign in to comment.