diff options
author | Franklin Wei <me@fwei.tk> | 2018-06-20 14:13:48 -0400 |
---|---|---|
committer | Franklin Wei <me@fwei.tk> | 2018-06-20 14:13:48 -0400 |
commit | 9fb1f3ba699a2ff004aaf35f5fc628df7bcf6f1e (patch) | |
tree | 0dac159462ae9fff6d4000038b358527dc51849e /crypto.c | |
parent | a9315b1f9e01097e4fedff446912db8d5fd5e422 (diff) | |
download | csaa-9fb1f3ba699a2ff004aaf35f5fc628df7bcf6f1e.zip csaa-9fb1f3ba699a2ff004aaf35f5fc628df7bcf6f1e.tar.gz csaa-9fb1f3ba699a2ff004aaf35f5fc628df7bcf6f1e.tar.bz2 csaa-9fb1f3ba699a2ff004aaf35f5fc628df7bcf6f1e.tar.xz |
Some code cleanup and refactor
Diffstat (limited to 'crypto.c')
-rw-r--r-- | crypto.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -242,7 +242,9 @@ void restore_nodes(hash_t *nodes, const int *indices, const hash_t *values, int /* Update mt_nodes to reflect a change to a leaf node's * value. Optionally, if old_dep is not NULL, *old_dep will be made to * point to an array of length mt_logleaves that contains the old node - * values (whose indices are returned by bintree_ancestors()). */ + * values (whose indices are returned by bintree_ancestors()). NOTE: + * this function will NOT set the corresponding IOMT leaf; use + * iomt_update_by_leafidx for that. */ void merkle_update(struct iomt *tree, uint64_t leafidx, hash_t newval, hash_t **old_dep) { if(old_dep) |