Delete many things we do not want or need
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -144,9 +144,10 @@ void TxToJSONExpanded(const CTransaction& tx, const uint256 hashBlock, UniValue&
|
||||
UniValue vin(UniValue::VARR);
|
||||
BOOST_FOREACH(const CTxIn& txin, tx.vin) {
|
||||
UniValue in(UniValue::VOBJ);
|
||||
if (tx.IsCoinBase())
|
||||
if (tx.IsCoinBase()) {
|
||||
in.push_back(Pair("coinbase", HexStr(txin.scriptSig.begin(), txin.scriptSig.end())));
|
||||
else if (tx.IsCoinImport() && txin.prevout.n==10e8) {
|
||||
}
|
||||
/* else if (tx.IsCoinImport() && txin.prevout.n==10e8) {
|
||||
in.push_back(Pair("is_import", "1"));
|
||||
ImportProof proof; CTransaction burnTx; std::vector<CTxOut> payouts; CTxDestination importaddress;
|
||||
if (UnmarshalImportTx(tx, proof, burnTx, payouts))
|
||||
@@ -168,7 +169,7 @@ void TxToJSONExpanded(const CTransaction& tx, const uint256 hashBlock, UniValue&
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} */
|
||||
else {
|
||||
in.push_back(Pair("txid", txin.prevout.hash.GetHex()));
|
||||
in.push_back(Pair("vout", (int64_t)txin.prevout.n));
|
||||
@@ -216,6 +217,7 @@ void TxToJSONExpanded(const CTransaction& tx, const uint256 hashBlock, UniValue&
|
||||
out.push_back(Pair("n", (int64_t)i));
|
||||
UniValue o(UniValue::VOBJ);
|
||||
ScriptPubKeyToJSON(txout.scriptPubKey, o, true);
|
||||
/*
|
||||
if (txout.scriptPubKey.IsOpReturn() && txout.nValue != 0)
|
||||
{
|
||||
std::vector<uint8_t> burnOpret; std::string targetSymbol; uint32_t targetCCid; uint256 payoutsHash; std::vector<uint8_t>rawproof;
|
||||
@@ -224,6 +226,7 @@ void TxToJSONExpanded(const CTransaction& tx, const uint256 hashBlock, UniValue&
|
||||
out.push_back(Pair("target", "EXPORT->" + targetSymbol));
|
||||
}
|
||||
}
|
||||
*/
|
||||
out.push_back(Pair("scriptPubKey", o));
|
||||
|
||||
// Add spent information if spentindex is enabled
|
||||
|
||||
@@ -346,16 +346,6 @@ static const CRPCCommand vRPCCommands[] =
|
||||
{ "crosschain", "crosschainproof", &crosschainproof, true },
|
||||
{ "crosschain", "getNotarizationsForBlock", &getNotarizationsForBlock, true },
|
||||
{ "crosschain", "scanNotarizationsDB", &scanNotarizationsDB, true },
|
||||
{ "crosschain", "getimports", &getimports, true },
|
||||
{ "crosschain", "getwalletburntransactions", &getwalletburntransactions, true },
|
||||
{ "crosschain", "migrate_converttoexport", &migrate_converttoexport, true },
|
||||
{ "crosschain", "migrate_createburntransaction", &migrate_createburntransaction, true },
|
||||
{ "crosschain", "migrate_createimporttransaction", &migrate_createimporttransaction, true },
|
||||
{ "crosschain", "migrate_completeimporttransaction", &migrate_completeimporttransaction, true },
|
||||
{ "crosschain", "migrate_checkburntransactionsource", &migrate_checkburntransactionsource, true },
|
||||
{ "crosschain", "migrate_createnotaryapprovaltransaction", &migrate_createnotaryapprovaltransaction, true },
|
||||
{ "crosschain", "selfimport", &selfimport, true },
|
||||
{ "crosschain", "importdual", &importdual, true },
|
||||
|
||||
/* Mining */
|
||||
{ "mining", "getblocktemplate", &getblocktemplate, true },
|
||||
@@ -443,26 +433,6 @@ static const CRPCCommand vRPCCommands[] =
|
||||
{ "CClib", "cclibinfo", &cclibinfo, true },
|
||||
{ "CClib", "cclib", &cclib, true },
|
||||
|
||||
// tokens & assets
|
||||
{ "tokens", "assetsaddress", &assetsaddress, true },
|
||||
{ "tokens", "tokeninfo", &tokeninfo, true },
|
||||
{ "tokens", "tokenlist", &tokenlist, true },
|
||||
{ "tokens", "tokenorders", &tokenorders, true },
|
||||
{ "tokens", "mytokenorders", &mytokenorders, true },
|
||||
{ "tokens", "tokenaddress", &tokenaddress, true },
|
||||
{ "tokens", "tokenbalance", &tokenbalance, true },
|
||||
{ "tokens", "tokencreate", &tokencreate, true },
|
||||
{ "tokens", "tokentransfer", &tokentransfer, true },
|
||||
{ "tokens", "tokenbid", &tokenbid, true },
|
||||
{ "tokens", "tokencancelbid", &tokencancelbid, true },
|
||||
{ "tokens", "tokenfillbid", &tokenfillbid, true },
|
||||
{ "tokens", "tokenask", &tokenask, true },
|
||||
//{ "tokens", "tokenswapask", &tokenswapask, true },
|
||||
{ "tokens", "tokencancelask", &tokencancelask, true },
|
||||
{ "tokens", "tokenfillask", &tokenfillask, true },
|
||||
//{ "tokens", "tokenfillswap", &tokenfillswap, true },
|
||||
{ "tokens", "tokenconvert", &tokenconvert, true },
|
||||
|
||||
/* Address index */
|
||||
{ "addressindex", "getaddressmempool", &getaddressmempool, true },
|
||||
{ "addressindex", "getaddressutxos", &getaddressutxos, false },
|
||||
|
||||
@@ -237,22 +237,7 @@ extern UniValue submitblock(const UniValue& params, bool fHelp, const CPubKey& m
|
||||
extern UniValue estimatefee(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue estimatepriority(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue coinsupply(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue tokeninfo(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue tokenlist(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue tokenorders(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue mytokenorders(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue tokenbalance(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue assetsaddress(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue tokenaddress(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue tokencreate(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue tokentransfer(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue tokenbid(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue tokencancelbid(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue tokenfillbid(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue tokenask(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue tokencancelask(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue tokenfillask(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue tokenconvert(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue heiraddress(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue heirfund(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue heiradd(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
@@ -280,8 +265,6 @@ extern UniValue channelsopen(const UniValue& params, bool fHelp, const CPubKey&
|
||||
extern UniValue channelspayment(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue channelsclose(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue channelsrefund(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
//extern UniValue tokenswapask(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
//extern UniValue tokenfillswap(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue faucetfund(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue faucetget(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
extern UniValue faucetaddress(const UniValue& params, bool fHelp, const CPubKey& mypk);
|
||||
|
||||
Reference in New Issue
Block a user