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:
@@ -251,6 +251,22 @@ BOOST_AUTO_TEST_CASE(chained_pours)
|
||||
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;
|
||||
mtx.vpour.push_back(ptx1);
|
||||
|
||||
Reference in New Issue
Block a user