[EOSIO/eos] add testcase for #2195 (security delays) (#2417)

brianjohnson5972 commented on this pull request.

> +
+ chain.produce_blocks();
+
+ liquid_balance = get_currency_balance(chain, N(tester));
+ BOOST_REQUIRE_EQUAL(asset::from_string(«100.0000 CUR»), liquid_balance);
+ liquid_balance = get_currency_balance(chain, N(tester2));
+ BOOST_REQUIRE_EQUAL(asset::from_string(«0.0000 CUR»), liquid_balance);
+
+ chain.produce_blocks(16);
+
+ liquid_balance = get_currency_balance(chain, N(tester));
+ BOOST_REQUIRE_EQUAL(asset::from_string(«100.0000 CUR»), liquid_balance);
+ liquid_balance = get_currency_balance(chain, N(tester2));
+ BOOST_REQUIRE_EQUAL(asset::from_string(«0.0000 CUR»), liquid_balance);
+
+ // this transaction will be delayed 20 blocks

(I am basing my statement off of the exception you are expecting for the unlink above)

Добавить комментарий