Skip to content

Commit 5397f80

Browse files
François-Simon Fauteux-Chapleauaberaud
François-Simon Fauteux-Chapleau
authored andcommitted
value: preserve priority when encrypting
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.
1 parent 88d0af9 commit 5397f80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/value.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ Value::encrypt(const crypto::PrivateKey& from, const crypto::PublicKey& to)
271271
setRecipient(to.getId());
272272
sign(from);
273273
Value nv {id};
274+
nv.priority = priority;
274275
nv.setCypher(to.encrypt(getToEncrypt()));
275276
return nv;
276277
}

0 commit comments

Comments
 (0)