Skip to content

Commit

Permalink
Trim edge imports (#599)
Browse files Browse the repository at this point in the history
* trim edge imports data

* version bump

* Catchup with stable
  • Loading branch information
vukdjoric authored and kipliklotrika committed Oct 2, 2018
1 parent 72281a8 commit 77d77a3
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 12 deletions.
8 changes: 4 additions & 4 deletions config/runtimeConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@
},
"stable": {
"network": {
"id": "StablenetV1.0.0",
"id": "StablenetV1.0.1",
"bootstraps": ["https://82.196.10.12:5278/#ca87147a501adf39eaa648c2b09735559ee3511d"],
"remoteWhitelist": ["54.93.223.161", "127.0.0.1"]
},
"blockchainContracts": {
"otContractAddress": "0xc47ab060e064e9291d723e14ddf4122bc121624b",
"tokenContractAddress": "0x98d9a611ad1b5761bdc1daac42c48e4d54cf5882",
"escrowContractAddress": "0x6103d41059145b72f7ce5760910c017838454bca",
"biddingContractAddress": "0x4e3f704a3a8e874cf576606ed3b2a5e7bff37ad5",
"readingContractAddress": "0x35459b23d3eae1c82b8f349e9df4d28bc11ac5a9"
"escrowContractAddress": "0x68da38286d0dde6b06261655490af1074e0c5572",
"biddingContractAddress": "0x5ecbb18f557049133b42bfe44f892ad7d768d633",
"readingContractAddress": "0x930a3b8c660c4f6bdd74f9181bb82ad3a55d2f64"
},
"bugSnag": {
"releaseStage": "stable"
Expand Down
1 change: 1 addition & 0 deletions modules/DHService.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class DHService {
throw Error(`Didn't find import with ID. ${importId}`);
}

ImportUtilities.deleteInternal(edges);
ImportUtilities.deleteInternal(vertices);
const holdingData = holdingDataModel.get({ plain: true });
const dataPublicKey = holdingData.data_public_key;
Expand Down
1 change: 1 addition & 0 deletions modules/EventEmitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,7 @@ class EventEmitter {
const vertices = values[0];
const edges = values[1];

ImportUtilities.deleteInternal(edges);
ImportUtilities.deleteInternal(vertices);

const keyPair = Encryption.generateKeyPair();
Expand Down
1 change: 1 addition & 0 deletions modules/command/dh/dh-data-read-request-free-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class DHDataReadRequestFreeCommand extends Command {
throw Error(`Failed to get data info for import ID ${importId}.`);
}

ImportUtilities.deleteInternal(edges);
ImportUtilities.deleteInternal(vertices);

// Get replication key and then encrypt data.
Expand Down
1 change: 1 addition & 0 deletions modules/importer.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class Importer {
} = json_document;

this.log.trace('Import vertices and edges');
ImportUtilities.deleteInternal(edges);
ImportUtilities.deleteInternal(vertices);

if (packKeys) {
Expand Down
6 changes: 0 additions & 6 deletions modules/network/kademlia/kademlia.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,6 @@ class Kademlia {
this.log.info('Quasar initialised');
this.node.peercache = this.node.plugin(PeerCache(`${__dirname}/../../../data/${config.embedded_peercache_path}`));
this.log.info('Peercache initialised');
// this.node.spartacus = this.node.plugin(kadence.spartacus(
// this.xprivkey,
// parseInt(config.child_derivation_index, 10),
// kadence.constants.HD_KEY_DERIVATION_PATH,
// ));
// this.log.info('Spartacus initialized');

if (onionEnabled) {
this.enableOnion();
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "origintrail-node",
"version": "1.3.41",
"version": "1.3.42",
"description": "OriginTrail node",
"main": ".eslintrc.js",
"config": {
Expand Down

0 comments on commit 77d77a3

Please sign in to comment.