Add comment to call out the storage details of diversifier indices.
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
306d37e706
commit
5864e71eec
|
@ -67,6 +67,7 @@ impl<'a> InsertAddress<'a> {
|
||||||
mut diversifier_index: DiversifierIndex,
|
mut diversifier_index: DiversifierIndex,
|
||||||
address: &UnifiedAddress,
|
address: &UnifiedAddress,
|
||||||
) -> Result<(), rusqlite::Error> {
|
) -> Result<(), rusqlite::Error> {
|
||||||
|
// the diversifier index is stored in big-endian order to allow sorting
|
||||||
diversifier_index.0.reverse();
|
diversifier_index.0.reverse();
|
||||||
self.stmt.execute(named_params![
|
self.stmt.execute(named_params![
|
||||||
":account": &u32::from(account),
|
":account": &u32::from(account),
|
||||||
|
|
Loading…
Reference in New Issue