本文整理汇总了C++中accountframe::pointer::getMediumThreshold方法的典型用法代码示例。如果您正苦于以下问题:C++ pointer::getMediumThreshold方法的具体用法?C++ pointer::getMediumThreshold怎么用?C++ pointer::getMediumThreshold使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类accountframe::pointer
的用法示例。
在下文中一共展示了pointer::getMediumThreshold方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: delta
Asset idrCur = makeAsset(gateway, "IDR");
Asset usdCur = makeAsset(gateway, "USD");
// sets up gateway account
const int64_t gatewayPayment = minBalance2 + morePayment;
applyCreateAccountTx(app, root, gateway, rootSeq++, gatewayPayment);
SequenceNumber gateway_seq = getAccountSeqNum(gateway, app) + 1;
AccountFrame::pointer a1Account, rootAccount;
rootAccount = loadAccount(root, app);
a1Account = loadAccount(a1, app);
REQUIRE(rootAccount->getMasterWeight() == 1);
REQUIRE(rootAccount->getHighThreshold() == 0);
REQUIRE(rootAccount->getLowThreshold() == 0);
REQUIRE(rootAccount->getMediumThreshold() == 0);
REQUIRE(a1Account->getBalance() == paymentAmount);
REQUIRE(a1Account->getMasterWeight() == 1);
REQUIRE(a1Account->getHighThreshold() == 0);
REQUIRE(a1Account->getLowThreshold() == 0);
REQUIRE(a1Account->getMediumThreshold() == 0);
// root did 2 transactions at this point
REQUIRE(rootAccount->getBalance() ==
(100000000000000000 - paymentAmount - gatewayPayment - txfee * 2));
LedgerDelta delta(app.getLedgerManager().getCurrentLedgerHeader(),
app.getDatabase());
SECTION("Create account")
{
SECTION("Success")