From ecd8ca5dbee9c12bc767864d8f8cf80b33734007 Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Wed, 8 Jun 2016 09:15:44 -0600 Subject: [PATCH] Minor changes to coins_tests. --- src/test/coins_tests.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp index c31bb907f..ce9b7eeb2 100644 --- a/src/test/coins_tests.cpp +++ b/src/test/coins_tests.cpp @@ -151,9 +151,9 @@ uint256 appendRandomCommitment(ZCIncrementalMerkleTree &tree) libzcash::Note note(addr.a_pk, 0, uint256(), uint256()); - tree.append(note.cm()); - - return note.cm(); + auto cm = note.cm(); + tree.append(cm); + return cm; } BOOST_FIXTURE_TEST_SUITE(coins_tests, BasicTestingSetup) @@ -252,6 +252,8 @@ BOOST_AUTO_TEST_CASE(chained_pours) } { + // ptx2 is trying to anchor to ptx1 but ptx1 + // appears afterwards -- not a permitted ordering CMutableTransaction mtx; mtx.vpour.push_back(ptx2); mtx.vpour.push_back(ptx1);