ringct: pass structure by const ref, not value

This commit is contained in:
moneromooo-monero
2016-08-27 22:20:45 +01:00
parent fd11271eea
commit b38452bd55
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -459,7 +459,7 @@ namespace rct {
// this shows that sum inputs = sum outputs
//Ver:
// verifies the above sig is created corretly
bool verRctMG(mgSig mg, const ctkeyM & pubs, const ctkeyV & outPk, key txnFeeKey, const key &message) {
bool verRctMG(const mgSig &mg, const ctkeyM & pubs, const ctkeyV & outPk, key txnFeeKey, const key &message) {
//setup vars
size_t cols = pubs.size();
CHECK_AND_ASSERT_MES(cols >= 1, false, "Empty pubs");