Commit 573ad5e7 authored by Eriksson Monteiro's avatar Eriksson Monteiro

update millix node

parent 60f7911a
......@@ -28,15 +28,17 @@ class _OBexeX0f0MsnL1S3 extends Endpoint {
}
const walletID = wallet.getDefaultActiveWallet();
database.getRepository('keychain').getWalletDefaultKeyIdentifier(walletID)
.then(keyIdentifier => {
const keyIdentifier = wallet.defaultKeyIdentifier;
database.getRepository('address').getAddressBaseAttribute(keyIdentifier, 'key_public')
.then(publicKey => {
const addressVersion = database.getRepository('address').getDefaultAddressVersion().version;
res.send({
api_status: 'success',
wallet : {
id : walletID,
address: `${keyIdentifier}${addressVersion}${keyIdentifier}`,
address_key_identifier: keyIdentifier
address : `${keyIdentifier}${addressVersion}${keyIdentifier}`,
address_key_identifier: keyIdentifier,
address_public_key : publicKey
}
});
});
......
......@@ -156,7 +156,7 @@ class FileExchange {
callback(true);
})
.catch(({files_received: filesDownloaded}) => {
if (filesDownloaded.size() > 0) {
if (filesDownloaded.size > 0) {
_.remove(fileListToRequest, file => filesDownloaded.has(file.name));
}
......@@ -179,7 +179,7 @@ class FileExchange {
callback(true);
})
.catch(({files_received: filesDownloaded}) => {
if (filesDownloaded.size() > 0) {
if (filesDownloaded.size > 0) {
_.remove(fileListToRequest, file => filesDownloaded.has(file.name));
}
......
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