53
53
#include < stdint.h>
54
54
55
55
#include < boost/assign/list_of.hpp>
56
- #include < utf8.h>
56
+ // #include <utf8.h>
57
57
58
58
#include < univalue.h>
59
59
@@ -4123,7 +4123,7 @@ UniValue z_gettotalbalance(const UniValue& params, bool fHelp, const CPubKey& my
4123
4123
}
4124
4124
4125
4125
// 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 )
4127
4127
{
4128
4128
if (!EnsureWalletIsAvailable (fHelp ))
4129
4129
return NullUniValue;
@@ -4242,7 +4242,8 @@ UniValue z_viewtransaction(const UniValue& params, bool fHelp)
4242
4242
if (memo[0 ] <= 0xf4 ) {
4243
4243
auto end = std::find_if (memo.rbegin (), memo.rend (), [](unsigned char v) { return v != 0 ; });
4244
4244
std::string memoStr (memo.begin (), end.base ());
4245
- if (utf8::is_valid (memoStr)) {
4245
+ // if (utf8::is_valid(memoStr))
4246
+ {
4246
4247
entry.push_back (Pair (" memoStr" , memoStr));
4247
4248
}
4248
4249
}
@@ -4320,7 +4321,8 @@ UniValue z_viewtransaction(const UniValue& params, bool fHelp)
4320
4321
if (memo[0 ] <= 0xf4 ) {
4321
4322
auto end = std::find_if (memo.rbegin (), memo.rend (), [](unsigned char v) { return v != 0 ; });
4322
4323
std::string memoStr (memo.begin (), end.base ());
4323
- if (utf8::is_valid (memoStr)) {
4324
+ // if (utf8::is_valid(memoStr))
4325
+ {
4324
4326
entry.push_back (Pair (" memoStr" , memoStr));
4325
4327
}
4326
4328
}
@@ -4334,7 +4336,7 @@ UniValue z_viewtransaction(const UniValue& params, bool fHelp)
4334
4336
}
4335
4337
4336
4338
4337
- UniValue z_getoperationresult (const UniValue& params, bool fHelp )
4339
+ UniValue z_getoperationresult (const UniValue& params, bool fHelp , const CPubKey& mypk )
4338
4340
{
4339
4341
if (!EnsureWalletIsAvailable (fHelp ))
4340
4342
return NullUniValue;
0 commit comments