[DOC] gateway guide - fix wrong operator for reading account flags

This commit is contained in:
mDuo13
2015-03-18 11:19:35 -07:00
parent b802addee8
commit bb886ced67

View File

@@ -350,7 +350,7 @@ Response:
}
```
To confirm that an account has DefaultRipple enabled, look up the account using the [account_info command](rippled-apis.html#account-info), specifying a validated ledger version. Use [the xor operator](https://en.wikipedia.org/wiki/Exclusive_or) to compare the `Flags` field with 0x00800000 (the [ledger flag lsfDefaultRipple](https://wiki.ripple.com/Ledger_Format#AccountRoot)). If the result of the xor operation is nonzero, then the account has DefaultRipple enabled.
To confirm that an account has DefaultRipple enabled, look up the account using the [account_info command](rippled-apis.html#account-info), specifying a validated ledger version. Use [a bitwise-AND operator](https://en.wikipedia.org/wiki/Bitwise_operation#AND) to compare the `Flags` field with 0x00800000 (the [ledger flag lsfDefaultRipple](https://wiki.ripple.com/Ledger_Format#AccountRoot)). If the result of the bitwise-AND operation is nonzero, then the account has DefaultRipple enabled.
## Generating Souce and Destination Tags ##