aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneroexamples <moneroexamples@tuta.io>2016-12-14 09:27:37 +0800
committermoneroexamples <moneroexamples@tuta.io>2016-12-14 09:27:37 +0800
commit374b58d131aecfc986f95df227bd46b7bca5e216 (patch)
treef43f2e4a83a004ce9a124dfe6a91defdb100b487
parentMerge pull request #1445 (diff)
downloadmonero-374b58d131aecfc986f95df227bd46b7bca5e216.tar.xz
fix MGs json
-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;