Skip to content

Instantly share code, notes, and snippets.

@Stackout
Last active June 13, 2020 11:11
Show Gist options
  • Save Stackout/99635fb8dfdbe3964b5c310e9b449ef7 to your computer and use it in GitHub Desktop.
Save Stackout/99635fb8dfdbe3964b5c310e9b449ef7 to your computer and use it in GitHub Desktop.
Pexa stratum upgrade compatibility for Yiimp

The validateaddress RPC method no longer exists in pexa v1.7.0. The easy solution would be to simply add PEXA to this line in coind.cpp; however, for a more scaleable solution, add a new variable to the YAAMP_COIND class called hasgetaddressinfo, to keep the boolean variable names consistent that same class.

coind.cpp (line ~118)

- bool getaddressinfo = ((strcmp(coind->symbol,"DGB") == 0) || (strcmp(coind->symbol2, "DGB") == 0));
+ bool getaddressinfo = ((strcmp(coind->symbol,"DGB") == 0) || (strcmp(coind->symbol2, "DGB") == 0) || ((strcmp(coind->symbol,"PEXA") == 0) || (strcmp(coind->symbol2, "PEXA") == 0)));

You will also want enable usesegwit in your database for PEXA's settings. Otherwise you will recieve a 500 status code error from the RPC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment