Add test to ensure parent treestates only can appear earlier in the transaction or in the global state, not later.
This commit is contained in:
parent
10c33f0f87
commit
49ab032b5f
|
@ -251,6 +251,22 @@ BOOST_AUTO_TEST_CASE(chained_pours)
|
||||||
BOOST_CHECK(!cache.HavePourRequirements(mtx));
|
BOOST_CHECK(!cache.HavePourRequirements(mtx));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
CMutableTransaction mtx;
|
||||||
|
mtx.vpour.push_back(ptx2);
|
||||||
|
mtx.vpour.push_back(ptx1);
|
||||||
|
|
||||||
|
BOOST_CHECK(!cache.HavePourRequirements(mtx));
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
CMutableTransaction mtx;
|
||||||
|
mtx.vpour.push_back(ptx1);
|
||||||
|
mtx.vpour.push_back(ptx2);
|
||||||
|
|
||||||
|
BOOST_CHECK(cache.HavePourRequirements(mtx));
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
CMutableTransaction mtx;
|
CMutableTransaction mtx;
|
||||||
mtx.vpour.push_back(ptx1);
|
mtx.vpour.push_back(ptx1);
|
||||||
|
|
Loading…
Reference in New Issue