Support 2.0.5 sapling turnstile

This commit is contained in:
Aditya Kulkarni
2019-05-22 13:17:57 -07:00
parent 43f802d7ac
commit fcb68823a7
7 changed files with 331 additions and 6 deletions

View File

@@ -52,6 +52,8 @@ public:
ProgressReport getPlanProgress();
bool isMigrationPresent();
static void showZcashdMigration(MainWindow* parent);
static double minMigrationAmount;
private:
QList<int> getBlockNumbers(int start, int end, int count);
@@ -66,4 +68,27 @@ private:
MainWindow* mainwindow;
};
// Classes for zcashd 2.0.5 native migration
class MigrationTxns : public QAbstractTableModel {
public:
MigrationTxns(QTableView* parent, QList<QString> txids);
~MigrationTxns() = default;
int rowCount(const QModelIndex &parent) const;
int columnCount(const QModelIndex &parent) const;
QVariant data(const QModelIndex &index, int role) const;
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
QString getTxid(int row) const;
private:
QList<QString> txids;
QStringList headers;
};
#endif