Merge pull request #240 from tdudz/settoassetfix

fix SetToAsset bug where vchCommitment wasn't cleared before writing
This commit is contained in:
Gregory Sanders 2017-08-16 17:13:46 -04:00 committed by GitHub
commit d9207fc4f4

View file

@ -12,6 +12,7 @@
void CConfidentialAsset::SetToAsset(const CAsset& asset)
{
vchCommitment.clear();
vchCommitment.reserve(nExplicitSize);
vchCommitment.push_back(1);
vchCommitment.insert(vchCommitment.end(), asset.begin(), asset.end());