You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|ACCOUNT_MERGE_NO_ACCOUNT| -2| The `destination` account does not exist.|
314
314
|ACCOUNT_MERGE_IMMUTABLE_SET| -3| The source account has `AUTH_IMMUTABLE` flag set.|
315
315
|ACCOUNT_MERGE_HAS_SUB_ENTRIES | -4| The source account has trust lines/offers.|
316
+
|ACCOUNT_MERGE_SEQNUM_TOO_FAR | -5| Source's account sequence number is too high. It must be less than `(ledgerSeq << 32) = (ledgerSeq * 0x100000000)`. *(protocol version 10 and above)*|
|MANAGE_DATA_LOW_RESERVE| -3| Not enough lumens in the account to create a new Data Entry. Each additional Data Entry increases the minimum balance of the Account.|
356
357
|MANAGE_DATA_INVALID_NAME| -4| Name not a valid string.|
Bump sequence allows to bump forward the sequence number of the source account of the operation, allowing to invalidate any transactions with a smaller sequence number.
365
+
366
+
If the specified `bumpTo` sequence number is greater than the source account's sequence number,
367
+
the account's sequence number is updated with that value, otherwise it's not modified.
368
+
369
+
Threshold: Low
370
+
371
+
Result: `BumpSequenceResult`
372
+
373
+
|Parameters| Type| Description|
374
+
| --- | --- | --- |
375
+
|bumpTo| SequenceNumber| desired value for the operation's source account sequence number.|
376
+
377
+
Possible errors:
378
+
379
+
| Error | Code | Description |
380
+
| ----- | ---- | ------|
381
+
|BUMP_SEQUENCE_BAD_SEQ| -1| The specified `bumpTo` sequence number is not a valid sequence number. It must be between 0 and `INT64_MAX` (9223372036854775807 or 0x7fffffffffffffff).|
Copy file name to clipboardExpand all lines: guides/concepts/multi-sig.md
+5-3
Original file line number
Diff line number
Diff line change
@@ -25,10 +25,12 @@ Once the signature threshold is met if there are any leftover signatures then th
25
25
Each account can set its own threshold values. By default all thresholds levels are set to 0, and the master key is set to weight 1. The [Set Options](./list-of-operations.md#set-options) operation allows you to change the weight of the master key and to add other signing keys with different weights.
26
26
27
27
Low Security:
28
-
*[Transaction processing](./transactions.md)
28
+
*[Transaction processing](./transactions.md)
29
29
* Charging a fee or updating the sequence number for the source account
Operations are executed on behalf of the source account specified in the
22
23
transaction, unless there is an override defined for the operation.
@@ -28,13 +29,16 @@ Thresholds define the level of privilege an operation needs in order to succeed.
28
29
29
30
* Low Security:
30
31
* AllowTrustTx
31
-
* Used to allow other signers to allow people to hold credit from this
32
-
account but not issue credit.
32
+
* Used to allow other signers to allow people to hold credit from this account but not issue credit.
33
+
* BumpSequence
33
34
* Medium Security:
34
35
* All else
35
36
* High Security:
37
+
* AccountMerge
38
+
* merge an account into another one
36
39
* SetOptions for Signer and threshold
37
-
* Used to change the Set of signers and the thresholds.
40
+
* Used to change the Set of signers and the thresholds.
41
+
38
42
39
43
## Validity of an operation
40
44
@@ -44,7 +48,7 @@ The validity check only looks at the state of the source account. It ensures tha
44
48
1) the outer transaction has enough signatures for the source account of the operation to meet the threshold for that operation.
45
49
2) Operations-specific validity checks pass. These checks are ones that would stay true regardless of the ledger state—for example, are the parameters within the expected bounds? Checks that depend on ledger state don't happen until apply time—for example, a send operation won't check if you have enough balance to send until apply time.
46
50
47
-
Once a transaction passes this first validity check, it is propagated to the network and eventually included in a transaction set. As part of a transaction set, the transaction is applied to the ledger. At that point a fee is taken from the source account. Operations are attempted in the order they occur in the transaction. If any operation fails, the whole transaction fails and the effects of previous operations are rolled back.
51
+
Once a transaction passes this first validity check, it is propagated to the network and eventually included in a transaction set. As part of a transaction set, the transaction is applied to the ledger. At that point a fee is taken from the source account regardless of success/failure. Later, the transaction is processed: sequence number and signatures are verified before operations are attempted in the order they occur in the transaction. If any operation fails, the whole transaction fails and the effects of previous operations are rolled back.
0 commit comments