Selectively reject Sapling transactions while synced below activation height. Add separate control of staking.

This commit is contained in:
miketout
2018-10-08 21:15:21 -07:00
parent 051af72cbd
commit 5f63373eb9
12 changed files with 79 additions and 31 deletions

View File

@@ -308,8 +308,8 @@ libzcash::PaymentAddress DecodePaymentAddress(const std::string& str)
return libzcash::InvalidEncoding();
}
bool IsValidPaymentAddressString(const std::string& str) {
return IsValidPaymentAddress(DecodePaymentAddress(str));
bool IsValidPaymentAddressString(const std::string& str, uint32_t consensusBranchId) {
return IsValidPaymentAddress(DecodePaymentAddress(str), consensusBranchId);
}
std::string EncodeViewingKey(const libzcash::ViewingKey& vk)