Execute migration steps

This commit is contained in:
Aditya Kulkarni
2018-10-25 13:35:49 -07:00
parent cf18b710d4
commit a395cf7976
9 changed files with 167 additions and 43 deletions

View File

@@ -19,13 +19,17 @@ const QString Utils::getDonationAddr() {
return "t1KfJJrSuVYmnNLrw7EZHRv1kZY3zdGGLyb";
}
const QString Utils::getDevSproutAddr() {
return "ztbGDqgkmXQjheivgeirwEvJLD4SUNqsWCGwxwVg4YpGz1ARR8P2rXaptkT14z3NDKamcxNmQuvmvktyokMs7HkutRNSx1D";
}
// Get the dev fee address based on the transaction
const QString Utils::getDevAddr(Tx tx) {
auto testnetAddrLookup = [=] (const QString& addr) -> QString {
if (addr.startsWith("ztestsapling")) {
return "ztestsapling1kdp74adyfsmm9838jaupgfyx3npgw8ut63stjjx757pc248cuc0ymzphqeux60c64qe5qt68ygh";
} else if (addr.startsWith("zt")) {
return "ztbGDqgkmXQjheivgeirwEvJLD4SUNqsWCGwxwVg4YpGz1ARR8P2rXaptkT14z3NDKamcxNmQuvmvktyokMs7HkutRNSx1D";
return getDevSproutAddr();
} else {
return QString();
}