mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
chore: Set ColumnLimit to 120 in clang-format (#6288)
This change updates the ColumnLimit from 80 to 120, and applies clang-format to reformat the code.
This commit is contained in:
@@ -28,9 +28,7 @@ public:
|
||||
env(noop(alice), sig(alice), ter(tefMASTER_DISABLED));
|
||||
|
||||
testcase("Re-enable master key");
|
||||
env(fclear(alice, asfDisableMaster),
|
||||
sig(alice),
|
||||
ter(tefMASTER_DISABLED));
|
||||
env(fclear(alice, asfDisableMaster), sig(alice), ter(tefMASTER_DISABLED));
|
||||
|
||||
env(fclear(alice, asfDisableMaster), sig(bob));
|
||||
env(noop(alice), sig(bob));
|
||||
@@ -67,17 +65,13 @@ public:
|
||||
env.fund(XRP(10000), alice, bob);
|
||||
|
||||
auto ar = env.le(alice);
|
||||
BEAST_EXPECT(
|
||||
ar->isFieldPresent(sfFlags) &&
|
||||
((ar->getFieldU32(sfFlags) & lsfPasswordSpent) == 0));
|
||||
BEAST_EXPECT(ar->isFieldPresent(sfFlags) && ((ar->getFieldU32(sfFlags) & lsfPasswordSpent) == 0));
|
||||
|
||||
env(regkey(alice, bob), sig(alice), fee(0));
|
||||
|
||||
ar = env.le(alice);
|
||||
BEAST_EXPECT(
|
||||
ar->isFieldPresent(sfFlags) &&
|
||||
((ar->getFieldU32(sfFlags) & lsfPasswordSpent) ==
|
||||
lsfPasswordSpent));
|
||||
ar->isFieldPresent(sfFlags) && ((ar->getFieldU32(sfFlags) & lsfPasswordSpent) == lsfPasswordSpent));
|
||||
|
||||
// The second SetRegularKey transaction with Fee=0 should fail.
|
||||
env(regkey(alice, bob), sig(alice), fee(0), ter(telINSUF_FEE_P));
|
||||
@@ -85,9 +79,7 @@ public:
|
||||
env.trust(bob["USD"](1), alice);
|
||||
env(pay(bob, alice, bob["USD"](1)));
|
||||
ar = env.le(alice);
|
||||
BEAST_EXPECT(
|
||||
ar->isFieldPresent(sfFlags) &&
|
||||
((ar->getFieldU32(sfFlags) & lsfPasswordSpent) == 0));
|
||||
BEAST_EXPECT(ar->isFieldPresent(sfFlags) && ((ar->getFieldU32(sfFlags) & lsfPasswordSpent) == 0));
|
||||
}
|
||||
|
||||
void
|
||||
@@ -128,9 +120,7 @@ public:
|
||||
env.close();
|
||||
|
||||
// Disable alice's master key using a ticket.
|
||||
env(fset(alice, asfDisableMaster),
|
||||
sig(alice),
|
||||
ticket::use(--ticketSeq));
|
||||
env(fset(alice, asfDisableMaster), sig(alice), ticket::use(--ticketSeq));
|
||||
env.close();
|
||||
|
||||
// alice should be able to sign using the regular key but not the
|
||||
@@ -142,9 +132,7 @@ public:
|
||||
BEAST_EXPECT(env.seq(alice) == aliceSeq + 1);
|
||||
|
||||
// Re-enable the master key using a ticket.
|
||||
env(fclear(alice, asfDisableMaster),
|
||||
sig(alie),
|
||||
ticket::use(--ticketSeq));
|
||||
env(fclear(alice, asfDisableMaster), sig(alie), ticket::use(--ticketSeq));
|
||||
env.close();
|
||||
|
||||
// Disable the regular key using a ticket.
|
||||
|
||||
Reference in New Issue
Block a user