We do not need an expanded spending key here; make Sietch faster

This commit is contained in:
Duke Leto
2020-11-14 18:06:37 -05:00
parent 2124951a0b
commit 8b349ad210

View File

@@ -19,7 +19,7 @@
string newSietchZaddr() {
bool addToWallet = false;
auto zaddr = EncodePaymentAddress(pwalletMain->GenerateNewSaplingZKey(addToWallet));
auto zaddr = EncodePaymentAddress(pwalletMain->GenerateNewSaplingZKey(addToWallet));
return zaddr;
}
@@ -39,9 +39,7 @@ SendManyRecipient newSietchRecipient(string zaddr) {
}
string randomSietchZaddr() {
auto sk = libzcash::SaplingSpendingKey::random();
//auto expsk = sk.expanded_spending_key();
auto zdust = sk.default_address();
auto zdust = libzcash::SaplingSpendingKey::random().default_address();
return EncodePaymentAddress(zdust);
}