aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-12-15 14:29:40 +0200
committerRiccardo Spagni <ric@spagni.net>2016-12-15 14:29:40 +0200
commitc6f26ecae280fa231ccc51e125bbf556ed6bbf9d (patch)
treefd280f9dc0b7fd630b3f039c55c82640924e0794
parentMerge pull request #1454 (diff)
parentfix MGs json (diff)
downloadmonero-c6f26ecae280fa231ccc51e125bbf556ed6bbf9d.tar.xz
Merge pull request #1449
374b58d1 fix MGs json (moneroexamples)
-rw-r--r--src/ringct/rctTypes.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ringct/rctTypes.h b/src/ringct/rctTypes.h
index 71cc61ddc..6b24fc470 100644
--- a/src/ringct/rctTypes.h
+++ b/src/ringct/rctTypes.h
@@ -308,10 +308,10 @@ namespace rct {
ar.tag("cc");
FIELDS(MGs[i].cc)
// MGs[i].II not saved, it can be reconstructed
- if (mg_elements - i > 1)
- ar.delimit_array();
-
ar.end_object();
+
+ if (mg_elements - i > 1)
+ ar.delimit_array();
}
ar.end_array();
return true;