We do not need an expanded spending key here; make Sietch faster
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
string newSietchZaddr() {
|
string newSietchZaddr() {
|
||||||
bool addToWallet = false;
|
bool addToWallet = false;
|
||||||
auto zaddr = EncodePaymentAddress(pwalletMain->GenerateNewSaplingZKey(addToWallet));
|
auto zaddr = EncodePaymentAddress(pwalletMain->GenerateNewSaplingZKey(addToWallet));
|
||||||
return zaddr;
|
return zaddr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,9 +39,7 @@ SendManyRecipient newSietchRecipient(string zaddr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
string randomSietchZaddr() {
|
string randomSietchZaddr() {
|
||||||
auto sk = libzcash::SaplingSpendingKey::random();
|
auto zdust = libzcash::SaplingSpendingKey::random().default_address();
|
||||||
//auto expsk = sk.expanded_spending_key();
|
|
||||||
auto zdust = sk.default_address();
|
|
||||||
return EncodePaymentAddress(zdust);
|
return EncodePaymentAddress(zdust);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user