Skip to content

Commit

Permalink
fixups for matchoffer, blindraw
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs authored and kallewoof committed Jul 30, 2017
1 parent 156aafa commit 5fc11c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/rpc/rawtransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ UniValue blindrawtransaction(const JSONRPCRequest& request)
for (size_t nIn = 0; nIn < tx.vin.size(); nIn++) {

std::map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.find(tx.vin[nIn].prevout.hash);
if (it == pwalletMain->mapWallet.end()) {
if (it == pwalletMain->mapWallet.end() || pwalletMain->IsMine(tx.vin[nIn]) == ISMINE_NO) {
// For inputs we don't own input assetcommitments for the surjection must be supplied
if (auxiliary_generators.size() > 0) {
input_blinds.push_back(uint256());
Expand Down
4 changes: 2 additions & 2 deletions src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3665,7 +3665,7 @@ UniValue makeoffer(const JSONRPCRequest& request)
addrHash.push_back(Pair(addrTmp.get_str(), ValueFromAmount(sellAmount))); // sold amount
outputAssets.push_back(Pair(addrTmp.get_str(), sellAsset));
r.params.push_back(addrHash);
r.params.push_back((int32_t)0);
r.params.push_back(UniValue(0));
r.params.push_back(outputAssets);
printf("r = %s\n", r.params.write().c_str());
UniValue rtx = createrawtransaction(r);
Expand Down Expand Up @@ -3896,7 +3896,7 @@ UniValue matchoffer(const JSONRPCRequest& request)
addrHash.push_back(Pair(addrTmp.get_str(), ValueFromAmount(sellAmount))); // sold amount
outputAssets.push_back(Pair(addrTmp.get_str(), sellAsset));
r.params.push_back(addrHash);
r.params.push_back((int32_t)0);
r.params.push_back(UniValue(0));
r.params.push_back(outputAssets);
printf("r = %s\n", r.params.write().c_str());
UniValue rtx = createrawtransaction(r);
Expand Down

0 comments on commit 5fc11c9

Please sign in to comment.