Make transaction builder take the next block height into account for use of v2 note plaintexts.
This commit is contained in:
parent
4af761121d
commit
56d4ef8333
|
@ -163,7 +163,7 @@ void TransactionBuilder::AddSaplingOutput(
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned char leadByte = 0x01;
|
unsigned char leadByte = 0x01;
|
||||||
if (Params().GetConsensus().NetworkUpgradeActive(nHeight, Consensus::UPGRADE_CANOPY)) {
|
if (Params().GetConsensus().NetworkUpgradeActive(nHeight + 1, Consensus::UPGRADE_CANOPY)) {
|
||||||
leadByte = 0x02;
|
leadByte = 0x02;
|
||||||
}
|
}
|
||||||
auto note = libzcash::SaplingNote(to, value, leadByte);
|
auto note = libzcash::SaplingNote(to, value, leadByte);
|
||||||
|
|
Loading…
Reference in New Issue