From 8ee5c997703c23aa8dcc1e137e9c5dd93500ad02 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 24 Jul 2018 08:54:29 -1100 Subject: [PATCH] Address functions --- src/cc/CCcustom.cpp | 2 +- src/rpcserver.cpp | 9 +++++++++ src/rpcserver.h | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/cc/CCcustom.cpp b/src/cc/CCcustom.cpp index 7080e3ed5..c03907c4a 100644 --- a/src/cc/CCcustom.cpp +++ b/src/cc/CCcustom.cpp @@ -110,7 +110,7 @@ uint8_t PonziCCpriv[32] = { 0x0e, 0xe8, 0xf5, 0xb4, 0x3d, 0x25, 0xcc, 0x35, 0xd1 #define EVALCODE EVAL_AUCTION const char *AuctionCCaddr = "REabWB7KjFN5C3LFMZ5odExHPenYzHLtVw"; //"RFtVDNmdTZBTNZdmFRbfBgJ6LitgTghikL"; char AuctionCChexstr[67] = { "037eefe050c14cb60ae65d5b2f69eaa1c9006826d729bc0957bdc3024e3ca1dbe6" }; -uint8_t AuctionCCpriv[32] = { 0x0e, 0xe8, 0xf5, 0xb4, 0x3d, 0x25, 0xcc, 0x35, 0xd1, 0xf1, 0x2f, 0x04, 0x5f, 0x01, 0x26, 0xb8, 0xd1, 0xac, 0x3a, 0x5a, 0xea, 0xe0, 0x25, 0xa2, 0x8f, 0x2a, 0x8e, 0x0e, 0xf9, 0x34, 0xfa, 0x77 }; +uint8_t AuctionCCpriv[32] = { 0x8c, 0x1b, 0xb7, 0x8c, 0x02, 0xa3, 0x9d, 0x21, 0x28, 0x59, 0xf5, 0xea, 0xda, 0xec, 0x0d, 0x11, 0xcd, 0x38, 0x47, 0xac, 0x0b, 0x6f, 0x19, 0xc0, 0x24, 0x36, 0xbf, 0x1c, 0x0a, 0x06, 0x31, 0xfb }; #include "CCcustom.inc" #undef FUNCNAME #undef EVALCODE diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp index 40ebd162c..afcb5cc59 100644 --- a/src/rpcserver.cpp +++ b/src/rpcserver.cpp @@ -344,6 +344,15 @@ static const CRPCCommand vRPCCommands[] = #ifdef ENABLE_WALLET { "rawtransactions", "fundrawtransaction", &fundrawtransaction, false }, #endif + /* auction */ + { "auction", "auctionaddress", &auctionaddress, true }, + + /* lotto */ + { "lotto", "lottoaddress", &lottoaddress, true }, + + /* ponzi */ + { "ponzi", "ponziaddress", &ponziaddress, true }, + /* rewards */ { "rewards", "rewardsfund", &rewardsfund, true }, { "rewards", "rewardslock", &rewardslock, true }, diff --git a/src/rpcserver.h b/src/rpcserver.h index ff06966ba..fe48bdd74 100644 --- a/src/rpcserver.h +++ b/src/rpcserver.h @@ -231,6 +231,9 @@ extern UniValue rewardsunlock(const UniValue& params, bool fHelp); extern UniValue diceaddress(const UniValue& params, bool fHelp); extern UniValue dicefund(const UniValue& params, bool fHelp); extern UniValue dicebet(const UniValue& params, bool fHelp); +extern UniValue lottoaddress(const UniValue& params, bool fHelp); +extern UniValue ponziaddress(const UniValue& params, bool fHelp); +extern UniValue auctionaddress(const UniValue& params, bool fHelp); extern UniValue getnewaddress(const UniValue& params, bool fHelp); // in rpcwallet.cpp //extern UniValue getnewaddress64(const UniValue& params, bool fHelp); // in rpcwallet.cpp