Make transaction builder take the next block height into account for use of v2 note plaintexts.

This commit is contained in:
Sean Bowe 2020-06-17 17:09:11 -06:00 committed by therealyingtong
parent 4af761121d
commit 56d4ef8333
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ void TransactionBuilder::AddSaplingOutput(
}
unsigned char leadByte = 0x01;
if (Params().GetConsensus().NetworkUpgradeActive(nHeight, Consensus::UPGRADE_CANOPY)) {
if (Params().GetConsensus().NetworkUpgradeActive(nHeight + 1, Consensus::UPGRADE_CANOPY)) {
leadByte = 0x02;
}
auto note = libzcash::SaplingNote(to, value, leadByte);