mirror of
https://github.com/Xahau/xahaud.git
synced 2026-09-24 22:30:17 +00:00
fix
This commit is contained in:
@@ -243,9 +243,12 @@ public:
|
||||
{"reference_fee = " + fee,
|
||||
"account_reserve = " + a_res,
|
||||
"owner_reserve = " + o_res,
|
||||
"hook_gas_price = " + g_res});
|
||||
"hook_gas_price = 1000"});
|
||||
auto setup = setup_FeeVote(config);
|
||||
cfg->FEES = setup;
|
||||
cfg->section("voting") = config;
|
||||
// override hook gas price for doVoting
|
||||
cfg->section("voting").set("hook_gas_price", g_res);
|
||||
return cfg;
|
||||
});
|
||||
}
|
||||
@@ -3623,7 +3626,7 @@ public:
|
||||
HSFEE);
|
||||
env.close();
|
||||
|
||||
env(pay(bob, alice, XRP(1)), M("test float_compare"), fee(XRP(1)));
|
||||
env(pay(bob, alice, XRP(1)), M("test float_compare"), HSFEE);
|
||||
env.close();
|
||||
}
|
||||
}
|
||||
@@ -3953,7 +3956,7 @@ public:
|
||||
HSFEE);
|
||||
env.close();
|
||||
|
||||
env(pay(bob, alice, XRP(1)), M("test float_int"), fee(XRP(1)));
|
||||
env(pay(bob, alice, XRP(1)), M("test float_int"), HSFEE);
|
||||
env.close();
|
||||
}
|
||||
}
|
||||
@@ -13546,7 +13549,7 @@ public:
|
||||
// invoke the hook
|
||||
env(pay(caller, acc, XRP(1)),
|
||||
M("test hookcanemit 3"),
|
||||
fee(XRP(1)));
|
||||
fee(XRP(10)));
|
||||
env.close();
|
||||
|
||||
auto meta = env.meta();
|
||||
|
||||
@@ -50,6 +50,8 @@ setupConfigForUnitTests(Config& cfg)
|
||||
cfg.FEES.owner_reserve = XRP(50).value().xrp().drops();
|
||||
cfg.FEES.hook_gas_price = 1'000'000;
|
||||
|
||||
cfg["voting"].set("hook_gas_price", to_string(10'000));
|
||||
|
||||
cfg.overwrite(ConfigSection::nodeDatabase(), "type", "rwdb");
|
||||
cfg.overwrite(ConfigSection::nodeDatabase(), "path", "main");
|
||||
cfg.overwrite(SECTION_RELATIONAL_DB, "backend", "rwdb");
|
||||
|
||||
@@ -48,10 +48,12 @@ makeNetworkConfig(
|
||||
{"reference_fee = " + fee,
|
||||
"account_reserve = " + a_res,
|
||||
"owner_reserve = " + o_res,
|
||||
"hook_gas_price = " + g_res});
|
||||
"hook_gas_price = 1"});
|
||||
auto setup = setup_FeeVote(config);
|
||||
cfg->FEES = setup;
|
||||
cfg->section("voting") = config;
|
||||
// override hook gas price for doVoting
|
||||
cfg->section("voting").set("hook_gas_price", g_res);
|
||||
return cfg;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ makeNetworkConfig(
|
||||
std::string fee = "10",
|
||||
std::string a_res = "1000000",
|
||||
std::string o_res = "200000",
|
||||
std::string g_res = "1000000");
|
||||
std::string g_res = "100000");
|
||||
|
||||
std::unique_ptr<Config>
|
||||
makeNetworkVLConfig(
|
||||
@@ -45,7 +45,7 @@ makeNetworkVLConfig(
|
||||
std::string fee = "10",
|
||||
std::string a_res = "1000000",
|
||||
std::string o_res = "200000",
|
||||
std::string g_res = "1000000");
|
||||
std::string g_res = "100000");
|
||||
|
||||
std::unique_ptr<Config>
|
||||
makeGenesisConfig(
|
||||
@@ -55,7 +55,7 @@ makeGenesisConfig(
|
||||
std::string fee = "10",
|
||||
std::string a_res = "1000000",
|
||||
std::string o_res = "200000",
|
||||
std::string g_res = "1000000",
|
||||
std::string g_res = "100000",
|
||||
uint32_t ledgerID = 0);
|
||||
|
||||
} // namespace network
|
||||
|
||||
Reference in New Issue
Block a user