We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4732325 commit 7d996cdCopy full SHA for 7d996cd
1 file changed
src/transactions/types/htlc_claim.cpp
@@ -99,9 +99,7 @@ void HtlcClaim::addToMap(const HtlcClaim &claim,
99
map.emplace(KEY_CLAIM_TX_ID_LABEL, BytesToHex(claim.id));
100
101
// Secret
102
- std::string secret(claim.secret.size(), '\0');
103
- secret.insert(secret.begin(), claim.secret.begin(), claim.secret.end());
104
- map.emplace(KEY_CLAIM_SECRET_LABEL, secret);
+ map.emplace(KEY_CLAIM_SECRET_LABEL, BytesToHex(claim.secret));
105
}
106
107
////////////////////////////////////////////////////////////////////////////////
0 commit comments