mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Enforce TransferRate Maximum (RIPD-1201):
Sets a maximum TransferRate value of 100%. Squashes any
requested TransferRate over the limit to the max value.
This change requires an amendment ("fix1201") in rippled.
Adds test functionality for enabling an amendment mid-test.
Additionally, adds tests utilizing varying transfer rates both
with and without the amendment enabled.
This commit is contained in:
@@ -492,6 +492,14 @@ Env::do_rpc(std::vector<std::string> const& args)
|
||||
return response;
|
||||
}
|
||||
|
||||
void
|
||||
Env::enableFeature(uint256 const feature)
|
||||
{
|
||||
// Env::close() must be called for feature
|
||||
// enable to take place.
|
||||
app().config().features.insert(feature);
|
||||
}
|
||||
|
||||
} // jtx
|
||||
|
||||
} // test
|
||||
|
||||
Reference in New Issue
Block a user