Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ module.exports = function(){
}

var command = [];

//this is an case for pivx
if(/^getpivx/.test(method)){
command = specialPivxCase(method);
}
//this is pretty dirty but it is working for now
if(method == 'sendmany' ||
else if(method == 'sendmany' ||
method == 'getmasternodecount' ||
method == 'getmasternodecountonline' ||
method == 'getmasternodelist' ||
Expand Down Expand Up @@ -134,6 +137,22 @@ module.exports = function(){
}];
}

function specialPivxCase(method_name){
var params = [];
if(method_name == 'getpivxmasternodecount'){
method_name = 'getmasternodecount';
}

if(method_name == 'getpivxmasternodelist'){
method_name = 'listmasternodes';
}

return [{
method: method_name,
params: params
}];
}

return app;
};

Expand Down