mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
@@ -151,7 +151,17 @@ doGatewayBalances(Context const& context)
|
|||||||
bal = -balance;
|
bal = -balance;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
bal -= balance;
|
{ // when overflow happens, insert a flag to indicate
|
||||||
|
// https://github.com/XRPLF/rippled/pull/4355
|
||||||
|
try
|
||||||
|
{
|
||||||
|
bal -= balance;
|
||||||
|
}
|
||||||
|
catch (std::runtime_error& e)
|
||||||
|
{
|
||||||
|
response["overflow"] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user