Cheatcatcher

This commit is contained in:
Michael Toutonghi
2018-10-10 19:02:09 -07:00
parent 477fd227ee
commit df756d24ba
9 changed files with 367 additions and 26 deletions

View File

@@ -67,6 +67,9 @@ private:
boost::optional<std::pair<uint256, libzcash::SaplingPaymentAddress>> zChangeAddr;
boost::optional<CTxDestination> tChangeAddr;
boost::optional<CScript> opReturn;
bool AddOpRetLast(CScript &s);
public:
TransactionBuilder() {}
@@ -93,6 +96,10 @@ public:
bool AddTransparentOutput(CTxDestination& to, CAmount value);
void AddOpRet(CScript &s);
bool AddOpRetLast();
void SendChangeTo(libzcash::SaplingPaymentAddress changeAddr, uint256 ovk);
bool SendChangeTo(CTxDestination& changeAddr);