@@ -223,23 +223,23 @@ BOOST_AUTO_TEST_CASE(electrum__blockchain_scripthash_get_history__confirmed_and_
223223 const auto & tx1 = history.at (0 ).as_object ();
224224 REQUIRE_NO_THROW_TRUE (tx1.at (" height" ).is_int64 ());
225225 REQUIRE_NO_THROW_TRUE (tx1.at (" tx_hash" ).is_string ());
226- BOOST_CHECK (!tx1.contains (" fee" ));
226+ BOOST_REQUIRE (!tx1.contains (" fee" ));
227227 BOOST_REQUIRE_EQUAL (tx1.at (" height" ).as_int64 (), 10 );
228228 BOOST_REQUIRE_EQUAL (tx1.at (" tx_hash" ).as_string (), encode_hash (hash1));
229229
230230 const auto hash2 = test::bogus_block11.transactions_ptr ()->at (0 )->hash (false );
231231 const auto & tx2 = history.at (1 ).as_object ();
232232 REQUIRE_NO_THROW_TRUE (tx2.at (" height" ).is_int64 ());
233233 REQUIRE_NO_THROW_TRUE (tx2.at (" tx_hash" ).is_string ());
234- BOOST_CHECK_EQUAL (tx2.at (" fee" ).as_int64 (), floored_subtract (5'000'000'000 + 5'000'000'000 , 0x10 + 0x11 + 0x12 + 0x13 + 0x14 ));
234+ BOOST_REQUIRE_EQUAL (tx2.at (" fee" ).as_int64 (), floored_subtract (5'000'000'000 + 5'000'000'000 , 0x10 + 0x11 + 0x12 + 0x13 + 0x14 ));
235235 BOOST_REQUIRE_EQUAL (tx2.at (" height" ).as_int64 (), 0 ); // rooted
236236 BOOST_REQUIRE_EQUAL (tx2.at (" tx_hash" ).as_string (), encode_hash (hash2));
237237
238238 const auto hash3 = test::bogus_block12.transactions_ptr ()->at (0 )->hash (false );
239239 const auto & tx3 = history.at (2 ).as_object ();
240240 REQUIRE_NO_THROW_TRUE (tx3.at (" height" ).is_int64 ());
241241 REQUIRE_NO_THROW_TRUE (tx3.at (" tx_hash" ).is_string ());
242- BOOST_CHECK_EQUAL (tx3.at (" fee" ).as_int64 (), floored_subtract (0x10 + 0x11 , 0x0a ));
242+ BOOST_REQUIRE_EQUAL (tx3.at (" fee" ).as_int64 (), floored_subtract (0x10 + 0x11 , 0x0a ));
243243 BOOST_REQUIRE_EQUAL (tx3.at (" height" ).as_int64 (), -1 ); // not rooted
244244 BOOST_REQUIRE_EQUAL (tx3.at (" tx_hash" ).as_string (), encode_hash (hash3));
245245}
@@ -313,15 +313,15 @@ BOOST_AUTO_TEST_CASE(electrum__blockchain_scripthash_get_mempool__confirmed_and_
313313 const auto & tx1 = history.at (0 ).as_object ();
314314 REQUIRE_NO_THROW_TRUE (tx1.at (" height" ).is_int64 ());
315315 REQUIRE_NO_THROW_TRUE (tx1.at (" tx_hash" ).is_string ());
316- BOOST_CHECK_EQUAL (tx1.at (" fee" ).as_int64 (), floored_subtract (5'000'000'000 + 5'000'000'000 , 0x10 + 0x11 + 0x12 + 0x13 + 0x14 ));
316+ BOOST_REQUIRE_EQUAL (tx1.at (" fee" ).as_int64 (), floored_subtract (5'000'000'000 + 5'000'000'000 , 0x10 + 0x11 + 0x12 + 0x13 + 0x14 ));
317317 BOOST_REQUIRE_EQUAL (tx1.at (" height" ).as_int64 (), 0 ); // rooted
318318 BOOST_REQUIRE_EQUAL (tx1.at (" tx_hash" ).as_string (), encode_hash (hash1));
319319
320320 const auto hash2 = test::bogus_block12.transactions_ptr ()->at (0 )->hash (false );
321321 const auto & tx2 = history.at (1 ).as_object ();
322322 REQUIRE_NO_THROW_TRUE (tx2.at (" height" ).is_int64 ());
323323 REQUIRE_NO_THROW_TRUE (tx2.at (" tx_hash" ).is_string ());
324- BOOST_CHECK_EQUAL (tx1.at (" fee" ).as_int64 (), floored_subtract (5'000'000'000 + 5'000'000'000 , 0x10 + 0x11 + 0x12 + 0x13 + 0x14 ));
324+ BOOST_REQUIRE_EQUAL (tx1.at (" fee" ).as_int64 (), floored_subtract (5'000'000'000 + 5'000'000'000 , 0x10 + 0x11 + 0x12 + 0x13 + 0x14 ));
325325 BOOST_REQUIRE_EQUAL (tx2.at (" height" ).as_int64 (), -1 ); // not rooted
326326 BOOST_REQUIRE_EQUAL (tx2.at (" tx_hash" ).as_string (), encode_hash (hash2));
327327}
0 commit comments