Commit 0eb569c7 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Merge pull request #363 from Insoleet/master

Some small fixes
parents df5c0073 a2f055a4
......@@ -145,7 +145,7 @@ function WebAdmin (dbConf, overConf) {
let found = yield server.dal.getIdentityByHashOrNull(entity.getTargetHash());
if (!found) {
let selfCert = rawer.getOfficialIdentity(entity);
selfCert += crypto.signSync(selfCert, secretKey);
selfCert += crypto.signSync(selfCert, secretKey) + '\n';
found = yield that.pushEntity({ body: { identity: selfCert }}, http2raw.identity, parsers.parseIdentity);
}
yield server.dal.fillInMembershipsOfIdentity(Q(found));
......
......@@ -189,7 +189,7 @@ module.exports = new function() {
this.getCompactTransaction = function (json) {
let issuers = (json.issuers || json.signatories);
let raw = ["TX", 1, issuers.length, json.inputs.length, json.unlocks.length, json.outputs.length, json.comment ? 1 : 0, json.locktime || 0].join(':') + '\n';
let raw = ["TX", json.version, issuers.length, json.inputs.length, json.unlocks.length, json.outputs.length, json.comment ? 1 : 0, json.locktime || 0].join(':') + '\n';
(issuers || []).forEach(function (issuer) {
raw += issuer + '\n';
});
......
......@@ -270,7 +270,7 @@ dtos.Certification = {
"block": Number,
"medianTime": Number
},
"sigDate": Number,
"sigDate": String,
"written": {
"number": Number,
"hash": String
......@@ -281,7 +281,7 @@ dtos.Certification = {
dtos.Certifications = {
"pubkey": String,
"uid": String,
"sigDate": Number,
"sigDate": String,
"isMember": Boolean,
"certifications": [dtos.Certification]
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment