From dfec71ffe3567bc2fdef8646b562ed17c019701e Mon Sep 17 00:00:00 2001 From: DeckerSU Date: Tue, 20 Feb 2018 21:57:48 +0300 Subject: [PATCH] changed dexscripts.win32 related to latest marketmaker API changes first call to marketmaker API doesn't returns userpass now, so, we should login with "default" passphrase and when calling 2_getuserpass.cmd login this "passphrase" method and default userpass "1d8b27b21efabcd96571cd56f91a40fb9aa4cc623d273c63bf9223dc6f8cd81f", same as implemented in barterdex gui. --- iguana/dexscripts.win32/1-client.cmd | 3 ++- iguana/dexscripts.win32/2-getuserpass.cmd | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/iguana/dexscripts.win32/1-client.cmd b/iguana/dexscripts.win32/1-client.cmd index 1eb878afc..487565d03 100644 --- a/iguana/dexscripts.win32/1-client.cmd +++ b/iguana/dexscripts.win32/1-client.cmd @@ -14,7 +14,8 @@ rem marketmaker "{\"gui\":\"nogui\",\"client\":1, \"userhome\":\"%USERHOME%\", \ rem echo "{\"gui\":\"nogui\",\"client\":1, \"userhome\":\"%USERHOME%\", \"passphrase\":\"%PASSPHRASE%\"}" rem marketmaker "{\"gui\":\"nogui\",\"client\":1, \"userhome\":\"%USERHOME%\", \"passphrase\":\"%PASSPHRASE%\"}" -marketmaker "{\"gui\":\"nogui\",\"client\":1, \"userhome\":\"%USERHOME%\"}" +marketmaker "{\"gui\":\"nogui\",\"client\":1, \"userhome\":\"%USERHOME%\",\"passphrase\":\"default\"}" + diff --git a/iguana/dexscripts.win32/2-getuserpass.cmd b/iguana/dexscripts.win32/2-getuserpass.cmd index ce96f4264..b6d7347a2 100644 --- a/iguana/dexscripts.win32/2-getuserpass.cmd +++ b/iguana/dexscripts.win32/2-getuserpass.cmd @@ -2,10 +2,11 @@ rem first time call to any method after started markemaker will return default userpass 1d8b27b21efabcd96571cd56f91a40fb9aa4cc623d273c63bf9223dc6f8cd81f rem by-default userpass is 1d8b27b21efabcd96571cd56f91a40fb9aa4cc623d273c63bf9223dc6f8cd81f from "default" passphrase -curl --url "http://127.0.0.1:7783" --data "{\"userpass\":null,\"method\":\"enable\",\"coin\":\"\"}" -s > default_userpass.json +rem first time call to marketmaker don't return anything now, so we disable it +rem curl --url "http://127.0.0.1:7783" --data "{\"userpass\":null,\"method\":\"enable\",\"coin\":\"\"}" -s > default_userpass.json rem curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"1d8b27b21efabcd96571cd56f91a40fb9aa4cc623d273c63bf9223dc6f8cd81f\",\"method\":\"hello\"}" -s > default_userpass.json -echo - First time call to MM API finished, default userpass received +rem echo - First time call to MM API finished, default userpass received set /p PASSPHRASE= userpass.json