message: Add unit tests for CZerocoinStateV3::state.GetMempoolConflictingTxHash
diff: -#include "main.h"
  -#include "stdlib.h"
  -
  -#include "../zerocoin_v3.h"
  -#include "../boost/test/unit_test.hpp"
  #include "../libzerocoin/sigma/Params.h"
  #include "../libzerocoin/sigma/CoinSpend.h"
  #include "../libzerocoin/sigma/Coin.h"
  +#include "../main.h"
  +#include "../secp256k1/include/Scalar.h"
  +#include "../zerocoin_v3.h"
  +
  +#include <boost/test/unit_test.hpp>
  +
  +#include <stdlib.h>
  BOOST_AUTO_TEST_SUITE(sigma_state_test)
  @@ -669,4 +671,27 @@ BOOST_AUTO_TEST_CASE(zerocoin_sigma_removeblock_remove)
  zerocoinState->Reset();
  }
  +BOOST_AUTO_TEST_CASE(getmempoolconflictingtxhash_added_no)
  +{
  + CZerocoinStateV3 state;
  +
  + secp_primitives::Scalar serial;
  + serial.randomize();
  +
  + BOOST_TEST(state.GetMempoolConflictingTxHash(serial) == uint256());
  +}
  +
  +BOOST_AUTO_TEST_CASE(getmempoolconflictingtxhash_added_yes)
  +{
  + CZerocoinStateV3 state;
  +
  + secp_primitives::Scalar serial;
  + serial.randomize();
  +
  + auto txid = uint256S("c8cdacf6b51275a3de9496073c75708abde26cb2f6cb164e0a1a0ed942c3c6e7");
  +
  + BOOST_TEST(state.AddSpendToMempool(serial, txid));
  + BOOST_TEST(state.GetMempoolConflictingTxHash(serial) == txid);
  +}
  +
  BOOST_AUTO_TEST_SUITE_END()
  