diff --git a/contrib/seeds/nodes_main.txt b/contrib/seeds/nodes_main.txt index 0ebe54b97..7e0bbbe19 100644 --- a/contrib/seeds/nodes_main.txt +++ b/contrib/seeds/nodes_main.txt @@ -1 +1,2 @@ 45.32.39.241:9246 +45.32.40.180:9246 \ No newline at end of file diff --git a/reproducable-build b/reproducable-build index e89a1b5b6..e2e20b070 100644 --- a/reproducable-build +++ b/reproducable-build @@ -1,4 +1,5 @@ sudo apt-get install build-essential python-dev libbz2-dev libtool autotools-dev autoconf git pkg-config + mkdir dependencies cd dependencies @@ -24,8 +25,8 @@ cd .. wget http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.bz2/download -O boost_1_59_0.tar.bz2 tar xf boost_1_59_0.tar.bz2 +export BOOST_ROOT="`pwd`/boost_1_59_0" cd boost_1_59_0 -export BOOST_ROOT=`pwd` ./bootstrap.sh ./b2 link=static cxxflags=-fPIC stage cd ../../ diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 23f3e10d0..7ce739aae 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -159,7 +159,7 @@ public: vSeeds.clear(); vFixedSeeds.clear(); - vSeeds.push_back(CDNSSeedData("lbrycrd.lbry.io", "seed.lbrycrd.lbry.io")); // lbry.io + vSeeds.push_back(CDNSSeedData("lighthouse.lbry.io", "seed.lighthouse.lbry.io")); // lbry.io base58Prefixes[PUBKEY_ADDRESS] = std::vector(1,0x55); base58Prefixes[SCRIPT_ADDRESS] = std::vector(1,0x7a); diff --git a/src/chainparamsseeds.h b/src/chainparamsseeds.h index 4d997309e..1e66a3621 100644 --- a/src/chainparamsseeds.h +++ b/src/chainparamsseeds.h @@ -8,7 +8,8 @@ * IPv4 as well as onion addresses are wrapped inside a IPv6 address accordingly. */ static SeedSpec6 pnSeed6_main[] = { - {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x2d,0x20,0x27,0xf1}, 9246} + {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x2d,0x20,0x27,0xf1}, 9246}, + {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x2d,0x20,0x28,0xb4}, 9246} }; static SeedSpec6 pnSeed6_test[] = { diff --git a/src/rpc/claimtrie.cpp b/src/rpc/claimtrie.cpp index 388225609..1307a1c6f 100644 --- a/src/rpc/claimtrie.cpp +++ b/src/rpc/claimtrie.cpp @@ -520,3 +520,22 @@ UniValue getnameproof(const UniValue& params, bool fHelp) return proofToJSON(proof); } + +static const CRPCCommand commands[] = +{ // category name actor (function) okSafeMode + // --------------------- ------------------------ ----------------------- ---------- + { "Claimtrie", "getclaimsintrie", &getclaimsintrie, true }, + { "Claimtrie", "getclaimtrie", &getclaimtrie, true }, + { "Claimtrie", "getvalueforname", &getvalueforname, true }, + { "Claimtrie", "gettotalclaimednames", &gettotalclaimednames, true }, + { "Claimtrie", "gettotalclaims", &gettotalclaims, true }, + { "Claimtrie", "gettotalvalueofclaims", &gettotalvalueofclaims, true }, + { "Claimtrie", "getclaimsfortx", &getclaimsfortx, true }, + { "Claimtrie", "getnameproof", &getnameproof, true }, +}; + +void RegisterClaimTrieRPCCommands(CRPCTable &tableRPC) +{ + for (unsigned int vcidx = 0; vcidx < ARRAYLEN(commands); vcidx++) + tableRPC.appendCommand(commands[vcidx].name, &commands[vcidx]); +} diff --git a/src/rpc/register.h b/src/rpc/register.h index 01aa58a25..e8406deac 100644 --- a/src/rpc/register.h +++ b/src/rpc/register.h @@ -19,6 +19,9 @@ void RegisterMiscRPCCommands(CRPCTable &tableRPC); void RegisterMiningRPCCommands(CRPCTable &tableRPC); /** Register raw transaction RPC commands */ void RegisterRawTransactionRPCCommands(CRPCTable &tableRPC); +/** Register claim trie RPC commands */ +void RegisterClaimTrieRPCCommands(CRPCTable &tableRPC); + static inline void RegisterAllCoreRPCCommands(CRPCTable &tableRPC) { @@ -27,6 +30,7 @@ static inline void RegisterAllCoreRPCCommands(CRPCTable &tableRPC) RegisterMiscRPCCommands(tableRPC); RegisterMiningRPCCommands(tableRPC); RegisterRawTransactionRPCCommands(tableRPC); + RegisterClaimTrieRPCCommands(tableRPC); } #endif diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index d1c5cbb17..bfa0623fb 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -3138,6 +3138,12 @@ static const CRPCCommand commands[] = { "wallet", "walletpassphrasechange", &walletpassphrasechange, true }, { "wallet", "walletpassphrase", &walletpassphrase, true }, { "wallet", "removeprunedfunds", &removeprunedfunds, true }, + { "Claimtrie", "claimname", &claimname, true }, + { "Claimtrie", "updateclaim", &updateclaim, true }, + { "Claimtrie", "abandonclaim", &abandonclaim, true }, + { "Claimtrie", "listnameclaims", &listnameclaims, true }, + { "Claimtrie", "supportclaim", &supportclaim, true }, + { "Claimtrie", "abandonsupport", &abandonsupport, true }, }; void RegisterWalletRPCCommands(CRPCTable &tableRPC)