Skip to content

Commit d8b77e3

Browse files
authored
Merge pull request #207 from jl777/dev
sync dev
2 parents 14bfa94 + e85887a commit d8b77e3

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/cc/cclib.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ std::string Faucet2Fund(struct CCcontract_info *cp,uint64_t txfee,int64_t funds)
570570
txfee = 10000;
571571
mypk = pubkey2pk(Mypubkey());
572572
cclibpk = GetUnspendable(cp,0);
573-
if ( AddNormalinputs(mtx,mypk,funds+txfee,64) > 0 )
573+
if ( AddNormalinputs2(mtx,funds+txfee,64) > 0 )
574574
{
575575
mtx.vout.push_back(MakeCC1vout(cp->evalcode,funds,cclibpk));
576576
return(FinalizeCCTx(0,cp,mtx,mypk,txfee,opret));

src/cc/customcc.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ UniValue custom_func1(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
6262
if ( txfee == 0 )
6363
txfee = CUSTOM_TXFEE;
6464
mypk = pubkey2pk(Mypubkey());
65-
if ( AddNormalinputs(mtx,mypk,COIN+txfee,64) >= COIN+txfee ) // add utxo to mtx
65+
if ( AddNormalinputs2(mtx,COIN+txfee,64) >= COIN+txfee ) // add utxo to mtx
6666
{
6767
// make op_return payload as normal.
6868
CScript opret = custom_opret('1',mypk);

src/wallet/rpcwallet.cpp

+7-5
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
#include <stdint.h>
5454

5555
#include <boost/assign/list_of.hpp>
56-
#include <utf8.h>
56+
//#include <utf8.h>
5757

5858
#include <univalue.h>
5959

@@ -4123,7 +4123,7 @@ UniValue z_gettotalbalance(const UniValue& params, bool fHelp, const CPubKey& my
41234123
}
41244124

41254125
// got bored and copied str4d's work - thanks dude/dudette :)
4126-
UniValue z_viewtransaction(const UniValue& params, bool fHelp)
4126+
UniValue z_viewtransaction(const UniValue& params, bool fHelp, const CPubKey& mypk)
41274127
{
41284128
if (!EnsureWalletIsAvailable(fHelp))
41294129
return NullUniValue;
@@ -4242,7 +4242,8 @@ UniValue z_viewtransaction(const UniValue& params, bool fHelp)
42424242
if (memo[0] <= 0xf4) {
42434243
auto end = std::find_if(memo.rbegin(), memo.rend(), [](unsigned char v) { return v != 0; });
42444244
std::string memoStr(memo.begin(), end.base());
4245-
if (utf8::is_valid(memoStr)) {
4245+
//if (utf8::is_valid(memoStr))
4246+
{
42464247
entry.push_back(Pair("memoStr", memoStr));
42474248
}
42484249
}
@@ -4320,7 +4321,8 @@ UniValue z_viewtransaction(const UniValue& params, bool fHelp)
43204321
if (memo[0] <= 0xf4) {
43214322
auto end = std::find_if(memo.rbegin(), memo.rend(), [](unsigned char v) { return v != 0; });
43224323
std::string memoStr(memo.begin(), end.base());
4323-
if (utf8::is_valid(memoStr)) {
4324+
//if (utf8::is_valid(memoStr))
4325+
{
43244326
entry.push_back(Pair("memoStr", memoStr));
43254327
}
43264328
}
@@ -4334,7 +4336,7 @@ UniValue z_viewtransaction(const UniValue& params, bool fHelp)
43344336
}
43354337

43364338

4337-
UniValue z_getoperationresult(const UniValue& params, bool fHelp)
4339+
UniValue z_getoperationresult(const UniValue& params, bool fHelp, const CPubKey& mypk)
43384340
{
43394341
if (!EnsureWalletIsAvailable(fHelp))
43404342
return NullUniValue;

0 commit comments

Comments
 (0)