mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
fix: trust line RPC no ripple flag (#5345)
The Trustline RPC `no_ripple` flag gets set depending on `lsfDefaultRipple` flag, which is not a flag of a trustline but of the account root. The `lsfDefaultRipple` flag does not provide any insight if this particular trust line has `lsfLowNoRipple` or `lsfHighNoRipple` flag set, so it should not be used here at all. This change simplifies the logic.
This commit is contained in:
@@ -250,6 +250,10 @@ public:
|
||||
gw1.human() + R"("})");
|
||||
BEAST_EXPECT(lines[jss::result][jss::lines].isArray());
|
||||
BEAST_EXPECT(lines[jss::result][jss::lines].size() == 26);
|
||||
|
||||
// Check no ripple is not set for trustlines between alice and gw1
|
||||
auto const& line = lines[jss::result][jss::lines][0u];
|
||||
BEAST_EXPECT(!line[jss::no_ripple].isMember(jss::no_ripple));
|
||||
}
|
||||
{
|
||||
// Use a malformed peer.
|
||||
|
||||
Reference in New Issue
Block a user