Skip to content

Commit

Permalink
value: preserve priority when encrypting
Browse files Browse the repository at this point in the history
All encrypted values put on the DHT currently have the default priority
of 0 because the priority information is ignored by the Value::encrypt
function.
  • Loading branch information
François-Simon Fauteux-Chapleau committed Oct 22, 2024
1 parent 88d0af9 commit 1303b2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ Value::encrypt(const crypto::PrivateKey& from, const crypto::PublicKey& to)
setRecipient(to.getId());
sign(from);
Value nv {id};
nv.priority = priority;
nv.setCypher(to.encrypt(getToEncrypt()));
return nv;
}
Expand Down

0 comments on commit 1303b2d

Please sign in to comment.