From 60b7410ccee26524c09c785520168c86e18701bb Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Thu, 13 Apr 2017 21:53:33 +0100 Subject: [PATCH] Add check for JoinSplit priority as calculated by CCoinsViewCache::GetPriority. Signed-off-by: Daira Hopwood --- src/gtest/test_mempool.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gtest/test_mempool.cpp b/src/gtest/test_mempool.cpp index 328252d51..88b0e2593 100644 --- a/src/gtest/test_mempool.cpp +++ b/src/gtest/test_mempool.cpp @@ -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 @@ -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); }