mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Use structured bindings in some places:
Most of the new uses either: * Replace some uses of `tie` * bind to pairs when iterating through maps
This commit is contained in:
@@ -104,12 +104,10 @@ scaleFeeLoad(std::uint64_t fee, LoadFeeTrack const& feeTrack,
|
||||
{
|
||||
if (fee == 0)
|
||||
return fee;
|
||||
std::uint32_t feeFactor;
|
||||
std::uint32_t uRemFee;
|
||||
{
|
||||
// Collect the fee rates
|
||||
std::tie(feeFactor, uRemFee) = feeTrack.getScalingFactors();
|
||||
}
|
||||
|
||||
// Collect the fee rates
|
||||
auto [feeFactor, uRemFee] = feeTrack.getScalingFactors();
|
||||
|
||||
// Let privileged users pay the normal fee until
|
||||
// the local load exceeds four times the remote.
|
||||
if (bUnlimited && (feeFactor > uRemFee) && (feeFactor < (4 * uRemFee)))
|
||||
|
||||
Reference in New Issue
Block a user