diff --git a/asmap.dat b/asmap.dat index aaf3fdada..03eac1146 100644 Binary files a/asmap.dat and b/asmap.dat differ diff --git a/configure.ac b/configure.ac index c9cf3e6a9..a7be75c61 100644 --- a/configure.ac +++ b/configure.ac @@ -3,12 +3,12 @@ AC_PREREQ([2.60]) define(_CLIENT_VERSION_MAJOR, 3) dnl Must be kept in sync with src/clientversion.h , ugh! define(_CLIENT_VERSION_MINOR, 10) -define(_CLIENT_VERSION_REVISION, 3) +define(_CLIENT_VERSION_REVISION, 4) define(_CLIENT_VERSION_BUILD, 50) define(_ZC_BUILD_VAL, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, m4_incr(_CLIENT_VERSION_BUILD), m4_eval(_CLIENT_VERSION_BUILD < 50), 1, m4_eval(_CLIENT_VERSION_BUILD - 24), m4_eval(_CLIENT_VERSION_BUILD == 50), 1, , m4_eval(_CLIENT_VERSION_BUILD - 50))) define(_CLIENT_VERSION_SUFFIX, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, _CLIENT_VERSION_REVISION-beta$1, m4_eval(_CLIENT_VERSION_BUILD < 50), 1, _CLIENT_VERSION_REVISION-rc$1, m4_eval(_CLIENT_VERSION_BUILD == 50), 1, _CLIENT_VERSION_REVISION, _CLIENT_VERSION_REVISION-$1))) define(_CLIENT_VERSION_IS_RELEASE, true) -define(_COPYRIGHT_YEAR, 2024) +define(_COPYRIGHT_YEAR, 2025) AC_INIT([Hush],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_SUFFIX(_ZC_BUILD_VAL)],[https://git.hush.is/hush/hush3],[hush]) AC_CONFIG_SRCDIR([src/main.cpp]) AC_CONFIG_HEADERS([src/config/bitcoin-config.h]) @@ -644,6 +644,17 @@ AX_BOOST_PROGRAM_OPTIONS AX_BOOST_THREAD AX_BOOST_CHRONO +dnl Prevent use of std::unary_function, which was removed in C++17, +dnl and will generate warnings with newer compilers for Boost +dnl older than 1.80. +dnl See: https://github.com/boostorg/container_hash/issues/22, https://github.com/boostorg/config/pull/430. + +dnl _HAS_AUTO_PTR_ETC check required only for boost 1.72 and older, for 1.73+ we can use BOOST_NO_CXX98_FUNCTION_BASE +AX_CHECK_PREPROC_FLAG([-D_HAS_AUTO_PTR_ETC=0], [BOOST_CPPFLAGS="$BOOST_CPPFLAGS -D_HAS_AUTO_PTR_ETC=0"], [], [$CXXFLAG_WERROR], + [AC_LANG_PROGRAM([[#include ]])]) +AX_CHECK_PREPROC_FLAG([-DBOOST_NO_CXX98_FUNCTION_BASE], [BOOST_CPPFLAGS="$BOOST_CPPFLAGS -DBOOST_NO_CXX98_FUNCTION_BASE"], [], [$CXXFLAG_WERROR], + [AC_LANG_PROGRAM([[#include ]])]) + fi if test x$use_reduce_exports = xyes; then @@ -947,11 +958,12 @@ echo echo " target os = $TARGET_OS" echo " build os = $BUILD_OS" echo -echo " CC = $CC" -echo " CFLAGS = $CFLAGS" -echo " CPPFLAGS = $CPPFLAGS" -echo " CXX = $CXX" -echo " CXXFLAGS = $CXXFLAGS" -echo " LDFLAGS = $LDFLAGS" -echo " ARFLAGS = $ARFLAGS" +echo " CC = $CC" +echo " CFLAGS = $CFLAGS" +echo " CPPFLAGS = $CPPFLAGS" +echo " CXX = $CXX" +echo " CXXFLAGS = $CXXFLAGS" +echo " BOOST_CPPFLAGS = $BOOST_CPPFLAGS" +echo " LDFLAGS = $LDFLAGS" +echo " ARFLAGS = $ARFLAGS" echo diff --git a/contrib/asmap/README.md b/contrib/asmap/README.md index c23d8da74..cbb6f7526 100644 --- a/contrib/asmap/README.md +++ b/contrib/asmap/README.md @@ -2,4 +2,5 @@ Files relating to -asmap=... feature, to use ASNs -Originally from https://github.com/sipa/asmap/blob/master/demo.map +From https://github.com/asmap/asmap-data/blob/main/1730210400_asmap.dat +[Upstream Commit dcce69e48211facdbd52a461cfce333d5800b7de](https://github.com/asmap/asmap-data/commit/dcce69e48211facdbd52a461cfce333d5800b7de) diff --git a/contrib/asmap/asmap.dat b/contrib/asmap/asmap.dat index aaf3fdada..03eac1146 100644 Binary files a/contrib/asmap/asmap.dat and b/contrib/asmap/asmap.dat differ diff --git a/contrib/avg_blocktime.pl b/contrib/avg_blocktime.pl new file mode 100755 index 000000000..adfa25427 --- /dev/null +++ b/contrib/avg_blocktime.pl @@ -0,0 +1,57 @@ +#!/usr/bin/perl +# Copyright (c) 2016-2022 The Hush developers +# Distributed under the GPLv3 software license, see the accompanying +# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html + +use warnings; +use strict; +my $cli = "./src/hush-cli"; +my $coin = shift || ''; +unless (-e $cli) { + die "$cli does not exist, aborting"; +} +if ($coin) { + $cli .= " -ac_name=$coin"; +} +my $getblock= "$cli getblock"; +my $start = shift || 1850000; +my $end = shift || 1853000; + +my $blocks = qx{$cli getblockcount}; +if($?) { + print "ERROR, is node running? exiting...\n"; + exit 1; +} + +if ($end > $blocks) { + print "The block $end is beyond how many blocks this node knows about, exiting...\n"; + exit 1; +} + +if ($start < 1) { + print "Invalid start block $start, exiting...\n"; + exit 1; +} + +my $block = $start; +my $prev_blocktime = 0; +my $total_duration = 0; + +while ($block <= $end) { + my $blocktime = qx{$getblock $block | grep time}; + chomp $blocktime; + if($blocktime =~ m/(\d+)/) { + $blocktime = $1; + } + my $duration = $blocktime - $prev_blocktime; + if($prev_blocktime > 0) { + $total_duration += $duration; + } + #print "$block $blocktime $prev_blocktime $duration\n"; + print "$block $duration\n"; + $block++; + $prev_blocktime = $blocktime; +} +my $num_blocks = $end - $start; +my $avg_duration = $total_duration / $num_blocks; +print "Avg blocktime over $num_blocks blocks = $avg_duration\n"; diff --git a/contrib/block_time.pl b/contrib/block_time.pl index 3e3cf014d..2fc9299fb 100755 --- a/contrib/block_time.pl +++ b/contrib/block_time.pl @@ -5,7 +5,7 @@ use warnings; use strict; -# Given a block time, estimate when it will happen +# Given a block height, estimate when it will happen my $block = shift || die "Usage: $0 123"; my $coin = shift || ''; my $hush = "./src/hush-cli"; @@ -30,7 +30,7 @@ if ($block <= $blockcount) { if ($coin eq 'DRAGONX') { $minpb = 0.6; # minutes per block } elsif ($coin) { - # TODO: support custom bloctimes + # TODO: support custom blocktimes $minpb = 1; # assumes default blocktime of 60s } my $minutes = $diff*$minpb; diff --git a/contrib/debian/changelog b/contrib/debian/changelog index 535e69401..421d39379 100644 --- a/contrib/debian/changelog +++ b/contrib/debian/changelog @@ -1,14 +1,14 @@ hush (3.10.3) stable; urgency=high - * Use WolfSSL 4.8.1 which prevents nodes from getting stuck in general and when shutting down + * Use WolfSSL 4.8.1 to prevent nodes from getting stuck and when shutting down * Set minimum fee to 0.1 HUSH per 1 KB of data if `OP_RETURN` is used. - * A feature in absurd fee that allows sending amount < fee, can be used only in a full node by advanced users. + * Absurd fee allows sending amount < fee; used only in a full node. * Fixed various bugs relating to lock ordering and missing locks - * Fixed RPC docs for addnode and disconnectnode having the incorrect port for HACs + * Fixed RPC docs for addnode and disconnectnode having incorrect port for HACs * Value of DEBUG_LOCKORDER is now logged to debug.log on node startup * New script ./debug-build.sh to make it easier to make debug builds * DragonX nodes now have their own list of seed nodes - * Hush nodes now have their own protocol version which is independent from HACs + * Hush nodes now have own protocol version independent from HACs * Fixed off-by-one bug in `newSietchRecipient` * Performance improvement to `ActivateBestChainStep` ed86f2dd1d * Improved navigation in README for new users. diff --git a/contrib/debian/compat b/contrib/debian/compat index ec635144f..b1bd38b62 100644 --- a/contrib/debian/compat +++ b/contrib/debian/compat @@ -1 +1 @@ -9 +13 diff --git a/contrib/debian/hush.example b/contrib/debian/hush.example index 924659c02..43111f548 100644 --- a/contrib/debian/hush.example +++ b/contrib/debian/hush.example @@ -1 +1 @@ -DEBIAN/examples/zcash.conf +DEBIAN/examples/HUSH3.conf diff --git a/contrib/hush_seed_nodes.txt b/contrib/hush_seed_nodes.txt index d176dc884..8edf78b70 100644 --- a/contrib/hush_seed_nodes.txt +++ b/contrib/hush_seed_nodes.txt @@ -12,9 +12,6 @@ 155.138.228.68 107.174.70.251 # hush_scanner uses nc which cannot deal with these -# 56wqzfj6mhxgsv3h3nh3pdocguogxfxud55libqjhjsdh5alfsko2iqd.onion -# hushv3h6mbxd2pptj42reko3jcexcgnz5zvp3mqcu6myto3jhhn4yzyd.onion -# hushv3xvheqh42ms3ld2nh555muscietkib7gycb7s4psbrjsysfywqd.onion # iljqq7nnmw2ij2ezl334cerwwmgzmmbmoc3n4saditd2xhi3xohq.b32.i2p # [2a0c:b641:6f1:34::2] # [2a0c:b641:6f1:c::2] @@ -28,8 +25,3 @@ node5.hush.is node6.hush.is node7.hush.is node8.hush.is -node1.hush.land -node2.hush.land -node3.hush.land -node4.hush.land -node5.hush.land diff --git a/contrib/seeds/nodes_main.txt b/contrib/seeds/nodes_main.txt index 1ad72eeec..c7ac709e7 100644 --- a/contrib/seeds/nodes_main.txt +++ b/contrib/seeds/nodes_main.txt @@ -1,18 +1,15 @@ -# node1.hush.land +# node1.hush.is 103.69.128.148 -# node2.hush.land -194.29.100.208 +# node2.hush.is +194.29.100.179 -# node3.hush.land +# node3.hush.is 45.132.75.69 -# node4.hush.land +# node4.hush.is 170.205.39.39 -# node5.hush.land -178.250.189.141 - # lite.hushpool.is 149.28.102.219 @@ -22,10 +19,13 @@ # wtfistheinternet.hush.is 107.174.70.251 +# arrakis.hush.is +178.250.189.141 + # torv3 -56wqzfj6mhxgsv3h3nh3pdocguogxfxud55libqjhjsdh5alfsko2iqd.onion -hushv3h6mbxd2pptj42reko3jcexcgnz5zvp3mqcu6myto3jhhn4yzyd.onion -hushv3xvheqh42ms3ld2nh555muscietkib7gycb7s4psbrjsysfywqd.onion +b2dln7mw7ydnuopls444tuixujhcw5kn5o22cna6gqfmw2fl6drb5nad.onion +dslbaa5gut5kapqtd44pbg65tpl5ydsamfy62hjbldhfsvk64qs57pyd.onion +vsqdumnh5khjbrzlxoeucbkiuaictdzyc3ezjpxpp2ph3gfwo2ptjmyd.onion # ipv6 2a0c:b641:6f1:18e::2 diff --git a/depends/packages/boost.mk b/depends/packages/boost.mk index f7d34c253..ac9f5f74c 100644 --- a/depends/packages/boost.mk +++ b/depends/packages/boost.mk @@ -7,7 +7,7 @@ $(package)_sha256_hash=59c9b274bc451cf91a9ba1dd2c7fdcaf5d60b1b3aa83f2c9fa143417c $(package)_download_path=https://git.hush.is/attachments $(package)_file_name=7b13759e-8623-4e48-ae08-f78502f4b6a5 $(package)_download_file=7b13759e-8623-4e48-ae08-f78502f4b6a5 -$(package)_patches=fix-Solaris.patch +$(package)_patches=fix-Solaris.patch ignore_wnonnull_gcc_11.patch range_enums_clang_16.patch define $(package)_set_vars $(package)_config_opts_release=variant=release @@ -32,7 +32,9 @@ endef define $(package)_preprocess_cmds echo "using $(boost_toolset_$(host_os)) : : $($(package)_cxx) : \"$($(package)_cxxflags) $($(package)_cppflags)\" \"$($(package)_ldflags)\" \"$(boost_archiver_$(host_os))\" \"$(host_STRIP)\" \"$(host_RANLIB)\" \"$(host_WINDRES)\" : ;" > user-config.jam&& \ - patch -p1 < $($(package)_patch_dir)/fix-Solaris.patch + patch -p1 < $($(package)_patch_dir)/fix-Solaris.patch &&\ + patch -p2 < $($(package)_patch_dir)/ignore_wnonnull_gcc_11.patch &&\ + patch -p2 < $($(package)_patch_dir)/range_enums_clang_16.patch endef define $(package)_config_cmds diff --git a/depends/packages/libgmp.mk b/depends/packages/libgmp.mk index 92cd95fbc..4ec7cde16 100644 --- a/depends/packages/libgmp.mk +++ b/depends/packages/libgmp.mk @@ -8,22 +8,25 @@ $(package)_sha256_hash=67df06ed50f288bd7b1ec6907973684fb7cf1196f2cb368b59d423e42 $(package)_git_commit=42ba95387cdfd67399f7aac52fddb8d6e1258ee6 $(package)_dependencies= $(package)_config_opts=--enable-cxx --disable-shared -else ifeq ($(build_os),darwin) +else +#else ifeq ($(build_os),darwin) $(package)_version=6.1.1 $(package)_download_path=https://git.hush.is/attachments $(package)_file_name=d613c855-cd92-4efb-b893-658496852019 $(package)_download_file=d613c855-cd92-4efb-b893-658496852019 $(package)_sha256_hash=a8109865f2893f1373b0a8ed5ff7429de8db696fc451b1036bd7bdf95bbeffd6 $(package)_config_opts=--enable-cxx --disable-shared -else -$(package)_version=6.1.1 -$(package)_download_path=https://ftp.gnu.org/gnu/gmp -$(package)_file_name=gmp-$($(package)_version).tar.bz2 -$(package)_sha256_hash=a8109865f2893f1373b0a8ed5ff7429de8db696fc451b1036bd7bdf95bbeffd6 -$(package)_dependencies= -$(package)_config_opts=--enable-cxx --disable-shared endif +#else +#$(package)_version=6.1.1 +#$(package)_download_path=https://ftp.gnu.org/gnu/gmp +#$(package)_file_name=gmp-$($(package)_version).tar.bz2 +#$(package)_sha256_hash=a8109865f2893f1373b0a8ed5ff7429de8db696fc451b1036bd7bdf95bbeffd6 +#$(package)_dependencies= +#$(package)_config_opts=--enable-cxx --disable-shared +#endif + define $(package)_config_cmds $($(package)_autoconf) --host=$(host) --build=$(build) endef diff --git a/depends/patches/boost/ignore_wnonnull_gcc_11.patch b/depends/patches/boost/ignore_wnonnull_gcc_11.patch new file mode 100644 index 000000000..f914c1e68 --- /dev/null +++ b/depends/patches/boost/ignore_wnonnull_gcc_11.patch @@ -0,0 +1,68 @@ +diff --git a/include/boost/concept/detail/general.hpp b/include/boost/concept/detail/general.hpp +index eeb08750..8d7d6f69 100644 +--- a/include/boost/concept/detail/general.hpp ++++ b/include/boost/concept/detail/general.hpp +@@ -28,7 +28,14 @@ namespace detail + template + struct requirement + { ++# if defined(BOOST_GCC) && (BOOST_GCC >= 110000) ++# pragma GCC diagnostic push ++# pragma GCC diagnostic ignored "-Wnonnull" ++# endif + static void failed() { ((Model*)0)->~Model(); } ++# if defined(BOOST_GCC) && (BOOST_GCC >= 110000) ++# pragma GCC diagnostic pop ++# endif + }; + + struct failed {}; +@@ -36,7 +43,14 @@ struct failed {}; + template + struct requirement + { ++# if defined(BOOST_GCC) && (BOOST_GCC >= 110000) ++# pragma GCC diagnostic push ++# pragma GCC diagnostic ignored "-Wnonnull" ++# endif + static void failed() { ((Model*)0)->~Model(); } ++# if defined(BOOST_GCC) && (BOOST_GCC >= 110000) ++# pragma GCC diagnostic pop ++# endif + }; + + # ifdef BOOST_OLD_CONCEPT_SUPPORT +@@ -44,7 +58,14 @@ struct requirement + template + struct constraint + { ++# if defined(BOOST_GCC) && (BOOST_GCC >= 110000) ++# pragma GCC diagnostic push ++# pragma GCC diagnostic ignored "-Wnonnull" ++# endif + static void failed() { ((Model*)0)->constraints(); } ++# if defined(BOOST_GCC) && (BOOST_GCC >= 110000) ++# pragma GCC diagnostic pop ++# endif + }; + + template +diff --git a/include/boost/concept/usage.hpp b/include/boost/concept/usage.hpp +index 373de63a..fe88b5f5 100644 +--- a/include/boost/concept/usage.hpp ++++ b/include/boost/concept/usage.hpp +@@ -13,7 +13,14 @@ namespace boost { namespace concepts { + template + struct usage_requirements + { ++# if defined(BOOST_GCC) && (BOOST_GCC >= 110000) ++# pragma GCC diagnostic push ++# pragma GCC diagnostic ignored "-Wnonnull" ++# endif + ~usage_requirements() { ((Model*)0)->~Model(); } ++# if defined(BOOST_GCC) && (BOOST_GCC >= 110000) ++# pragma GCC diagnostic pop ++# endif + }; + + # if BOOST_WORKAROUND(__GNUC__, <= 3) diff --git a/depends/patches/boost/range_enums_clang_16.patch b/depends/patches/boost/range_enums_clang_16.patch new file mode 100644 index 000000000..3e049e261 --- /dev/null +++ b/depends/patches/boost/range_enums_clang_16.patch @@ -0,0 +1,75 @@ +diff --git a/include/boost/numeric/conversion/detail/int_float_mixture.hpp b/include/boost/numeric/conversion/detail/int_float_mixture.hpp +index 464e527..7690d07 100644 +--- a/include/boost/numeric/conversion/detail/int_float_mixture.hpp ++++ b/include/boost/numeric/conversion/detail/int_float_mixture.hpp +@@ -16,15 +16,15 @@ + #include "boost/numeric/conversion/int_float_mixture_enum.hpp" + #include "boost/numeric/conversion/detail/meta.hpp" + +-#include "boost/mpl/integral_c.hpp" ++#include "boost/type_traits/integral_constant.hpp" + + namespace boost { namespace numeric { namespace convdetail + { + // Integral Constants for 'IntFloatMixture' +- typedef mpl::integral_c int2int_c ; +- typedef mpl::integral_c int2float_c ; +- typedef mpl::integral_c float2int_c ; +- typedef mpl::integral_c float2float_c ; ++ typedef boost::integral_constant int2int_c ; ++ typedef boost::integral_constant int2float_c ; ++ typedef boost::integral_constant float2int_c ; ++ typedef boost::integral_constant float2float_c ; + + // Metafunction: + // +diff --git a/include/boost/numeric/conversion/detail/sign_mixture.hpp b/include/boost/numeric/conversion/detail/sign_mixture.hpp +index c7f9e42..fde1584 100644 +--- a/include/boost/numeric/conversion/detail/sign_mixture.hpp ++++ b/include/boost/numeric/conversion/detail/sign_mixture.hpp +@@ -16,15 +16,15 @@ + #include "boost/numeric/conversion/sign_mixture_enum.hpp" + #include "boost/numeric/conversion/detail/meta.hpp" + +-#include "boost/mpl/integral_c.hpp" ++#include "boost/type_traits/integral_constant.hpp" + + namespace boost { namespace numeric { namespace convdetail + { + // Integral Constants for 'SignMixture' +- typedef mpl::integral_c unsig2unsig_c ; +- typedef mpl::integral_c sig2sig_c ; +- typedef mpl::integral_c sig2unsig_c ; +- typedef mpl::integral_c unsig2sig_c ; ++ typedef boost::integral_constant unsig2unsig_c ; ++ typedef boost::integral_constant sig2sig_c ; ++ typedef boost::integral_constant sig2unsig_c ; ++ typedef boost::integral_constant unsig2sig_c ; + + // Metafunction: + // +diff --git a/include/boost/numeric/conversion/detail/udt_builtin_mixture.hpp b/include/boost/numeric/conversion/detail/udt_builtin_mixture.hpp +index 36dbc49..a39d29f 100644 +--- a/include/boost/numeric/conversion/detail/udt_builtin_mixture.hpp ++++ b/include/boost/numeric/conversion/detail/udt_builtin_mixture.hpp +@@ -15,15 +15,15 @@ + #include "boost/numeric/conversion/udt_builtin_mixture_enum.hpp" + #include "boost/numeric/conversion/detail/meta.hpp" + +-#include "boost/mpl/integral_c.hpp" ++#include "boost/type_traits/integral_constant.hpp" + + namespace boost { namespace numeric { namespace convdetail + { + // Integral Constants for 'UdtMixture' +- typedef mpl::integral_c builtin2builtin_c ; +- typedef mpl::integral_c builtin2udt_c ; +- typedef mpl::integral_c udt2builtin_c ; +- typedef mpl::integral_c udt2udt_c ; ++ typedef boost::integral_constant builtin2builtin_c ; ++ typedef boost::integral_constant builtin2udt_c ; ++ typedef boost::integral_constant udt2builtin_c ; ++ typedef boost::integral_constant udt2udt_c ; + + // Metafunction: + // diff --git a/doc/DEVELOPING.md b/doc/DEVELOPING.md index 1de87fcc6..4b6302daf 100644 --- a/doc/DEVELOPING.md +++ b/doc/DEVELOPING.md @@ -89,6 +89,41 @@ After successfully compiling Hush, you can generate a debian package of these bi This command will not work on Mac OS X. Currently you cannot generate a Debian package from operating systems other than Linux. Oh well. +## Adding new CLI options that change consensus rules + +If you are adding a new CLI option that changes consensus rules such as +`-ac_foo` then make sure to also modify the the `extraptr` variable in +`src/hush_utils.h` with the value of the `ASSETCHAINS_FOO` variable. Our +convention is that if a CLI option affects consensus, it MUST begin with `-ac_` +and if it does not affect consensus (such as -datadir) then it MUST NOT begin +with `-ac_`. Originally the `ac` meant "asset chain" but now it means "affects +consensus" or "arrakis chain", take your pick. + +The reason for this is the `extraptr` variable is used to deterministically +generate the "chain magic" `ASSETCHAINS_MAGIC` as well as the default p2p and +rpc ports for a HAC. This means that if two HACs have *exactly* the same +consensus options except for `-ac_foo` (even if they have the same `-ac_name`) +then they will still get different chain magic values and p2p and rpc ports. +This is a way of preventing HACs with different consensus rules from trying to +talk with each other when they should not. For instance, if you make a HAC with +`-ac_name=MYCOIN` on one machine with one set of consensus rules and then +another HAC with the same name on a different machine but with different +consensus rules, the chain magic being different (as well as the default p2p +port) are ways to prevent them from communicating. This is good because these +two HACs will eventually chain fork due to their different consensus rules and +ban each other, wasting time, bandwidth and sanity. + +An example of doing this can be seen in the commit +https://git.hush.is/hush/hush3/commit/d39503c13b7419620d138050899705ced557eef9 +which added the `-ac_burn` consensus changing option. + +The chain magic value is the CRC32 checksum of every non-default consensus +option the HAC uses. + +Also make sure to actually validate the new consensus option! That is probably +going to happen in `src/main.cpp` . If you don't, a malicious node can just +modify `src/miner.cpp` to do whatever they want. + ## Updates to this document If you think something else should be in this guide, please send your suggestions! diff --git a/doc/cjdns.md b/doc/cjdns.md index 4b47bb8ac..17f5773d2 100644 --- a/doc/cjdns.md +++ b/doc/cjdns.md @@ -106,10 +106,7 @@ details. ## CJDNS-related information in Hush There are several ways to see your CJDNS address in Hush: -- in the "Local addresses" output of CLI `-netinfo` - in the "localaddresses" output of RPC `getnetworkinfo` -To see which CJDNS peers your node is connected to, use `hush-cli -netinfo 4` -or the `getpeerinfo` RPC (i.e. `hush-cli getpeerinfo`). - -You can use the `getnodeaddresses` RPC to fetch a number of CJDNS peers known to your node; run `hush-cli help getnodeaddresses` for details. +To see which CJDNS peers your node is connected to, use `hush-cli getpeerinfo` +RPC. diff --git a/doc/help.md b/doc/help.md new file mode 100644 index 000000000..b0559a221 --- /dev/null +++ b/doc/help.md @@ -0,0 +1,52 @@ +# How To Fix Various Problems + +This document will document how to recover and fix various issues that users may run into. + +## Database corruption + +The problem: You see an error like + +``` +EXCEPTION: 15dbwrapper_error +Database corrupted +``` + +This means your blockchain data on disk is corrupted. This is not the same as wallet corruption. +The fix to this is to do a fresh sync using the same wallet.dat file. You need to find +where this data lives on your computer and then move some files around, then restart the wallet. + +### On Linux + +If you are on Linux, your wallet lives at `~/.hush/HUSH3/wallet.dat` or if you have a really old +legacy wallet it could be at `~/.komodo/HUSH3/wallet.dat` . We will assume the first location. + +What we will do is backup your entire `HUSH3` directory, including the blockchain data and wallet, +then copy the wallet from there into a new directory. This is a non-destructive process that creates +a new backup of your wallet. + +``` +# Make sure your node is not running before doing any of this! +# Doing this while your node is running could corrupt your wallet.dat +cd ~/.hush +mv HUSH3 HUSH3-backup # backup all data +mkdir HUSH3 # make a new dir +cp HUSH3-backup/wallet.dat HUSH3/wallet.dat # copy old wallet to new dir +``` + +At this point if you are GUI user using SilentDragon, you can restart the GUI wallet +and it should perform a fresh sync with your wallet. This will likely take at least +a few hours or much longer depending on your internet connection. + +### On Windows + +Basically you want to find where your Hush wallet is, move the directory that contains +that wallet.dat file to a new name, then create that same directory and then copy wallet.dat into it. +Different versions of Windows store things in different locations. + +For example your wallet might be in `C:\Users\Admin\AppData\Roaming\Hush\HUSH3\wallet.dat` . +That means you need to + + * Rename the directory `C:\Users\Admin\AppData\Roaming\Hush\HUSH3` to something like `C:\Users\Admin\AppData\Roaming\Hush\HUSH3-backup` + * Create a new directory called `C:\Users\Admin\AppData\Roaming\Hush\HUSH3` + * Copy the file `C:\Users\Admin\AppData\Roaming\Hush\HUSH3-backup\wallet.dat` to `C:\Users\Admin\AppData\Roaming\Hush\HUSH3` + * Now start the SilentDragon GUI wallet diff --git a/doc/i2p.md b/doc/i2p.md index 8cc3a6557..3e5fabb39 100644 --- a/doc/i2p.md +++ b/doc/i2p.md @@ -100,15 +100,11 @@ address. There are several ways to see your I2P address if accepting incoming I2P connections (`-i2pacceptincoming`): -- in the "Local addresses" output of CLI `-netinfo` - in the "localaddresses" output of RPC `getnetworkinfo` - in the debug log (grep for `AddLocal`; the I2P address ends in `.b32.i2p`) - in the i2p/i2pd web console under "SAM Sessions" -To see which I2P peers your node is connected to, use `hush-cli -netinfo 4` -or the `getpeerinfo` RPC (e.g. `hush-cli getpeerinfo`). - -To see which I2P addresses your node knows, use the `getnodeaddresses 0 i2p` +To see which I2P peers your node is connected to, use `hush-cli getpeerinfo` RPC. ## Compatibility diff --git a/doc/man/hush-cli.1 b/doc/man/hush-cli.1 index bab9652d0..8547a839a 100644 --- a/doc/man/hush-cli.1 +++ b/doc/man/hush-cli.1 @@ -1,9 +1,9 @@ -.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. -.TH HUSH-CLI "1" "February 2024" "hush-cli v3.10.2" "User Commands" +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.13. +.TH HUSH-CLI "1" "July 2025" "hush-cli v3.10.4" "User Commands" .SH NAME -hush-cli \- manual page for hush-cli v3.10.2 +hush-cli \- manual page for hush-cli v3.10.4 .SH DESCRIPTION -Hush RPC client version v3.10.2\-138cd7ab6 +Hush RPC client version v3.10.4\-7e63e2f01\-dirty .PP In order to ensure you are adequately protecting your privacy when using Hush, please see . @@ -75,7 +75,7 @@ Read extra arguments from standard input, one per line until EOF/Ctrl\-D In order to ensure you are adequately protecting your privacy when using Hush, please see . -Copyright (C) 2016-2024 Duke Leto and The Hush Developers +Copyright (C) 2016-2025 Duke Leto and The Hush Developers Copyright (C) 2016-2020 jl777 and SuperNET developers diff --git a/doc/man/hush-tx.1 b/doc/man/hush-tx.1 index 69b6f9477..939d2deed 100644 --- a/doc/man/hush-tx.1 +++ b/doc/man/hush-tx.1 @@ -1,9 +1,9 @@ -.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. -.TH HUSH-TX "1" "February 2024" "hush-tx v3.10.2" "User Commands" +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.13. +.TH HUSH-TX "1" "July 2025" "hush-tx v3.10.4" "User Commands" .SH NAME -hush-tx \- manual page for hush-tx v3.10.2 +hush-tx \- manual page for hush-tx v3.10.4 .SH DESCRIPTION -hush\-tx utility version v3.10.2\-138cd7ab6 +hush\-tx utility version v3.10.4\-7e63e2f01\-dirty .SS "Usage:" .TP hush\-tx [options] [commands] @@ -89,7 +89,7 @@ Set register NAME to given JSON\-STRING In order to ensure you are adequately protecting your privacy when using Hush, please see . -Copyright (C) 2016-2024 Duke Leto and The Hush Developers +Copyright (C) 2016-2025 Duke Leto and The Hush Developers Copyright (C) 2016-2020 jl777 and SuperNET developers diff --git a/doc/man/hushd.1 b/doc/man/hushd.1 index 4164550cc..4eda8843a 100644 --- a/doc/man/hushd.1 +++ b/doc/man/hushd.1 @@ -1,9 +1,9 @@ -.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. -.TH HUSHD "1" "February 2024" "hushd v3.10.2" "User Commands" +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.13. +.TH HUSHD "1" "July 2025" "hushd v3.10.4" "User Commands" .SH NAME -hushd \- manual page for hushd v3.10.2 +hushd \- manual page for hushd v3.10.4 .SH DESCRIPTION -Hush Daemon version v3.10.2\-138cd7ab6 +Hush Daemon version v3.10.4\-7e63e2f01\-dirty .PP In order to ensure you are adequately protecting your privacy when using Hush, please see . @@ -78,7 +78,7 @@ applied) .HP \fB\-par=\fR .IP -Set the number of script verification threads (\fB\-12\fR to 16, 0 = auto, <0 = +Set the number of script verification threads (\fB\-8\fR to 16, 0 = auto, <0 = leave that many cores free, default: 0) .HP \fB\-pid=\fR @@ -245,6 +245,11 @@ Disable Ipv4 network connections (default: 0) .IP Disable Ipv6 network connections (default: 0) .HP +\fB\-clearnet\fR +.IP +Enable clearnet connections. Setting to 0 will disable clearnet and use +sane defaults for Tor/i2p (default: 1) +.HP \fB\-permitbaremultisig\fR .IP Relay non\-P2SH multisig (default: 1) @@ -395,11 +400,6 @@ Keep the last transactions (default: 200) .IP Keep transactions for at least blocks (default: 10000) .HP -\fB\-opretmintxfee=\fR -.IP -Minimum fee (in HUSH/kB) to allow for OP_RETURN transactions (default: -400000) -.HP \fB\-paytxfee=\fR .IP Fee (in HUSH/kB) to add to transactions you send (default: 0.00) @@ -674,6 +674,14 @@ Block time in seconds, default is 60 .IP BEAM integration .HP +\fB\-ac_burn\fR +.IP +Allow sending funds to the transparent burn address when \fB\-ac_private\fR=\fI\,1\/\fR +.HP +\fB\-ac_minopreturnfee\fR +.IP +OP_RETURN minimum fee per tx, regardless of tx size, default is 1 coin +.HP \fB\-ac_coda\fR .IP CODA integration @@ -751,7 +759,7 @@ Enforce transaction\-rate limit, default 0 In order to ensure you are adequately protecting your privacy when using Hush, please see . -Copyright (C) 2016-2024 Duke Leto and The Hush Developers +Copyright (C) 2016-2025 Duke Leto and The Hush Developers Copyright (C) 2016-2020 jl777 and SuperNET developers diff --git a/doc/release-process.md b/doc/release-process.md index f60b26632..c1adb3269 100644 --- a/doc/release-process.md +++ b/doc/release-process.md @@ -58,7 +58,7 @@ Look for Git issues that should be fixed in the next release. Especially low-ris Install deps on Linux: - apt-get install help2man debchange + apt-get install help2man devscripts ## Release process - If new seeds are being added or seeds are changing: diff --git a/doc/relnotes/README.md b/doc/relnotes/README.md index 41f6a786b..9e7ae288e 100644 --- a/doc/relnotes/README.md +++ b/doc/relnotes/README.md @@ -8,7 +8,38 @@ and now are officially part of our Git repo. Hush releases are on our own Gitea at git.hush.is and no longer on Github, since they banned Duke Leto and also because they censor many people around the world and work with -evil organizations. +evil organizations. They also use all your "private" repos to train their AI. + +# Hush 3.10.4 "Hazy Hākuturi" + * `z_sendmany` changes: + * Now supports UTF8 strings as memos instead of requiring hex + * Give a memo as "utf8:this is my memo" and it will automatically be hex encoded + * New optional 5th argument to `z_sendmany` allows specifying an `OP_RETURN` for the transaction + * `OP_RETURN` can also be specified as a UTF8 string with 'utf8:' prefix or hex encoded + * Updated seed node list + * New CLI option -clearnet=0 which disables clearnet networking, i.e. only Tor or i2p are allowed + * Note that at least one of a Tor or i2p daemon are needed for -clearnet=0, both are not needed but supported + * -clearnet=0 is equivalent to the following CLI params: +``` +-disableipv4=1 +-disableipv6=1 +-dns=0 +-dnsseed=0 +-bind=127.0.0.1 +-onlynet="onion" +-onlynet="i2p" +-onion="127.0.0.1:9050 +-i2psam="127.0.0.1:7656" +``` + * Using -mineraddress with -clearnet=0 is disallowed since it would reduce privacy + * Add CLI options `-disableipv4` and `-disableipv6` which can be used to disable IPv4 or IPv6 + * New HAC CLI consensus option `-ac_minopreturnfee` + * `OP_RETURN` minimum fee per tx, regardless of tx size, default is 1 coin, specified in puposhis + * Updated ASmap, which maps IP addresses to Autonomous System (AS) numbers + * Added ASmap health check, which logs stats about the ASmap once per 24 hours + * Improved cjdns/i2p/tor docs + * Updated protocol version + * Fixed warnings caused by newer compilers # Hush 3.10.3 "Persistent Pezoporus" diff --git a/doc/tor.md b/doc/tor.md index fe0608888..002b95754 100644 --- a/doc/tor.md +++ b/doc/tor.md @@ -16,7 +16,6 @@ configure Tor. ## How to see information about your Tor configuration via Hush There are several ways to see your local onion address in Hush: -- in the "Local addresses" output of CLI `-netinfo` - in the "localaddresses" output of RPC `getnetworkinfo` - in the debug log (grep for "AddLocal"; the Tor address ends in `.onion`) @@ -27,9 +26,6 @@ CLI `-addrinfo` returns the number of addresses known to your node per network. This can be useful to see how many onion peers your node knows, e.g. for `-onlynet=onion`. -To fetch a number of onion addresses that your node knows, for example seven -addresses, use the `getnodeaddresses 7 onion` RPC. - ## 1. Run Hush behind a Tor proxy The first step is running Hush behind a Tor proxy. This will already anonymize all diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index e37305ae3..15a726d09 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -87,7 +87,7 @@ static int AppInitRPC(int argc, char* argv[]) ParseParameters(argc, argv); std:string name; - // default HSC is HUSH3 itself, which to the internals, is also an HSC + // default HAC is HUSH3 itself, which to the internals, is also a HAC name = GetArg("-ac_name","HUSH3"); if ( !name.empty() ) diff --git a/src/cc/CCinclude.h b/src/cc/CCinclude.h index cacfad593..0c7737234 100644 --- a/src/cc/CCinclude.h +++ b/src/cc/CCinclude.h @@ -47,49 +47,6 @@ #define SATOSHIDEN ((uint64_t)100000000L) #define dstr(x) ((double)(x) / SATOSHIDEN) #define CCDISABLEALL memset(ASSETCHAINS_CCDISABLES,1,sizeof(ASSETCHAINS_CCDISABLES)) -#define CCENABLE(x) ASSETCHAINS_CCDISABLES[((uint8_t)x)] = 0 - -/* moved to hush_cJSON.h -#ifndef _BITS256 -#define _BITS256 - union _bits256 { uint8_t bytes[32]; uint16_t ushorts[16]; uint32_t uints[8]; uint64_t ulongs[4]; uint64_t txid; }; - typedef union _bits256 bits256; -#endif -*/ -/// \endcond - -/// identifiers of additional data blobs in token opreturn script: -/// @see EncodeTokenCreateOpRet(uint8_t funcid, std::vector origpubkey, std::string name, std::string description, std::vector> oprets) -/// @see GetOpretBlob -enum opretid : uint8_t { - // cc contracts data: - OPRETID_NONFUNGIBLEDATA = 0x11, //!< NFT data id - OPRETID_ASSETSDATA = 0x12, //!< assets contract data id - OPRETID_GATEWAYSDATA = 0x13, //!< gateways contract data id - OPRETID_CHANNELSDATA = 0x14, //!< channels contract data id - OPRETID_HEIRDATA = 0x15, //!< heir contract data id - OPRETID_ROGUEGAMEDATA = 0x16, //!< rogue contract data id - OPRETID_PEGSDATA = 0x17, //!< pegs contract data id - - /*! \cond INTERNAL */ - // non cc contract data: - OPRETID_FIRSTNONCCDATA = 0x80, - /*! \endcond */ - OPRETID_BURNDATA = 0x80, //!< burned token data id - OPRETID_IMPORTDATA = 0x81 //!< imported token data id -}; - -/// finds opret blob data by opretid in the vector of oprets -/// @param oprets vector of oprets -/// @param id opret id to search -/// @param vopret found opret blob as byte array -/// @returns true if found -/// @see opretid -inline bool GetOpretBlob(const std::vector>> &oprets, uint8_t id, std::vector &vopret) { - vopret.clear(); - for(auto p : oprets) if (p.first == id) { vopret = p.second; return true; } - return false; -} /// \cond INTERNAL struct CC_utxo @@ -100,16 +57,6 @@ struct CC_utxo }; /// \endcond -/// \cond INTERNAL -struct CC_meta -{ - std::vector version; - uint8_t evalCode; - bool is1of2; - uint8_t numDestinations; - // followed by address destinations -}; -/// \endcond /// CC contract (Antara module) info structure that contains data used for signing and validation of cc contract transactions struct CCcontract_info @@ -184,16 +131,6 @@ struct CCcontract_info /// @returns pointer to the passed CCcontract_info structure, it must not be freed struct CCcontract_info *CCinit(struct CCcontract_info *cp,uint8_t evalcode); -/// \cond INTERNAL -struct oracleprice_info -{ - CPubKey pk; - std::vector data; - int32_t height; -}; -/// \endcond - - typedef std::vector vscript_t; extern struct NSPV_CCmtxinfo NSPV_U; //!< global variable with info about mtx object and used utxo @@ -258,7 +195,6 @@ bool myIsutxo_spentinmempool(uint256 &spenttxid,int32_t &spentvini,uint256 txid, bool myAddtomempool(CTransaction &tx, CValidationState *pstate = NULL, bool fSkipExpiry = false); bool mytxid_inmempool(uint256 txid); int32_t myIsutxo_spent(uint256 &spenttxid,uint256 txid,int32_t vout); -int32_t myGet_mempool_txs(std::vector &txs,uint8_t evalcode,uint8_t funcid); /// \endcond /// \cond INTERNAL @@ -393,52 +329,6 @@ bool getCCopret(const CScript &scriptPubKey, CScript &opret); /// @private bool makeCCopret(CScript &opret, std::vector> &vData); -/// CCaddr2set sets private key for additional eval code global address. -/// This allows to spend from two cc global addresses in one transaction (the first one is set in cp object by @see CCinit function). -/// @param cp contract info structure (@see CCcontract_info) where the private key is set -/// @param evalcode eval code of the other contract -/// @param pk global public key of the other contract -/// @param priv private key for the global public key of the other contract -/// @param coinaddr cc address obtained for this global pubkey and eval code with _GetCCaddress -/// @see CCinit -/// @see CCcontract_info -/// @see _GetCCaddress -void CCaddr2set(struct CCcontract_info *cp,uint8_t evalcode,CPubKey pk,uint8_t *priv,char *coinaddr); - -/// CCaddr2set sets private key for yet another eval code global address. -/// This allows to spend from three cc global addresses in one transaction (the first one is set in cp object by CCinit function, the second is set by CCaddr2set function). -/// @param cp contract info structure where the private key is set -/// @param evalcode eval code of the other contract -/// @param pk global public key of the other contract -/// @param priv private key for the global public key of the other contract -/// @param coinaddr the cc address obtained for this global pubkey and eval code with _GetCCaddress -/// @see CCinit -/// @see CCcontract_info -/// @see CCaddr2set -/// @see _GetCCaddress -void CCaddr3set(struct CCcontract_info *cp,uint8_t evalcode,CPubKey pk,uint8_t *priv,char *coinaddr); - -/// CCaddr1of2set sets pubkeys, private key and cc addr for spending from 1of2 cryptocondition vout -/// @param cp contract info structure where the private key is set -/// @param pk1 one of the two public keys of the 1of2 cc -/// @param pk2 second of the two public keys of the 1of2 cc -/// @param priv private key for one of the two pubkeys -/// @param coinaddr the cc address obtained for this 1of2 cc with GetCCaddress1of2 -/// @see CCinit -/// @see CCcontract_info -/// @see GetCCaddress1of2 -void CCaddr1of2set(struct CCcontract_info *cp, CPubKey pk1, CPubKey pk2,uint8_t *priv,char *coinaddr); - -/// CCaddrTokens1of2set sets pubkeys, private key and cc addr for spending from 1of2 token cryptocondition vout -/// @param cp contract info structure where the private key is set -/// @param pk1 one of the two public keys of the 1of2 cc -/// @param pk2 second of the two public keys of the 1of2 cc -/// @param priv private key for one of the two pubkeys -/// @param coinaddr the cc address obtained for this 1of2 token cc with GetTokensCCaddress1of2 -/// @see GetTokensCCaddress -/// @see CCcontract_info -void CCaddrTokens1of2set(struct CCcontract_info *cp, CPubKey pk1, CPubKey pk2, uint8_t *priv, char *coinaddr); - /// IsCCInput checks if scriptSig object contains a cryptocondition /// @param scriptSig scriptSig object with a cryptocondition /// @returns true if the scriptSig object contains a cryptocondition @@ -476,8 +366,6 @@ CPubKey pubkey2pk(std::vector vpubkey); /// @param tokenid id of token (id of token creation tx) int64_t CCfullsupply(uint256 tokenid); -/// @private -bool ConstrainVout(CTxOut vout,int32_t CCflag,char *cmpaddr,int64_t nValue); /// Returns bitcoin address for the scriptPubKey parameter /// @param[out] destaddr the returned address of the scriptPubKey, the buffer should have size of at least 64 chars @@ -485,15 +373,6 @@ bool ConstrainVout(CTxOut vout,int32_t CCflag,char *cmpaddr,int64_t nValue); /// @returns true if success bool Getscriptaddress(char *destaddr,const CScript &scriptPubKey); -/// Returns custom bitcoin address for the scriptPubKey parameter -/// @param[out] destaddr the returned address of the scriptPubKey, the buffer should have size of at least 64 chars -/// @param scriptPubKey scriptPubKey object -/// @param taddr custom address prefix -/// @param prefix custom pubkey prefix -/// @param prefix2 custom script prefix -/// @returns true if success -bool GetCustomscriptaddress(char *destaddr,const CScript &scriptPubKey,uint8_t taddr,uint8_t prefix,uint8_t prefix2); - /// Returns my pubkey, that is set by -pubkey hushd parameter /// @returns public key as byte array std::vector Mypubkey(); @@ -633,9 +512,6 @@ bits256 bits256_doublesha256(char *deprecated,uint8_t *data,int32_t datalen); // UniValue ValueFromAmount(const CAmount& amount); // defined in server.h /*! \endcond */ -/*! \cond INTERNAL */ -int64_t TotalPubkeyNormalInputs(const CTransaction &tx, const CPubKey &pubkey); -int64_t TotalPubkeyCCInputs(const CTransaction &tx, const CPubKey &pubkey); inline std::string STR_TOLOWER(const std::string &str) { std::string out; for (std::string::const_iterator i = str.begin(); i != str.end(); i++) out += std::tolower(*i); return out; } /*! \endcond */ @@ -646,60 +522,4 @@ inline std::string STR_TOLOWER(const std::string &str) { std::string out; for (s void AddSigData2UniValue(UniValue &result, int32_t vini, UniValue& ccjson, std::string sscriptpubkey, int64_t amount); -#ifndef LOGSTREAM_DEFINED -#define LOGSTREAM_DEFINED -// bitcoin LogPrintStr with category "-debug" cmdarg support for C++ ostringstream: - -// log levels: -#define CCLOG_ERROR (-1) //!< error level -#define CCLOG_INFO 0 //!< info level -#define CCLOG_DEBUG1 1 //!< debug level 1 -#define CCLOG_DEBUG2 2 //!< debug level 2 -#define CCLOG_DEBUG3 3 //!< debug level 3 -#define CCLOG_MAXLEVEL 3 - -/// @private -extern void CCLogPrintStr(const char *category, int level, const std::string &str); - -/// @private -template -void CCLogPrintStream(const char *category, int level, const char *functionName, T print_to_stream) -{ -} -/// Macro for logging messages using bitcoin LogAcceptCategory and LogPrintStr functions. -/// Supports error, info and three levels of debug messages. -/// Logging category is set by -debug=category hushd param. -/// To set debug level pass -debug=category-1, -debug=category-2 or -debug=category-3 param. If some level is enabled lower level messages also will be printed. -/// To print info-level messages pass just -debug=category parameter, with no level. -/// Error-level messages will always be printed, even if -debug parameter is not set -/// @param category category of message, for example Antara module name -/// @param level debug-level, use defines CCLOG_ERROR, CCLOG_INFO, CCLOG_DEBUGN -/// @param logoperator to form the log message (the 'stream' name is mandatory) -/// usage: LOGSTREAM("category", debug-level, stream << "some log data" << data2 << data3 << ... << std::endl); -/// example: LOGSTREAM("heir", CCLOG_INFO, stream << "heir public key is " << HexStr(heirPk) << std::endl); -#define LOGSTREAM(category, level, logoperator) CCLogPrintStream( category, level, NULL, [=](std::ostringstream &stream) {logoperator;} ) - -/// LOGSTREAMFN is a version of LOGSTREAM macro which adds calling function name with the standard define \_\_func\_\_ at the beginning of the printed string. -/// LOGSTREAMFN parameters are the same as in LOGSTREAM -/// @see LOGSTREAM -#define LOGSTREAMFN(category, level, logoperator) CCLogPrintStream( category, level, __func__, [=](std::ostringstream &stream) {logoperator;} ) - -/// @private -template -UniValue report_ccerror(const char *category, int level, T print_to_stream) -{ - UniValue err(UniValue::VOBJ); - std::ostringstream stream; - - print_to_stream(stream); - err.push_back(Pair("result", "error")); - err.push_back(Pair("error", stream.str())); - stream << std::endl; - CCLogPrintStr(category, level, stream.str()); - return err; -} - -/// @private -#define CCERR_RESULT(category,level,logoperator) return report_ccerror(category, level, [=](std::ostringstream &stream) {logoperator;}) -#endif // #ifndef LOGSTREAM_DEFINED #endif diff --git a/src/cc/CCutilbits.cpp b/src/cc/CCutilbits.cpp index e0ad86c04..17de1e356 100644 --- a/src/cc/CCutilbits.cpp +++ b/src/cc/CCutilbits.cpp @@ -102,7 +102,3 @@ CPubKey pubkey2pk(std::vector vpubkey) pk.Set(vpubkey.begin(), vpubkey.end()); return(pk); } - -void CCLogPrintStr(const char *category, int level, const std::string &str) -{ -} diff --git a/src/cc/CCutils.cpp b/src/cc/CCutils.cpp index 5d8e40c40..6e3f2f735 100644 --- a/src/cc/CCutils.cpp +++ b/src/cc/CCutils.cpp @@ -100,22 +100,6 @@ uint32_t GetLatestTimestamp(int32_t height) return(hush_heightstamp(height)); } // :P -void CCaddr2set(struct CCcontract_info *cp,uint8_t evalcode,CPubKey pk,uint8_t *priv,char *coinaddr) -{ -} - -void CCaddr3set(struct CCcontract_info *cp,uint8_t evalcode,CPubKey pk,uint8_t *priv,char *coinaddr) -{ -} - -void CCaddr1of2set(struct CCcontract_info *cp, CPubKey pk1, CPubKey pk2, uint8_t *priv, char *coinaddr) -{ -} - -void CCaddrTokens1of2set(struct CCcontract_info *cp, CPubKey pk1, CPubKey pk2, uint8_t *priv, char *tokenaddr) -{ -} - bool Getscriptaddress(char *destaddr,const CScript &scriptPubKey) { CTxDestination address; txnouttype whichType; @@ -132,11 +116,6 @@ bool Getscriptaddress(char *destaddr,const CScript &scriptPubKey) return(false); } -bool GetCustomscriptaddress(char *destaddr,const CScript &scriptPubKey,uint8_t taddr,uint8_t prefix, uint8_t prefix2) -{ - return(false); -} - bool pubkey2addr(char *destaddr,uint8_t *pubkey33) { std::vectorpk; int32_t i; @@ -145,11 +124,6 @@ bool pubkey2addr(char *destaddr,uint8_t *pubkey33) return(Getscriptaddress(destaddr,CScript() << pk << OP_CHECKSIG)); } -bool ConstrainVout(CTxOut vout, int32_t CCflag, char *cmpaddr, int64_t nValue) -{ - return false; -} - bool priv2addr(char *coinaddr,uint8_t *buf33,uint8_t priv32[32]) { CKey priv; CPubKey pk; int32_t i; uint8_t *src; @@ -189,57 +163,9 @@ CPubKey GetUnspendable(struct CCcontract_info *cp,uint8_t *unspendablepriv) int32_t NSPV_coinaddr_inmempool(char const *logcategory,char *coinaddr,uint8_t CCflag); -int32_t myIs_coinaddr_inmempoolvout(char const *logcategory,char *coinaddr) -{ - int32_t i,n; char destaddr[64]; - if ( HUSH_NSPV_SUPERLITE ) - return(NSPV_coinaddr_inmempool(logcategory,coinaddr,1)); - BOOST_FOREACH(const CTxMemPoolEntry &e,mempool.mapTx) - { - const CTransaction &tx = e.GetTx(); - if ( (n= tx.vout.size()) > 0 ) - { - const uint256 &txid = tx.GetHash(); - for (i=0; i &txs,uint8_t evalcode,uint8_t funcid) -{ - int i=0; - - if ( HUSH_NSPV_SUPERLITE ) - { - CTransaction tx; uint256 hashBlock; - - NSPV_evalcode_inmempool(evalcode,funcid); - for (int i=0;i= consensus.nPowAveragingWindow); consensus.nPowMaxAdjustDown = 0; // Turn off adjustment down consensus.nPowMaxAdjustUp = 0; // Turn off adjustment up - consensus.nPowTargetSpacing = 60; // HSC's default to 60 seconds so a theoretical testnet should as well + consensus.nPowTargetSpacing = 60; // HAC's default to 60 seconds so a theoretical testnet should as well consensus.nPowAllowMinDifficultyBlocksAfterHeight = 0; ups[Consensus::BASE_SPROUT].nProtocolVersion = 170002; ups[Consensus::BASE_SPROUT].nActivationHeight = NUNU::ALWAYS_ACTIVE; @@ -490,16 +472,27 @@ void UpdateNetworkUpgradeParameters(Consensus::UpgradeIndex idx, int nActivation regTestParams.UpdateNetworkUpgradeParameters(idx, nActivationHeight); } +/* + To change the max block size, all that needs to be updated is the #define _MAX_BLOCK_SIZE in utils.h + + However, doing that without any other changes will allow forking non-updated nodes by creating a larger block. So, make sure to height activate the new blocksize properly. + + Assuming it is 8MB, then: + #define _OLD_MAX_BLOCK_SIZE (4096 * 1024) + #define _MAX_BLOCK_SIZE (2 * 4096 * 1024) + + change the body of MAX_BLOCK_SIZE() function to + { + if ( height < saplinght+1000000 ) // activates 8MB blocks 1 million blocks after saplinght + return(_OLD_MAX_BLOCK_SIZE); + else return(_MAX_BLOCK_SIZE); + } + +*/ + int32_t MAX_BLOCK_SIZE(int32_t height) { - // this codebase requires sapling activation at height=1 - int32_t saplinght = 1; // pCurrentParams->consensus.vUpgrades[Consensus::UPGRADE_SAPLING].nActivationHeight; - //fprintf(stderr,"MAX_BLOCK_SIZE %d vs. %d\n",height,mainParams.consensus.vUpgrades[Consensus::UPGRADE_SAPLING].nActivationHeight); - //if ( height <= 0 || (saplinght > 0 && height >= saplinght) ) - //{ - return(_MAX_BLOCK_SIZE); - //} - //else return(2000000); + return(_MAX_BLOCK_SIZE); } // Change the Hush blocktime at run-time(!) @@ -2217,9 +2210,336 @@ void *chainparams_commandline() { (1913000, uint256S("0x00000008b7007ec04ad61ce451f94a3c6fb2adb7426fc6071b2a5ea48c4f9fd8")) (1914000, uint256S("0x0000000243fe84ebc7f9e6464ea68e938c3095e51561d168cac11e02da7dfffc")) (1915000, uint256S("0x0000000463ee472250bc95ddf1403ac7ce518cb52b4570c5bf53c7c055f718e0")) - ,(int64_t) 1726139145, // time of last checkpointed block - (int64_t) 2777375, // total txs - (double) 1226 // txs in the last day before block 1915132 + // Generated at 1750947275 via hush3 util/checkpoints.pl by Duke Leto + (1916000, uint256S("0x00000007450182fd8b6e17ab04c95182aa33ab281399e590538f3c6a5daff7cc")) + (1917000, uint256S("0x0000000a3e34f534cb787befc6520577404e39ddfb8331e587912e3c35f8eee3")) + (1918000, uint256S("0x0000000a8377c632f26108c153d2fd1d42e13e7bbfb8e62642d5e80546e2ed62")) + (1919000, uint256S("0x000000016e1b54a1aea7c531c47a3cd6aa5e0722d294c8fc0b718a9aa4574792")) + (1920000, uint256S("0x00000003e6d1d949658d5852b9319dbe0e75a4c171d2282a091a97aadc301da0")) + (1921000, uint256S("0x00000003d37c4d24c50bc32f815a8c089862d2a33f5e5010c0c36cf51f23d430")) + (1922000, uint256S("0x00000001de45a81a83b52246f6bdfd8ce4ab49ff209377f348040a2f7a08f540")) + (1923000, uint256S("0x00000006ec45bdf0764f20744447b67227cc91330bded5797881616372aa0400")) + (1924000, uint256S("0x00000003f57657a30f1fc6107611dc86dff2ea88a58d46a37339a1bc199c8f96")) + (1925000, uint256S("0x000000012f56b581239965f384ee45d91f58818781616b24e37b1a0f9ff3d21d")) + (1926000, uint256S("0x00000001fac2e82d4b4e4dc95f62625d259c29a16527dcd2ee8f1a5005944269")) + (1927000, uint256S("0x00000003ab28525c560ac0f8ba5a5ab32975b87ba1d423bdd1d1a9a675d668c6")) + (1928000, uint256S("0x0000001fc650e767800d6e022e173a9d1608ef821c296dfaabc8ac1e4f60f10c")) + (1929000, uint256S("0x00000000a297246c427d1d21d43110f0e4561e42ab940c1269d5cca17f0904e1")) + (1930000, uint256S("0x00000012f367afa4b2981c51d39b2d5181b076d93f85220a2e6c373be5c3ba13")) + (1931000, uint256S("0x0000000195f51b18da7a447e64c29086d9b9239f344592fdc31dd4793f6fb4dc")) + (1932000, uint256S("0x0000000a72a3f81eecf15b2b06b37e5d0e5c8be26945be29f7b80242dd8d866d")) + (1933000, uint256S("0x0000000602cec0393e21864f1f9de0e9a31c9eaf96d406d976b2932cb076f945")) + (1934000, uint256S("0x000000026ae0bfcedd170c1a7ec3c282806d522c714337105a5b9e3c9f75f51f")) + (1935000, uint256S("0x000000096c05eb37e98c0ac1e5da953f75c416b1939d05c3a7f38b443075274f")) + (1936000, uint256S("0x00000000b366ca6e89b40632b26fe80c14fb549c70484adede899f4b9550594b")) + (1937000, uint256S("0x00000002407697e167d3a957bf6e89a3f6ef12448ec37dc077c36541c08d9d9c")) + (1938000, uint256S("0x000000010e122ecf450e3f7af854c5d5af48ff297dc9f7b49ee60d7bb26b8744")) + (1939000, uint256S("0x00000004ace5ced8a4f052dd1260cccb305f4ec05207d3882b9ef40d11a5fe6b")) + (1940000, uint256S("0x00000001e668c7e4bcdee1a9b291e5ecfcad3eeb84ec4cff80eab05ce23109cd")) + (1941000, uint256S("0x0000000913631ecaeefb24c9d168a9a0c05df2012f3e988030eed645687a6ec3")) + (1942000, uint256S("0x0000000315b6039d0a0c14820f396dc960ad507783847f599b7d5154f88f94e0")) + (1943000, uint256S("0x00000005b7bc0112d299c2f0caed3b0cfa6c1bb730c9004e4d6ef2ceeec9efe0")) + (1944000, uint256S("0x00000007c64f0a932a8edfebb2d494665e524afc5ab755e2cefec84ce77d259a")) + (1945000, uint256S("0x00000006c6a9fe8c05283f310c0dff22a2d92304b605b593fe1c1fdfc1085bb3")) + (1946000, uint256S("0x000000054b5c0409f082be6f0b4deac5ef5106fc44173f3422885fb23bd73f7d")) + (1947000, uint256S("0x000000069a8e31d32df50f35ef63029bdd3a56d042d34cf6d02f6efc637c8dd1")) + (1948000, uint256S("0x0000000885fd68fb764457590ddee9aef3e4256f2ef067388a9c72714fa775b7")) + (1949000, uint256S("0x000000064285b903e667a64cb598f7aee2cbcf8a513a681334adef89f58b58c5")) + (1950000, uint256S("0x0000000a706ce153f138e155a21da714642ccf0997f9f9229dded6335a59ba07")) + (1951000, uint256S("0x00000005a15015e01043f708b242ae79f71694be8546098085f6604c007c40c3")) + (1952000, uint256S("0x0000000acf2ac942089d2f1dee9428c42ca89857b4cd412daedc8c68f1ca4b0b")) + (1953000, uint256S("0x00000001b11437b9668a1ba11d70af25a2c9c1635604e689d7e846d154af7503")) + (1954000, uint256S("0x0000000217414e96a2db88062abb846422f94a5329f9b89545c5c85848b3050f")) + (1955000, uint256S("0x0000000007a180128bd24de08bcda9a1f14985facc7836f4e0807c8f35b6f390")) + (1956000, uint256S("0x0000000e2a5b0ea6c830770e16614a39704d94224b317a3c82361e5c833e5480")) + (1957000, uint256S("0x00000004e224492b153481750f677db156a960d80e046c0a99fd05e3841f7a2d")) + (1958000, uint256S("0x000000038b6f492cfe2bbdef289854fb1b095c240dd4166a8f235e9eb8156258")) + (1959000, uint256S("0x00000001e59f4c934ef2f778612da7e8574649cce4638a7b4a9d9833ad32b6cc")) + (1960000, uint256S("0x0000000dad02b04d06cf33f129c4001eee6a1633281ad1966089287542dbf0d4")) + (1961000, uint256S("0x00000003bbbb92d446e92a6ca1c2026ca5acff6ef342ad7f98220e4a9f8e7ea4")) + (1962000, uint256S("0x0000000c344d3c9c22450b075f54711dda6d6f31bd4131cd8ace9197bbc79d11")) + (1963000, uint256S("0x00000007f00366ec50f4b795574ab91f426e130cd9b03999fb06a72fb4398f65")) + (1964000, uint256S("0x00000000bc0ccb4e73a3b1da4c8b9898176658fd67e0be6268e4e6a7d15a910b")) + (1965000, uint256S("0x000000037ef51b844eeddc16da9879defc6a3445142281ae34024447c3c8d9c5")) + (1966000, uint256S("0x00000001874485237ab2d0f395532fa16907e2cb0f25e5651312be730a2edcb0")) + (1967000, uint256S("0x000000054de0e7518f1263b6d0235f1e2430f7dd23cc1620122357a68731eab9")) + (1968000, uint256S("0x00000000a63a04fda160827bf347d6a6cd72ba97ae1608a76716cd97926ea88b")) + (1969000, uint256S("0x000000063f5c075dc64a67c603d21416c75ec633c1dcd0e7a93fc03bc21c6979")) + (1970000, uint256S("0x00000007790e2edf51dbaced8ac240a960dd133cbab4c0c642b93614987aedb5")) + (1971000, uint256S("0x00000007158c4e8d7ad061228c7386179ab5bececfc8e9719dc3129c6c441acc")) + (1972000, uint256S("0x0000000c1827bbab90381298cb73f55a2e146bbf235dfa57d6bc08632448acd0")) + (1973000, uint256S("0x00000005da023a70008ab851ec50b8b900332376f17f99588c91504c26b5b125")) + (1974000, uint256S("0x00000002114d8ecee02f6b3be44335ab85df887a86d78992af6a3ce9ba669c56")) + (1975000, uint256S("0x0000000a397eb6d899727ca5db6db81c6ad676c58020a0ffb3f391ff6888f3e3")) + (1976000, uint256S("0x00000009bbbf4aab09bb73cc6ed628211b1977ae5a3265fc778dcc06391c4c3e")) + (1977000, uint256S("0x0000000b7fb944df8a5b894a38b96c17eda331b3d8c406c5921f470d4adeda22")) + (1978000, uint256S("0x00000004008b94214bded7d7f14981a445055997d76b92a920dc4d55681066b0")) + (1979000, uint256S("0x000000074afc0070f2fe5643ae73e82f9e2a00c2bd10b65c4009f1fa8b9bb447")) + (1980000, uint256S("0x000000104f63e7a22c822a5185dfcf3daea94d1dc4eb72cdd1c0d5819b284b2a")) + (1981000, uint256S("0x000000056829646eb2ec3e513ae9bce58e55cc76ff9a8cca9ef9ba1665a39010")) + (1982000, uint256S("0x00000001519cc29c8c85f9f4aa37226b7d3a8a65f922f0406a9c5d92175c3c3a")) + (1983000, uint256S("0x00000017dc2451bb004694edbc90d12fc16aa45b25ac6b7b3d0179527e1c45ab")) + (1984000, uint256S("0x000000020d0f451448959d98abbdc7c9d890b8d52257323b551497376a558a1d")) + (1985000, uint256S("0x00000002577dcc6f4fe27913c036fb90161d35ce4ad9eec7fc311eaaef60e94a")) + (1986000, uint256S("0x0000000202b6fcf0b41f9214f65d5c2180815004d39ec2de27cacd3a92576607")) + (1987000, uint256S("0x000000055865f161ff5e3c9761b37505064dc7583ce5e5e592b6721ee6cb5347")) + (1988000, uint256S("0x000000080f858e3d234d701da31ef2aa1254fda3150e3ac368cb51e2115e3200")) + (1989000, uint256S("0x0000000cfa4d1e2bbdcbb234fe2f082850dcdfa858a32bef37cf89d00c89f396")) + (1990000, uint256S("0x0000000a4c621c54b6e3b4a75e9fa4f018960a1200f074de82324f68b294f04d")) + (1991000, uint256S("0x00000000cc0f49d2b2448b362e28daf3e57e1bafdb634ba2c85a51bbbec57afb")) + (1992000, uint256S("0x00000002ebd4290f45632a9573abcf4d6fc1639b34aa990eef34b6b0935cf14d")) + (1993000, uint256S("0x0000000b6d0c384a04f998e996f453058e006cd0d2bc3abdd518804eb3263fab")) + (1994000, uint256S("0x00000002c0fcac020a83d330d6e56255c82d0b47b048270dc33d6ce05b18048d")) + (1995000, uint256S("0x00000001d0cd3b61e536c43dac7d4f072769ae8e3b9abdd7f934059e5692c6ef")) + (1996000, uint256S("0x0000000ac753c7ed5450d7b05b0bd98a29df7059769c8bc07e04a2ca609c346e")) + (1997000, uint256S("0x00000004f457ce81972f0eff5cac5a63832b0d043e0ca9fc5ecac6dbdce65240")) + (1998000, uint256S("0x0000000b572087155a59cc67ba355d3a3ffaccfd685570ec56778329b27fb9ce")) + (1999000, uint256S("0x00000006e4773706c3a83ed448da34fc4e3e737d47df623254e059fd76643a52")) + (2000000, uint256S("0x00000006104d9702e1e5347418c213ba31fc3c14e009ab2d802de64f75f5ef8b")) + (2001000, uint256S("0x00000003e0ca20ef98823c384607d34fbadd3425f54b75b92a2f7b898386afff")) + (2002000, uint256S("0x0000000486c9388c8932401756df96c043e39bdfb52d8d0a147a5b97922b428e")) + (2003000, uint256S("0x00000001e639068d2aada8551e23effbea6e281bc8b10a74e8f9fd757a9d7f26")) + (2004000, uint256S("0x00000004e6f8077d8cb9adb4b0c4f08e88deb784c57b461167000763c9f7e22c")) + (2005000, uint256S("0x0000000381e818c7c3598ce66fceeb3f76538b851a33672b6fb7f63b0ee1376c")) + (2006000, uint256S("0x00000005956353cc542e589709ef1d1859c0466ae6590459ac3299513431e935")) + (2007000, uint256S("0x00000000efc171f4a2eab03c8ce32dadade866aee3a9c70b430daf051715f900")) + (2008000, uint256S("0x0000000120aad6d1c226a6ec15887cbc96135d2237f37c8c076dd20c81122cad")) + (2009000, uint256S("0x000000048d5381588a5be440fd9ad45747f76f6f5ce6e0b679ef549e0ab33979")) + (2010000, uint256S("0x000000086d9b6cfc665cd910e9d3832cde002278ae7342b1d660141390e81ed9")) + (2011000, uint256S("0x000000070b22fa037c6d290ba7811448bea1cf00c8f22aaf70b992a0456aaca0")) + (2012000, uint256S("0x00000003b32bf142b85b39c398205f42b3e10fa967fd78db41cec936347fa545")) + (2013000, uint256S("0x00000003b5bd355c58956838c927059b221c87af7e8282a5e0027e8c552d082f")) + (2014000, uint256S("0x00000001c5f2d5cccc99b43f7a9c1b9e3315eb4feef4bf611c680d6d55a1c395")) + (2015000, uint256S("0x00000006f94f71772329e7ebab13a932297c37faef047b4777f276281a6412e6")) + (2016000, uint256S("0x0000000421b342cf93513b1d098fc1a50904a1583f11a67b2d1286b4311270aa")) + (2017000, uint256S("0x000000035cfdd315adf7eb39f24b1114c316559b7266e28e369bd335332ed26e")) + (2018000, uint256S("0x00000004178109bc2e463872fed909113bb4a047722e7d4131f9f5e75e3b5d07")) + (2019000, uint256S("0x000000040bee044c9437828ac4569799f69d14527918015b94c6ef9f0ec771a2")) + (2020000, uint256S("0x00000002b5a7669c48ab1e6405688bf645062c2098ffaa8784bb6b9e952f32c3")) + (2021000, uint256S("0x00000003e7f2248ec7063391c0b8f650f6f02abcea8146025685cce41f1967db")) + (2022000, uint256S("0x00000002a3057653ae6c75eecd9f4688f0440b4e44f81af95cfa2072e01cf366")) + (2023000, uint256S("0x000000043d0b453924262edf2f2b07419cb1c79a22d2aeb9d0352727b8b95770")) + (2024000, uint256S("0x0000000857efe8be5bee7d4949b4a46924a6b16a773267faa47924db46755adc")) + (2025000, uint256S("0x00000007e197ec851d99abb18e9bda39af5acd4ebdf1cb284cf24becaa621936")) + (2026000, uint256S("0x00000008e7576b9fd21454ee1c241ad5ff86de27b90a2038b17c05174af6aa2b")) + (2027000, uint256S("0x00000007852b9d9c07bb4fb396bfcf1651fed5afacf91ac051e6232cc79eaf43")) + (2028000, uint256S("0x00000002134827686fa7399d930d28e1379d806c5da307ee8b6420e43e587c95")) + (2029000, uint256S("0x000000064d359b9d5968be2e7f2629363f16f14f2e2c23f9f113bb8074219eeb")) + (2030000, uint256S("0x0000000b62411c2027634d87f0fe56311f891a2471c2dc59f881e909fa62e21d")) + (2031000, uint256S("0x0000000b69aa3c2e0a408071337b0b8e500d7168ae58866008278bd876711b8e")) + (2032000, uint256S("0x00000004ce57ce1b210ec68c6d78d3e61b1bb61b15b42829f59adc144243396c")) + (2033000, uint256S("0x00000004024fdc3d1fac61b6713ad6013a2f36738d63cc8da836baf294bee671")) + (2034000, uint256S("0x000000057861c7bc5314e0da1aec9f1ebc1ffb4faf6955e0b75a892601edff73")) + (2035000, uint256S("0x00000010c8a56a05dad2b598c2912c8ea541b4a26f1547d96a653f6a4201bd22")) + (2036000, uint256S("0x000000041e11ed9bd926c40d810330fac5a7d68e6eaa363e0bb5c61af322ea65")) + (2037000, uint256S("0x0000000a7e65071ac725747967d8fa4c05cf1c3cf707bf32ea3af64b5be1b708")) + (2038000, uint256S("0x0000000f2bf661c814dd4c29018d5990125f5b944f8ff32d1dab74c4df96bb22")) + (2039000, uint256S("0x00000011646bb384a33b2176522d0b1890c4252e004f6e39a8a24ef23de7d4c6")) + (2040000, uint256S("0x000000049927621327cb34f68b8fa4a7a27a8f348284fbbe19a31dfb05796028")) + (2041000, uint256S("0x00000012aa50fdd25fa7bec01b4b23bf185028ee9b391ee01f448e3466dde830")) + (2042000, uint256S("0x0000001448dbbce0a941d62af80a4802b4125dbb703b8d6afc562f6f6a71c2ce")) + (2043000, uint256S("0x00000008425d39caac093da2d3bca16eb6341a5a5c6a0c9c3b29e59b613f19d5")) + (2044000, uint256S("0x00000003646c87e167ccec6a46c532299ff95ad0e09d763c77dea1b1f77fa41d")) + (2045000, uint256S("0x00000008a305f798f921a659779f2faa0c9b6061654f128bc0288e5ffba5617b")) + (2046000, uint256S("0x00000005f13275b498964e0b1b2175e9269c6e72f8d3d4a6c8800866648cc139")) + (2047000, uint256S("0x00000001faff2ed7233ac268b0dea48ca095c4221531fd5cb0a717be44fa57f2")) + (2048000, uint256S("0x000000096067600fb16cf37ff22348b0f66e81e70b9db5594ec96e55ea2aed3e")) + (2049000, uint256S("0x00000004a5c77487e8b9ce874907d1d87a5cc9a233b8200dc29424fc4d05c4ad")) + (2050000, uint256S("0x00000000f9e4a246d317efc0058c117518058b90e354fd0832a8aa3f2817ad98")) + (2051000, uint256S("0x00000004c25718021a1640d581520087f4b1ca550f60624e4f0165c42811f591")) + (2052000, uint256S("0x00000001f1cc162af35f2b78d57ce24699ddade07e9e28a72024eed4ae6d88da")) + (2053000, uint256S("0x0000000675cd8c85204a982290cbcee1ce7744883f50e49b42ec19bc3f26a6cd")) + (2054000, uint256S("0x000000073ae301de16e3a8ddfc31461abaaa6d0f68dce219e021e60786a87e33")) + (2055000, uint256S("0x0000000c3c1403f65d6d949bf47ac6c20ddf1a72a4746d489ac0373d0019ef36")) + (2056000, uint256S("0x00000000bbd938ba5199353f4464da3e0548a161b659d4158022c494e5964c53")) + (2057000, uint256S("0x00000002ef9613e873ab3e696bc67a854ca0fbd5d2c80ca2813790c7e68f7ca0")) + (2058000, uint256S("0x0000000aa352bf7be4811a434ed81b599c8bb75b51c9180ed950ed93025896bc")) + (2059000, uint256S("0x00000008758359b387368898cb7a1ab2637e8afcc25be27639c92044b6d38481")) + (2060000, uint256S("0x00000007e482f4d5931a4900fea1fe60e9b5272340930740d1daf0ddcb60fba6")) + (2061000, uint256S("0x00000002a4cc006f2a4a8dfe6031a8224f13a1653d2d7cb759f6424e973b21bc")) + (2062000, uint256S("0x00000002a89e57d8aa5073bbf9b47d3a1406b880d5a10cd04bf4db15b8d52f9f")) + (2063000, uint256S("0x00000001c2c88d5d2afd8e5d3ac0a58f75f1233278bad1f509c04bf2de8a0cd7")) + (2064000, uint256S("0x00000001e96c132713c76b3b660176376eee4d01aca688ccbd1f052c7e02eab9")) + (2065000, uint256S("0x00000009be2a5ecaa562da4b4a89974c63e41fff0d45e67aaef52cd5628832a7")) + (2066000, uint256S("0x00000002b9e96ca7a4702ff76b0e8985bd5b8165a844b0ff524118cb73b81b91")) + (2067000, uint256S("0x0000000b08dc59f10fbf0be04059d20d0fe8dffa0775a27deddeea31f1aa9c08")) + (2068000, uint256S("0x00000004f4bad2cf91e2ca928674dc26219b9fd5d51089b71ffa3a0e40c1a8cb")) + (2069000, uint256S("0x000000020ef61abb460f3bf1805208c67ef076169cc3d93feea93a44549e6b01")) + (2070000, uint256S("0x0000001933ccfe24b7f15e44ffcd6c70eb07ddd1e5153572c587c71604e037de")) + (2071000, uint256S("0x00000000b837126d714857fbefa49ba9b57a5c8e4131bc58a57a8cb72e0db9a7")) + (2072000, uint256S("0x00000009fe7c493b1bedea4cbe111dc917f36a5daa7c515efc1b152b5a4f898b")) + (2073000, uint256S("0x000000017b1dcba194020efecba83e73dc5c79d61a67909ba9697be7a096fa21")) + (2074000, uint256S("0x0000000523d291de6295dccc955ce5ad336f16f7758be2fe806828c577aceb10")) + (2075000, uint256S("0x000000000797b81b51747b233de0f2af1996321a91f3e4202b6ec009c084fa40")) + (2076000, uint256S("0x00000001e24e43918b04c68bdb3d6f344fa45161d6a83214d33182c266106942")) + (2077000, uint256S("0x0000000cd024f9475ad27396e68f77d14f261db3168510b7d5fd985e15317fe7")) + (2078000, uint256S("0x0000000098a181b61158deab23686d5fd27124e333c9db07b23144d490e94e21")) + (2079000, uint256S("0x00000008530c9cf4c78823bb23f1c12bf06fba66b757e5c0289c49a695d0f0de")) + (2080000, uint256S("0x00000006d0cfee04fb90dcbc7a3e97928228f9d49311f0c03ba36ebd91714c0e")) + (2081000, uint256S("0x000000061584569c356147479c7b59896050f266971b3ba39f2afd863c9d5da7")) + (2082000, uint256S("0x000000038a92b82d08c169edac37a1b6686d32c9b62efb79a1e0120a2e5b980c")) + (2083000, uint256S("0x0000000ed590f12cc3b91f450e5d30a317fb745dfd0559640bbd1822be0892cf")) + (2084000, uint256S("0x000000033451b003a9784bf72fb2fdf45a39b324efc6b58c5428ce4d06ae9383")) + (2085000, uint256S("0x00000006d0106b85a660e384bcf50003fbb3ebf4dc8ea4666745d18aad0ce706")) + (2086000, uint256S("0x000000046acf8da7d34ea59dee43aed38d8b174b8d3945223fd302fd43d1da30")) + (2087000, uint256S("0x00000005ced9d8c38416be2bf222b4e6bd0c116b8f3f7eb64b6a8979c4d42496")) + (2088000, uint256S("0x000000056abb81bb40ce200afa9431ec809a0b32614bc0a222d8f5363457cb1d")) + (2089000, uint256S("0x00000007510588a1f76e1bfd1d71302c734296e56654b973633cdd09715ac1b1")) + (2090000, uint256S("0x0000000419b70e2eee4092d5a7a6567d4f0f44bd25bb2e0c9c93640c147c8ad7")) + (2091000, uint256S("0x00000005a64ce43194676a276f61bc316b122526487eb6446900ecc3128d2b59")) + (2092000, uint256S("0x00000008a604ff11b8c78d309b067636a08881d6b67a262c33a35b7103228a8d")) + (2093000, uint256S("0x00000005cd8ad1d36831cb219e751d6fdea3c1ef5984106d4267181574abbb7a")) + (2094000, uint256S("0x000000084ecece471b2a7c20058821bc00507948c4e2ddda440fbbff20e8f9d0")) + (2095000, uint256S("0x00000004febb4db9b9a83945d1e876e6a1df57e9d4b7c7be522c313ca14b0684")) + (2096000, uint256S("0x00000000c6b4ad716b1ecdf2941ac5951566349430f4f65ab30a19d4683e06fe")) + (2097000, uint256S("0x0000000a69188059da26fcda56fda6616b6a7b910d81fbac0bed9cd2788fe11d")) + (2098000, uint256S("0x000000000964c0376b72fd3475fe3e20ebc0f43269d7c7be0c1b3e1ae3b084a2")) + (2099000, uint256S("0x000000075489657e7019ba875720ba133610cccbd69873b2409d293973878de6")) + (2100000, uint256S("0x000000048bce0d172dc7f21cfdd89cebc1dc8fda33b53ccd483fa77465601469")) + (2101000, uint256S("0x0000000d17a5f6802150f5f317617439d1406c1a6c9905360d5b8936f1235bf1")) + (2102000, uint256S("0x0000000a2e1dab28ba0b9d381c2a1dfc503dfc3ece2e7382efeef7fc0a9114ee")) + (2103000, uint256S("0x0000000af3728cb8cfd44ebba3ad4371affc1b77dded8c1016f6aa1e7533620f")) + (2104000, uint256S("0x00000004d3121b000e5fdfb36181921f290f9b0e88bca5e7db73edfe39ad4389")) + (2105000, uint256S("0x0000001578e4d7efa6c5071cce3bcb6c313dc20024605fc68ec52373940e2503")) + (2106000, uint256S("0x000000091602e3e0e6f2696b637f278878aa9df54b5da697623d3ff15758f530")) + (2107000, uint256S("0x0000000b40c4b2d15563ea4a4526618bc7456ae7af75b43564ef0cec35ad938f")) + (2108000, uint256S("0x0000000682e77053c4d4bcd7b6c2104e4e3c194154ef857cd05115f02681d81f")) + (2109000, uint256S("0x000000035a9bbeba87ba109903ffee9c71fd62a0a6395f1696490ea674e5a658")) + (2110000, uint256S("0x0000000547f13c557983f66c18ab0db1a64c9a8892dd84127e04025b5335a816")) + (2111000, uint256S("0x00000011342622886386272683f28994966657f559c5a39dbef9aef6c14314f3")) + (2112000, uint256S("0x0000000446d090e0f478bcb7d90cbb15142eb585c31229a433f8fb1470252be2")) + (2113000, uint256S("0x0000000db1383e1c4ca8e5f29136deb3f65ff989acbca44c94cdd4d431d6e40d")) + (2114000, uint256S("0x00000001574baeb58d2999e2ce95b0049ba0d680cc68caf2ee644abe05d17c58")) + (2115000, uint256S("0x0000000b784255ee9900040a759883da9cb04d29fd96f2b2bc8fa777377666e3")) + (2116000, uint256S("0x00000002598ad558cd93fbc11106615d187c227d80f4b9e30ba480c264bd2345")) + (2117000, uint256S("0x00000009d3b9dbbd63b11aa254b53421d55c864578617c5a57addb7b2b058f51")) + (2118000, uint256S("0x0000001083f791fdb1d314ac096a510e829d849c51ecfd07b05a97beca0fdc9f")) + (2119000, uint256S("0x0000000ef2775f3449c5f473744e92018681e9de74c59695457d4aa6fdd6d74c")) + (2120000, uint256S("0x000000044205e969e5d5ce1f297de9fa11fa23e0407dd28b852d48ab5e45f1da")) + (2121000, uint256S("0x00000010b04548479daf16dfa9c8e3c0e5b4e5b29876cb8a307d2e407aa3e5ab")) + (2122000, uint256S("0x000000052cd0199a56b4f840e6cd06afc7bae1fe5c6b060ad56b25e60037acbb")) + (2123000, uint256S("0x000000059972a7dde8caf40947c0e6fad1e85558e6da1e444be6c246589ed617")) + (2124000, uint256S("0x00000009eb2cbc8df55758e60fe06d9b38e57e1408caa4e03724519cf2639e7e")) + (2125000, uint256S("0x0000000118e98419f9b56c890c77e53298fa478bf0adaa1cd4e9617f575d442c")) + (2126000, uint256S("0x0000001168a734074aaeaa042800ebfd7a1283e0fea5ec8a688beed2822983e4")) + (2127000, uint256S("0x00000006dc5056e1e4ecd42ab4247ad9aeeb78313d5b00c14038a91c4c18b6dd")) + (2128000, uint256S("0x00000000310924a85b39bbd14bcb151d11e450bd69af772276509e007d93bf7e")) + (2129000, uint256S("0x00000014a0d1ad70f7e8b9444143cea92f0bbbba8f3490a502ccb26169acc3c3")) + (2130000, uint256S("0x000000077bafacdc4d2276cbd5e97b7f303c98570932991935d947c2bdcf6d0e")) + (2131000, uint256S("0x0000000af47253f4aea86c4af51be4b34f5aba1c454aa41098c41d84793cfb5f")) + (2132000, uint256S("0x0000000d8b0fd244174731a7f03a399597be4b27ea30f82711c5ce5a7b4cb778")) + (2133000, uint256S("0x000000096f73526a734ef98d58ceaf9839095180f96b27aa0b68f8e9bc395cc1")) + (2134000, uint256S("0x000000135654421fab135971b1654a79dddb59195ccc060a5b19ba80beef5955")) + (2135000, uint256S("0x0000000a93e5abb450f1f1aded4f38b808dfd038fd72e4c20b697aa98fa9cfdc")) + (2136000, uint256S("0x0000000408c0887a70fe0fa4a43c477426589ce4f552db7d176eb140a9a30fcc")) + (2137000, uint256S("0x0000000464a46aa2d5f22f3f4a39803aad1084a22dccd1fcb83f08e29d3e28b2")) + (2138000, uint256S("0x000000064a011e9ecef25946fe33f9c18371e051eb246cd3621090f8139ced91")) + (2139000, uint256S("0x000000082fa6fc9c1a92ebf29a0ba2eadccd20508a1db83619357894062a5aff")) + (2140000, uint256S("0x0000000460f855e76c4d739a4023d17fe1ac6376614a1764141770edb1d687c8")) + (2141000, uint256S("0x0000000481247aaabde662576ee0178a48a4f25ddf188eebc95db4ce2c578bb2")) + (2142000, uint256S("0x00000011b7aa00475cf8620ccb296970536e0a7e3cd928d5ed05020f95923ff7")) + (2143000, uint256S("0x00000004a48dfe4fdf0eec5f130563783c60e56115226c5febfa0a5201ba7b25")) + (2144000, uint256S("0x00000013dad0ea792083834d4e02a711a738ccc4f51955fca5852b151e469f05")) + (2145000, uint256S("0x000000054ce9776cbf4d7d957865c0b3aed4a6f466459b5f2f395d2b2a2da6f2")) + (2146000, uint256S("0x00000001e0aafae6d61db4d7fb1441e1ce8381a3243e8904ff453857d0b3456c")) + (2147000, uint256S("0x000000084f0c9ba9b8490ed271747910a4053bc09ec4ec74f399fe7262e822dd")) + (2148000, uint256S("0x00000003f7b29fb734195f4ea924862811300096a17367c0334bf74e2f483fdd")) + (2149000, uint256S("0x00000002586cd17b50a802cf1a37cbf0ae8c4f165a8b4bb1dbbf0f434832e44f")) + (2150000, uint256S("0x0000000234336fc37adb386d4d3ba166106b1888f6b15210b476778e1cdba617")) + (2151000, uint256S("0x0000000abd4237926addc45f8aa8e2e8e3dcecc8f9a065538a0d8add0a41adcd")) + (2152000, uint256S("0x00000004063fbe8f4cb1c212ebe3c4655744728091e92e219b245fcd5a0c572a")) + (2153000, uint256S("0x000000015299ea3f0bbac8c1e87774255918e60405de053e01f468605169721a")) + (2154000, uint256S("0x000000009f685faddbdded0d7aa0360e5fd0434672ec0bd7a496ef14f300d9c6")) + (2155000, uint256S("0x00000004e2bab8860d90b57285c78d521d0a67826c6b59ee53907a97ebc3e98b")) + (2156000, uint256S("0x0000000365fc20fedaf53e4eb761e8b3efa219d6bb5eee72b569d49302b098f6")) + (2157000, uint256S("0x0000000ee0631ed6e44c0ad4e2ab99732088a92b17b946afd6782faf8c1039be")) + (2158000, uint256S("0x0000000f64d288fff1628defcbfc0ca5c41a45cdffad7ac8b425eb688645090c")) + (2159000, uint256S("0x0000000b4b3609b61df88081218a64157546e78be3125f02e0fb9a2ad7dc6fe0")) + (2160000, uint256S("0x0000000c658223e9d6a2b966022dfadc8e6b4a54e04710d2ebcded687cead660")) + (2161000, uint256S("0x0000001159a41488ff78d7bedca36a0fd79b841dab0e8ab3904d82860baa8b8a")) + (2162000, uint256S("0x00000011fecb4f33f5707ebb37badaf7ff933f117e892f58782b4a9a5f3baa63")) + (2163000, uint256S("0x0000000f5797242276a9a7a8cd70d8efbc6c225fcec4cb733ddec3c763ca42e4")) + (2164000, uint256S("0x0000000886bfacf5c79a53fbd9533b7af09f22e1a340284f9cff2644fe0b4b6b")) + (2165000, uint256S("0x0000000ba2f63317611c67307a58afc3f536568cc8a26c3e1a7c96bfeae50d04")) + (2166000, uint256S("0x0000000e2cf36af435818846e670e89b01c4204520108b24fd8b7138da9a80fc")) + (2167000, uint256S("0x000000015fcddcda4bf66d26410b003fe1f117701d72a85a2ec308db6a88cacc")) + (2168000, uint256S("0x000000129c923c361fd4caeee0bfabef70c5358489ca3a64ccb2c0fb74c2d759")) + (2169000, uint256S("0x0000000246c65f7233c3319283c4600600ba6bec6ecf33113552762f8bcc82ee")) + (2170000, uint256S("0x0000000ac527711a96daa55c309ac6090e0c5e47f4dc43720fffaf3167d9385a")) + (2171000, uint256S("0x000000065376b6bdc5dc0bc108400a4749afddde1c1757c17f11476c1d612220")) + (2172000, uint256S("0x00000006ca134d446c4e8cbbd1f8c3fa0276a12dfd5419ac83797e01e87a7836")) + (2173000, uint256S("0x00000009009d3bb8f190afc32b77661e0081d2c3f5d7e5e3377b4bb53d5c1a9b")) + (2174000, uint256S("0x00000010feb7099c8e0a2f0582c653d131123ca678c11965886b7f283438d5b4")) + (2175000, uint256S("0x00000011dbb4610eadd4991bd7a29360d2e73e98ac053445639fa63d87df9364")) + (2176000, uint256S("0x000000085561ce48c0eac05bc168bf5eb4eec888795be1ce26ad10e9543b9f66")) + (2177000, uint256S("0x000000095e48492726b15e24aa78ada0ec58a06f3d8c6588e9d732f377748596")) + (2178000, uint256S("0x0000001219fe5ea9287939ddd0e6e5e2f8ad4d6556a52002ad5074de9f53227d")) + (2179000, uint256S("0x00000010e3820efc9a0adc4ef3871f03f2f4722c982a77b30f757b3ef9975cb2")) + (2180000, uint256S("0x000000081877c0925c42cb866f4100f49eeb17af7ce3527744e10d519a35dc90")) + (2181000, uint256S("0x0000000cea4a29dcf89dc3d699ffc9e04aef2e923f4b75ba9af5c89ebffdb9d7")) + (2182000, uint256S("0x000000018920865bb9ea4a7458fec9e3b0e9f28c9bef25488ce444f08c58a062")) + (2183000, uint256S("0x0000001353c7fdf1416a0d361dcbe669de666166fe645188a26eea4c78ddf03a")) + (2184000, uint256S("0x00000007dbbe33596b119695ebd530869646c32e322b5fcd377d48bc31fd8c2b")) + (2185000, uint256S("0x000000198ffa20fcd5fcc98d5242f43ed1fad39015885cafd817870237420ee2")) + (2186000, uint256S("0x0000000914848d7c0720bf947010055b0a99b1854e305ca5146658181493d4bc")) + (2187000, uint256S("0x00000005b671f40e14f57ae18eb2aef37c233be1f6958a8deb25897b0755d88b")) + (2188000, uint256S("0x00000010ff6edb5e128fb6c729fdca152931cdd2c85161770833ed0a4021556f")) + (2189000, uint256S("0x0000001790079fc71b5cf4c9e28e8c4f7c2ed68db86618fdab844ed92f49869a")) + (2190000, uint256S("0x0000001ac858c2579fe6804e17c9a4ffac6f87ad218a42e0023d4f4a937d256a")) + (2191000, uint256S("0x0000000657e488ff574b139465409d783d5e7b12275b9a904adc4bdcbec555a6")) + (2192000, uint256S("0x0000000f5d7531d2be768b6b077cc1981f3da77065ddac9019c376abd771d2bf")) + (2193000, uint256S("0x0000002bf66b350408816e2dcc6166a7438786d28b5dc96eb2be8251c9edd915")) + (2194000, uint256S("0x00000006bf224770c8ed65aba45a66e04a484d4e11718586ca367e76d23570c1")) + (2195000, uint256S("0x0000000d1a303359ca7cfff975ea261045650efae95a58ec942ae6b65418760d")) + (2196000, uint256S("0x0000000c10de971b747e2d8dcf0b435ad911c5c4e650c22c2926317f9737f958")) + (2197000, uint256S("0x000000147f6a742c2a6177e3d265a0ebda14d8b065ccb31979e5a98d886136eb")) + (2198000, uint256S("0x000000104a69691ae8661a505be930491f1f8e778b66f236fd82238f1ecc55b5")) + (2199000, uint256S("0x0000001d15e004f42cb05c998b9bc4dc523be01d38b05b70d6247b7b273b3b1a")) + (2200000, uint256S("0x00000008cfb7b2ee0a5efbcaf54fb9343fd45aa0fc15fdf9f793a9ec84b1b3d8")) + (2201000, uint256S("0x00000014ffb9bacf3a7cce9172c18acaefb7e37be1622c058239c3903a41b1fb")) + (2202000, uint256S("0x000000199098587a246d8326b2bcd3edb13f9a5929164973f3dba9aafc7e2db1")) + (2203000, uint256S("0x000000003bbc88abdde6242b28a8f7ad7c80a0a4b2b02f7c13f1e851a87c0531")) + (2204000, uint256S("0x0000000b9454d46cdc35e507b9aa0b98f8c6c98bc7473281a5925efa25e7d9f7")) + (2205000, uint256S("0x00000003c6742a5eb51b71732d4ad13bddabe1a22a0f9bb1879c726853db4ea0")) + (2206000, uint256S("0x00000010ee207e0218f281066a8cb3a208540766a34818d001859a4ff21a9442")) + (2207000, uint256S("0x00000011fdbf6ed34b05e960036e4d1bd5087cb10a3fb37edad1847403d0a5fc")) + (2208000, uint256S("0x00000017fd1de616ff467b5a6ec399703f232dd5e20021f0325df4cd5066047e")) + (2209000, uint256S("0x0000001b0d85a780bc6c1fcf95d775ddf7d11930b8a7d0f30c76e17fe5b91f08")) + (2210000, uint256S("0x000000320ac1d0412b54f38d926afd63830f91fcbcc06869b9970f53804c8b05")) + (2211000, uint256S("0x0000000e89eb1167ff72252d64de56463e8bb89a546a318100bc1e09b40c75ed")) + (2212000, uint256S("0x0000000929563985b806ac74a296d19869e5e74942e73a8769da3380b0be3769")) + (2213000, uint256S("0x0000000268c366b226e82917d23c89eebfab13d226388362220b0052cefeda9d")) + (2214000, uint256S("0x0000000667ffb02f6dfceba778614abdbf5ae11b73ce4d8e5524d3e77b6d1bf0")) + (2215000, uint256S("0x00000009c0432726c9666371c3834e5b500b38caf41080b68869cfbb12af6dc2")) + (2216000, uint256S("0x0000000b4a5c376d4fc524ad456c90147206bbd445509be5a191ad9979c51f67")) + (2217000, uint256S("0x0000000563e32e4235ab5694177fc53923b9b742d0cb8b6dd654a1b45b5b9e9f")) + (2218000, uint256S("0x00000002e16de2a52496ac6caff3454fcc8dda9291b042607ab5b8cb4eb06149")) + (2219000, uint256S("0x00000003f615c3a50807128b9eb71dd357782edc581b923f0d97ecb169f00744")) + (2220000, uint256S("0x00000005a5d40c3f2239ceab163c6b0065b5c8eb98608a67943c42a7d0efdf06")) + (2221000, uint256S("0x000000052f90cdbad630bfc9639680fa20fd40af4448d6222b832b1496f9d611")) + (2222000, uint256S("0x0000000a114845b86115b2b7e83999f8745d795b3e712481dd8fcad6b017ad6c")) + (2223000, uint256S("0x0000000671f202549cf64821f6a7f9a722cf79054fd415af2c38477ed11f4509")) + (2224000, uint256S("0x00000006f8d21a9b3ffca12033f5e27d7a4b45c6254cd3bcfa0a6a7e252ffbdc")) + (2225000, uint256S("0x0000000e97a31cd82ec650d23de1d6a505ebc6f752b1bedb9f9295be69840212")) + (2226000, uint256S("0x0000000a77b14d5e8aa98dc37bab028d11c999478a344dc2d9eb4db350a8fffb")) + (2227000, uint256S("0x0000000886cde6f06d72666d7ed1d85866f8bea788102932c973fe39af80a74a")) + (2228000, uint256S("0x00000009af43eb0ed51d153a3462b65d09b4730c277d528016852980e4168752")) + (2229000, uint256S("0x00000003f464599aa6386056de225d1cbef006b8da9c0d27cc6fa779089868ca")) + (2230000, uint256S("0x0000000c0bd50433b89655bf283daf43856db8d822e996f614397c8b1c393e38")) + (2231000, uint256S("0x00000003254820b91ccca295afaa3c9562ec15032953d5ad0782c95f7d4da9fb")) + (2232000, uint256S("0x0000000349afb4e98ae708f7dff039c54b1446da2664ad0dddd5f5b94755cbfc")) + (2233000, uint256S("0x0000000297526918a57fb1a21b70cd8ed1265547d4a61ecd57302c29d16aba1c")) + (2234000, uint256S("0x00000003288ea064a3f6ddc603de61bdb4c0ccfee2a70b621a7fe95f9ad35a8c")) + (2235000, uint256S("0x0000000b8a88cee5ac71e4b61ace898cafe7c895c9bf0b5db00b9d71fda173d7")) + (2236000, uint256S("0x000000056051307f0119d828d8d621b34ef6f60a06694c569c669ead97b9a00d")) + (2237000, uint256S("0x000000001f5aa9e9dbb3be2b01a4ab0b108b85fd375f23a0452930126a00c21c")) + (2238000, uint256S("0x00000002daa24ab7db17601826843cef57562ccc1aa80a692daf45435d816cca")) + (2239000, uint256S("0x0000000a9a4283412f076a0e1d36e1e02571468ff12d06c0d075e1dfa569af8c")) + (2240000, uint256S("0x00000008b78c49c1d514ce9cc583ec04c36023911ed7772d1cf0c50b5ce1f8c8")) + (2241000, uint256S("0x0000000cbb3151b62023e1cafa4476d7bf2cf34c13229f3ba510053182133ef2")) + ,(int64_t) 1750938666, // time of last checkpointed block + (int64_t) 3149229, // total txs + (double) 1257 // txs in the last day before block 2241103 }; // END HUSH mainnet checkpoint data } else if (strcmp(SMART_CHAIN_SYMBOL,"DRAGONX") == 0) { @@ -3832,12 +4152,651 @@ void *chainparams_commandline() { (1601000, uint256S("0x000090beea47fe396580e3669295f1463abc047585d3c5029d3a29e473f2e4e8")) (1602000, uint256S("0x0000a8ca712ed653cf5cdf141382b02b552e21f4dc687a89ca946d7a236fca29")) (1603000, uint256S("0x000009762ffa6eefefcd29703f41cf9bbe5e44b4a757968f107ad9e20679c373")) - ,(int64_t) 1726135603, // time of last checkpointed block - (int64_t) 1648798, // total txs - (double) 2460 // txs in the last day before block 1603341 + // Generated at 1750959556 via hush3 util/checkpoints.pl by Duke Leto + (1604000, uint256S("0x000000047ec28daa1ebd35d272006bb99be1bfc432e64fa9ba7558669a0beebc")) + (1605000, uint256S("0x00000002829e77226633eecc400ad22f7c0051e9acea26285ffb12cad1fd3461")) + (1606000, uint256S("0x00000005c2cb7675138e10f36971d9620254bc4781d07f0785c0567068e39ef5")) + (1607000, uint256S("0x00000005703e6b60f7004a502a54615df241f38e1b4f30856a21db2ab8e2a162")) + (1608000, uint256S("0x00000000397c7d1a709c8156ef2d3da4f63b06cef6e16656510e9fb07e398d94")) + (1609000, uint256S("0x000000031accfc8544bde0cf3d160e9c46186d1330bfbc2f075bda9e63e71058")) + (1610000, uint256S("0x00000000318ea4aea52e334b9b3f8bf91e63fe485468936bba68485ae1095a46")) + (1611000, uint256S("0x0000000197b39d70fb42cd31ddc99cc3993f8fcf143f4f13138908bad9be1dfb")) + (1612000, uint256S("0x000000032441e4bbf21affe0c75a11c2aa6e8527be12effc017cb0601dd0d88a")) + (1613000, uint256S("0x00000002ff16ad0bafee22be75b953357ac958b64aa74761017cf27ef349093f")) + (1614000, uint256S("0x00000003a313b96708612dd8223e7d1bf0384b6edc56320a9932f64d1d638db6")) + (1615000, uint256S("0x00000000d192d0150f90daa6b4e2e6f7236cd641314fdced99fce65fe30d48be")) + (1616000, uint256S("0x000000036a26bb9a2481f666975bd98a478b52eb98cc0719fea84bac424a7ba8")) + (1617000, uint256S("0x000000015b35b9e2df778aac51af83403d9f361c582ff8a91a3dc4fdfadf7018")) + (1618000, uint256S("0x0000000638029048e3dff9fba19fcf06b88543ecfe45980cfdb1282670095d85")) + (1619000, uint256S("0x000000025fcd19b079405d3037588012a9cdc138ee633dd5ab5cdef92a8de23d")) + (1620000, uint256S("0x000000048c6667a8724512cbd999bc491ec8522b1f3817001c7ba485dec46d10")) + (1621000, uint256S("0x00000005d981cd3473f8815d18965c0e0035993117390e9659fe8d3b9562c8dc")) + (1622000, uint256S("0x0000000371a1663973c7b19a0b4dd8673f1ddb14a0438c89de3908712437f688")) + (1623000, uint256S("0x000000038ed359f4cdcfb54a0ba36a8ac89e4f697836920c28dd038d643064d1")) + (1624000, uint256S("0x00000000ca915eb30164ac2aad328ae5d9d4531bf8ef30c7bdf3c18c0abcdae4")) + (1625000, uint256S("0x0000000303957deb36dc6a3b6597984ca9585172a198342eb102a9d3b9455596")) + (1626000, uint256S("0x00000001485e2bf5e67162c35b4dddb9ea709e639bfdf79c8b9d1e0fd9abcf00")) + (1627000, uint256S("0x000000000cb8f8b60fa1e57622a7a5bb2daa07899d1eb39f817f8c424a52a3e5")) + (1628000, uint256S("0x00000000eab91143aa66330d27d57f77bb7feb904d17e9a3ec20c7836c701f35")) + (1629000, uint256S("0x00000002ed48f715858c998e5133c0d6748b820ce3380e2759db5558209a167a")) + (1630000, uint256S("0x000000032c724b40a4fb6d3e613aed9f294f22b76fc30b6caaa3bfe7ce3b01ad")) + (1631000, uint256S("0x000000008b0eb942b318fe821ccbf977d24a34cb9138555cc02130ecc655af81")) + (1632000, uint256S("0x0000000061c1e1eef48730e29b494681c2a3aab036219bbea140e0e4f51e0d6e")) + (1633000, uint256S("0x00000003b3d9950c5ddb598a474edc15fcc323dd59b44c32534354a043014707")) + (1634000, uint256S("0x00000001e6b8b9a471537f3b006c75428405c0f877e638e417ee9be9d2ff43b1")) + (1635000, uint256S("0x000000030073be68be4e7d68bcdb151ecf5af613bdfb9e93e7d1f7b0752f7aa5")) + (1636000, uint256S("0x00000000fd1b3853a2d59705d5b36e76491c58e0fbb81d2b35d7a7e3add3b4e1")) + (1637000, uint256S("0x000000023620ab021fb58eee94b3fbcff4b7d502807d028bdb2f32708150aae4")) + (1638000, uint256S("0x000000043c2e172e6ca4248a65ba64bdbe445f5f81844752f988a107845f349a")) + (1639000, uint256S("0x00000002fcbf7f7b4e04fa895012776248ce5020ec4bded612537a58c9dd87ea")) + (1640000, uint256S("0x00000000d6605a8a213fa134a2bf74cc901a42d0706718090788d6915c7ebbfd")) + (1641000, uint256S("0x00000001716416197b1802314a0d0f1679ab789e258ed3c930ac3456dba9bed4")) + (1642000, uint256S("0x000000044a7353133354febf9a2549d6033cabff8b3e9cb8c4335ca809d9d048")) + (1643000, uint256S("0x00000004b7eaa979bcbd468e4f9f0e4c1c9a7dde3eedd1ea53a5ce2bef562b09")) + (1644000, uint256S("0x000000027430ab7a59514ba994b3f114e5c28ea36f714515ed3cf70caeb8d227")) + (1645000, uint256S("0x00000000d4de211a3a25d4243278e0fc498058a9bae5860ae35963bcf155ba4f")) + (1646000, uint256S("0x00000004d8e662533da408b1427c4840c477bb176f5d6cc16e989a57646ecba5")) + (1647000, uint256S("0x0000000213f087be9c672b98a13d76dfb77bf276dee00e14a708c3b864427331")) + (1648000, uint256S("0x0000000129f391dd5e18ce5efbfff76edbdbd87914b7b07a68a6bbee01b4efa1")) + (1649000, uint256S("0x00000003c84f48d9074fe0dd3132843feebc204b7832fcf58265ed2b0fc91e9f")) + (1650000, uint256S("0x00000000922fca1c2ab235f6592387433c0622665408caf1a689d588acd7ef4a")) + (1651000, uint256S("0x0000000235c9ddae6fcee3486886406cdfacf06729a6a7e2abbd1a12d5b65367")) + (1652000, uint256S("0x00000001122a37089bc208bf027091c41aeed037a011aebfd1beb1388aa6e3ea")) + (1653000, uint256S("0x000000013177553290193311f8cffaa71c3648cd54039bd700685f626b7f61c3")) + (1654000, uint256S("0x00000003fadb924a1ff4dc97591004198afc9711dbbd404099f671ad93a372f5")) + (1655000, uint256S("0x0000000155ca47f18a7bc8dd51e68140cdb9a8e9d3b774276ba1dbebb1755857")) + (1656000, uint256S("0x00000003899e96ab824d812f38ac7de0c68edd5092fdbed2bc2c25ff98d64a23")) + (1657000, uint256S("0x0000000382b6257c88191f59c00b494a70a9748fa6e15edfa3a7861961836125")) + (1658000, uint256S("0x000000015f51ec2a910d81081f3458e384fa6fd3687b6b6081da5d908c21fed4")) + (1659000, uint256S("0x000000002613a74bdcb2a4321f2bf8b17dfd247cfe139ea569c0912ded3c7d2d")) + (1660000, uint256S("0x000000049e13deb195724e2a64bf4d7a476b44d67d9779a321cdc32f2363c691")) + (1661000, uint256S("0x0000000188e1647808e786af316efa45a9faba7241a24ea44a7b3b1487db382d")) + (1662000, uint256S("0x00000001edfb091e9ea392c20a197002d7de65656f41b97fdd2b175dc92860ca")) + (1663000, uint256S("0x000000029800198e2b567a2b256bc5089e6d3a57379e22ff966126151acad77b")) + (1664000, uint256S("0x0000000215402fce1b5853158fc0210b3cd3d8ad125af4692562ed8f9c399075")) + (1665000, uint256S("0x00000003164d40c0bb82317df59c0e325601b268d2c579d8f81e593c1e85adda")) + (1666000, uint256S("0x00000004a4bb0d82d09a6cfdea1493de1e960adf9bf58ecf12fcc65d8c076db6")) + (1667000, uint256S("0x00000000677a80fc06a62957146bdcfc83c637504683265fb09ca655b14a1ad8")) + (1668000, uint256S("0x00000002d16c791f19fbfb53f6b8b061af5276a756b632a59627889291caade0")) + (1669000, uint256S("0x0000000063226419faac0536ce13765bcf210fb02f4b32aa34dc68e36edc62ff")) + (1670000, uint256S("0x00000001d70644f12e0ed97832baea5d8d52b4109c3eb6d13628ca61c6983af6")) + (1671000, uint256S("0x00000001cf40d5ab42932e082e3c8f0bb769d46e759776113a40e864d9aa4aad")) + (1672000, uint256S("0x00000002070b8a20b0c1491cb30554beaa4070ca92c043a436de279794e9f24c")) + (1673000, uint256S("0x00000002619389bf5e4e12e728a4879f0ae9e09e59721313efaf00c293dbb3fd")) + (1674000, uint256S("0x000000032517420588e7b8fa7892ebe9c04fa247dc04a77cf7ff8cd96dcdfaf1")) + (1675000, uint256S("0x00000002e056c3b3501346a044723757bdf22448957ed61f580482cead17db2b")) + (1676000, uint256S("0x000000021956ce039b89a4dc4f57bbd948852fb8e60cbee97e47914476a00af7")) + (1677000, uint256S("0x00000000dcd83c42b2bd5a062c0e46237232166a3fd11fe0909908675d4b2960")) + (1678000, uint256S("0x00000002be3d780622e1c8d12dfb9ce8e00d1a6a0774edac2ec7cacd0d47968c")) + (1679000, uint256S("0x000000021acce8c8f368551df6373c7a87d884847a4837abfdeca3a412b50cdb")) + (1680000, uint256S("0x00000005910f9f52c1b2c386a051811f11d3eaa4c737dcce58ab3cc37fcd62fb")) + (1681000, uint256S("0x000000049ffd7d05bb3c1b49874baceea1bc7b6b900e31100c2ca3bcc28a25a2")) + (1682000, uint256S("0x00000001b230ac60a34ebd20a60b32c881c6d720e61eb8ff353426579d9a38b4")) + (1683000, uint256S("0x0000000427e6838977f26189ff5e1d56ebc6ecd7a9eb06d0ad1cae3ef773519e")) + (1684000, uint256S("0x000000022f04d5082852031d455546c7ca4a25e964008f8ea69d29946f28e1e6")) + (1685000, uint256S("0x0000000475bec2831d736ed0a14462c023bbd80ae03d0ec2e5c4633339332456")) + (1686000, uint256S("0x000000047a42b4eabe3ffab8d95e3cb1a2d923afcbda4e335374e728777fc474")) + (1687000, uint256S("0x00000003eda47c88b7d313cc525f0511934dacc364d045057eefc2148934cfbb")) + (1688000, uint256S("0x000000040d7bda41689357c29aedb77b016f3cd2ce2bc3ba04c4bdd95d455286")) + (1689000, uint256S("0x0000000128027ca8f7b2dccb44d26946b9df6533f05e63da9d475867c4b251fa")) + (1690000, uint256S("0x00000002dbbef67d168a562e36ba850e15acfad1172d1134df4f1f4288c9d865")) + (1691000, uint256S("0x000000048ad7645fb07ec103dadabfb66c2b544c69bd920692a834a8844be93d")) + (1692000, uint256S("0x000000010ddd71bc79e292a7c6e3c70565ba211f918eb1751e905301acbcd517")) + (1693000, uint256S("0x000000010dc70ae11c82e34000cd7d1a344bbf9fcf6344b3ac04f3173d1703d0")) + (1694000, uint256S("0x000000027e5cb8c5bfd613100811708f7d180b994650d3ca6900a81683d50fa0")) + (1695000, uint256S("0x000000014325867b388dc34843b695536eb9185c6782707f1c86edf0b5b89e9d")) + (1696000, uint256S("0x000000046385ad70b5c3de53eb6634836758eea4f7ee7b81a889f7201e27337d")) + (1697000, uint256S("0x00000004bbef43e1ad19298dea05462d23e7de9482dfda72c8643cc5a73e3356")) + (1698000, uint256S("0x00000000c7fa58a2b8420904097a9e02bc0b7aa9bc9e427ae1eed1908a150b0c")) + (1699000, uint256S("0x000000020ddfe5a4caddee1261f1b30faebfa220184e7e8fafee520d1bdc2452")) + (1700000, uint256S("0x00000001c8a7698cd8594605fed3594a8a576535d94f3440ba69b2ec01706e2f")) + (1701000, uint256S("0x00000002e9daa2a596858bd331b6320b4aaa34124ace3dbabbd50502b58eaf6b")) + (1702000, uint256S("0x000000015cfe670509475a9e7f693b5169e02d54bf459342f511b39ae05d8ce5")) + (1703000, uint256S("0x0000000045def8972d1adc0828618f4186f89b2d550a03f099ea4a72a78161ec")) + (1704000, uint256S("0x00000001a4a313c141aa9f20bb8011d00315bcfab4784a711d1529851ca6f218")) + (1705000, uint256S("0x00000000fc4bbd9320b7b0f3329c52e604655d872caa8ef9a64eb34e44b42795")) + (1706000, uint256S("0x0000000614e676936e086495ec9b3b1688a7d6030d032c3da7c241a417e6dbe7")) + (1707000, uint256S("0x000000005ebf5e6aa923dd2a4367d7747126343356710659b4b105b5557b26be")) + (1708000, uint256S("0x00000002dbfbbfa81aba34a934a69c7d6db57ace02eb20b7f1be183d8bc67b49")) + (1709000, uint256S("0x0000000481ece1648cf7bc906f3f912d7900170d6adda615c6e9402e7aae7a71")) + (1710000, uint256S("0x00000003b17400949f2f3c82142eca4c6590e863f657b64a3dbe7f79fccf38d0")) + (1711000, uint256S("0x00000004f87d08b7c4d366db9cdcef3f427842525b6e61c42338474821a22e03")) + (1712000, uint256S("0x000000049b7af8b5b5f9eb3f29d37e312abde898ad5b4891cd7d0ca1a7ee6c9d")) + (1713000, uint256S("0x00000002fe801673cf970df547fc14c4028b7c77abc185cb733b1726d8bcbce1")) + (1714000, uint256S("0x00000004a088e6e02bdc2cd157915dc13f4ff56eaaa0e7e79b796b5b3c72a89b")) + (1715000, uint256S("0x00000002e2d5aab4a2e23b05498896ff1e8c509e66ea5018c5a48135d65f54cf")) + (1716000, uint256S("0x0000000050ffc3dc91d5a8514d461b81515ebd67e22e2e3588436a8a10d7b768")) + (1717000, uint256S("0x000000017bfd0ce4a25cb8d4bae41b7e8d007854c1a66ea2fc015259b1e76174")) + (1718000, uint256S("0x00000000c8746b2e580c8e50800000d65fe893b974c2b0825521d916a87f6bbc")) + (1719000, uint256S("0x00000004647c20d62c9d15237d1f7d7996fd09c3e3a22f85439d1437eba50ca3")) + (1720000, uint256S("0x0000000087327d6b4e0644f9160915ad6f9e61497569d6223f079f7e9745674e")) + (1721000, uint256S("0x0000000201320ec96d6595875bcea2e431521b5035a766b072152af196004dbf")) + (1722000, uint256S("0x00000003d96adf0598c8a738e69fab7e578be011a49725b7dc77ebec29641dfd")) + (1723000, uint256S("0x0000000539537247a56af803ea95566ed5460664b0ba7958304f8f12ddbd657d")) + (1724000, uint256S("0x00000000e00f083cf90a695e5d6027a64e6cf3d42597a56871d17f310d7d3136")) + (1725000, uint256S("0x00000000888dbc0aa88e5d36cea342943d0271d5bfb15feebf637a838088aad3")) + (1726000, uint256S("0x000000059b3c06996b53335953a921cbd3edd0987b95a6be1987517afa58fd6c")) + (1727000, uint256S("0x000000048b539eaf18dfb0a9ce0b69a089fb4bdc80f4248dfd3e0270a2de6ce2")) + (1728000, uint256S("0x00000001055b9a98fd452d8b15f32990319ee5cb55fcd2463f382f1c9ba3ef4a")) + (1729000, uint256S("0x00000004237a1b7205a35ff9d2ed13198899f6995a0c9080ea1e0fce6b119d6c")) + (1730000, uint256S("0x00000002db2eb82e6309c174228bd0ef365f39ae75774123ff97ac729ce2ed42")) + (1731000, uint256S("0x000000066d71c51b95c32540d10fb0a7dcd8057ed812fb3bad4e084926b6cfe4")) + (1732000, uint256S("0x0000000285bd425dd245cc5456f6e0df4d1fc35531019297f3ba4a39e1c0f20e")) + (1733000, uint256S("0x000000020aad80909c26fc60918260f1096897a67d8d0e8e712b5374c04df5f4")) + (1734000, uint256S("0x0000000454b30f370832f4f09dcb3cc25347185fe78e6a20f53bc929c1f4f046")) + (1735000, uint256S("0x000000031c20ff6b27992f7df1c7852100844745d06eb081f1d7a14f8945a15d")) + (1736000, uint256S("0x00000002e8bb07f38fea576318d0daf090360d1c80f22d2c4d5acb18167985d3")) + (1737000, uint256S("0x000000029a2c942f291b050a17474b6fc0302911cbe28200133e6da35e282e7d")) + (1738000, uint256S("0x00000000ff3a12e66d4ea8356848f5fd4ee9a08793d182c91e805a0783dbb0ad")) + (1739000, uint256S("0x0000000141c88040bb76f4a44c42df8bab23b7d8cc582cdd76e7ce76ef56cb1d")) + (1740000, uint256S("0x00000001b8e797ff118fa4c0275efc75d8a1c57753b60939bd3365b29f801b7e")) + (1741000, uint256S("0x00000003f9d0ab66675f262a3bdcc1a31dcc31726ee7765ab29378d543329e49")) + (1742000, uint256S("0x000000002d3600b5c69588493b3129d847bb6e2576c0bc3ff9f6460efd2581f5")) + (1743000, uint256S("0x0000000282cadbec2f99e0c8e944b9260f13f7133cc56416870fe38e4848bfff")) + (1744000, uint256S("0x000000038e69af50667adef2cb0e9aeee8bccd52bea7e46227294f6a5e0c0438")) + (1745000, uint256S("0x000000057c5b7c69c1c10a2d11caecfbe17eb62e9be08bcf70334e25709d85b2")) + (1746000, uint256S("0x000000005590217461b08cffd1058091affebbed9715322a924057cbe697e94f")) + (1747000, uint256S("0x00000001f6a7c6dcb1984728e353cf24a3bea2e68c73754a916aefcdfb0cf29c")) + (1748000, uint256S("0x000000050efca03a20ac1d081f7b237e0187003765c302826c1c5ebb6eb251a2")) + (1749000, uint256S("0x000000029dc342a556a0f39de61340bf1913a001f2bedffb2d2fc75e9b2306bd")) + (1750000, uint256S("0x000000014c90d5bd41f3bb9cc83e966d17245989901adea24e9fb803a3af796f")) + (1751000, uint256S("0x00000002a3ace1b4b93e182cc8ab48c2d5f21d098435e08d6ffa006e66bde526")) + (1752000, uint256S("0x000000014717eb5f4d01bfe4a62a0a3cf5767ac1fe61d20782767b9ad38551a4")) + (1753000, uint256S("0x0000000165c3cd794a3ad5f5f7cf858228dd7bafea465d89d9ea6bb9d50c9a8b")) + (1754000, uint256S("0x0000000425309c3ac83b8f59e0987213c44f9d1a70af1b2df67acef706e37da6")) + (1755000, uint256S("0x00000003d788414e454fdf516d768165cd6efd59da056ad9275a2818bbf29dd0")) + (1756000, uint256S("0x0000000665956fc396e2c1b42c3932580e37f478ec7c15e28f35a76195a986d5")) + (1757000, uint256S("0x00000000dc5ace43a116ccc9358a1a6a1f21b99a4d4b38b939b5dc732578e340")) + (1758000, uint256S("0x00000000e2a0b7e090507f4f13e21aa73024fb5f8eb946975c8e18d3fbe5425c")) + (1759000, uint256S("0x000000037def7a52163a882e40c5f693d718ee3c9a3ff72765c91e5b6f9af913")) + (1760000, uint256S("0x000000045769ff47e8e3f1cb51a9b6ff1378899a231161da2a3b3caa8413b94a")) + (1761000, uint256S("0x000000052ffed0ce57ccfad266b64d9a949ad2784af80a066902dca2b2d417c8")) + (1762000, uint256S("0x000000010bef4889898cf3e2c3d0cb0ad0cc15a7aa394b6db6949aac4414e9d7")) + (1763000, uint256S("0x000000052b4397f24c7be192df7c617a3ec05eea73a9f0a71d294749c0555521")) + (1764000, uint256S("0x000000024051d111a516bd779d7a854c658439a0f82664ae7742fb76f2d87a86")) + (1765000, uint256S("0x000000054ae9cfdc5678a79671544817cfb5c45c865ce489388c6f4aab2216ee")) + (1766000, uint256S("0x00000004221eb0fac5a1340dec575372ca0ea842ac3f13eaeb41e848a9b3d605")) + (1767000, uint256S("0x0000000365cfe174006b52e5699397e641be7aaac2e4dd954bdc417dc2077004")) + (1768000, uint256S("0x00000003fdc4b4eda17fb6af8ae1551a13fc0d655a6b9559f61f39dc08ba0087")) + (1769000, uint256S("0x000000037d29ae542edf0e8fe09b2cf95d36f90d827152d4693244915b3ee456")) + (1770000, uint256S("0x00000004c918f544097141d0d6086567f483f707e948b6b9a9de762ed5281205")) + (1771000, uint256S("0x0000000436ac22a224104b08bff31869c7ac3102b9e35ae3cc23190809008abb")) + (1772000, uint256S("0x00000002385ec38d63ba954913958bc0c973698667f0cf37fe840faf362add07")) + (1773000, uint256S("0x00000004b1bd7d5616aaccf2eb556dfcd704c82c60c0b4eebc29f8f640903168")) + (1774000, uint256S("0x000000036415ef1337b9120373ccc66e851cf33e77579832eb65983bafeecbec")) + (1775000, uint256S("0x00000004c4bab47e83343b2bfce06d1542ebdefe1fddb286ed8f91a6c84769c7")) + (1776000, uint256S("0x000000016a5765722d608457aa92632a328ae581a5de599504c0935ca6092e82")) + (1777000, uint256S("0x0000000701c4bab1ce3c92668ed4949496b0830cf1d771670bb5631df8c7f643")) + (1778000, uint256S("0x000000013d0ff9925033ce0b3162926f200f867ee43efac2a7bdf6a95a56c351")) + (1779000, uint256S("0x000000003b272c6520cb8893f29db1e667aacbf40ff6da4da3ac325516c16e57")) + (1780000, uint256S("0x000000013df5ab5ff720342b732febd98fa9320bc64ea34714dbf7b4fbcd53aa")) + (1781000, uint256S("0x0000000b64be023cbcfcec386c79d708467e466782b835d1e67b486f2e5c2d74")) + (1782000, uint256S("0x000000021b2a9cd3cbbba257a3ce503f6fa1e39c6d1804100a14c13744b24363")) + (1783000, uint256S("0x00000007cde6f7ef2a41c581b122b24877e4203b3445baf0034d73ed14204ed2")) + (1784000, uint256S("0x000000004b37bb794f24abca1c311145c97550199373b17d2c7c07df5ebb9538")) + (1785000, uint256S("0x000000047edc917325ce9578a4c94f00a1183cd753c76b12c195e0e820d556f3")) + (1786000, uint256S("0x000000025c0177811a33925ddb7c245e56b941a6fbbabad67f300489e98817cf")) + (1787000, uint256S("0x0000000459dc750d8d9310ea28c7f88bdc2c2816b185ec45919bffd62153a57d")) + (1788000, uint256S("0x000000034ca7412ad71c48d3772d97dc99bbe3418b1c3cdd538b9700936fb199")) + (1789000, uint256S("0x000000076f64250f26cd16523a1785b7add386b594ebd457acbff0b7a6aa89cd")) + (1790000, uint256S("0x000000060d72c59bb12a1633dce31071cc6a132c626ab16caec774c1c7eb4d35")) + (1791000, uint256S("0x00000001515c3d79e4e28cdeaaa4a5b95b94e3a20e54c788bd66c7d79b312a5c")) + (1792000, uint256S("0x000000030f57e0c948e41863bda05f6c144ac8c9e0811e3c1844cc417e2ac8f9")) + (1793000, uint256S("0x00000005dcbfb0ea2a75b3babdf61fdaa8bc4bb24f08f2aadce4d431a681ad3d")) + (1794000, uint256S("0x00000005471c52605a54456a45e70e78f212988a21dbfc2b44329595c9d61dcd")) + (1795000, uint256S("0x000000041746a3ea05c2e383917554b8687bedce1c79c59e4d48a9dad86245af")) + (1796000, uint256S("0x00000002381f362803c3c533767dfbcb32f9756ae6bf9b7bfbf717751959be15")) + (1797000, uint256S("0x000000010a66bfc8280389b9358b7d32df17368c8d207385827ce5dcc26d8928")) + (1798000, uint256S("0x00000003170e34e98d6f7465c2aca3ac03fd6838770c639ffaaffdf47b2b5a5e")) + (1799000, uint256S("0x0000000d1f702ffae124c4d2ec4094b453f6a730f7d137638e517f377b2699f0")) + (1800000, uint256S("0x00000003119096a306aeb83dc7c3fa2c1baecaed090d88fac9751b85c02d5392")) + (1801000, uint256S("0x00000005583508df3d48ca3ea7aa8b1790a12b9d68a1537316d3ba83041acb70")) + (1802000, uint256S("0x000000060084882a0c69971fa6b1f5b219fe582b715864791c24fbdf779e30ef")) + (1803000, uint256S("0x0000000362f4bdac37f39bc886b56518b27ddca7df34c93170b316dc861997b0")) + (1804000, uint256S("0x000000052ac5a611ef3aded2989cc41fe7ef76ee95235ddc8904035ea6b41220")) + (1805000, uint256S("0x000000053f82b8a019469735d361dfe98b0ede3b7eeb1ea98bd266e4957c2009")) + (1806000, uint256S("0x00000002a73fd89ea6c9cc235a70d6d5de89870669b89a96a917f8bf96b9f799")) + (1807000, uint256S("0x000000045c45f117de62f01bc283f6170fda3ccc403aef07ad8d1b30eaf11031")) + (1808000, uint256S("0x00000004a6be7713af8533717d906be3d0b3df6b845be498591e775b27b570a5")) + (1809000, uint256S("0x000000030e95b1540d64d3cc1f596b3b84e21b7211595210d51807f12f784d29")) + (1810000, uint256S("0x00000000b00c53c576fc4938e55c3e091eebc59b67007a819d7ac77ab56fd296")) + (1811000, uint256S("0x000000008dffebe6bdf334c49df095ac5cfbcd6c81b2737e57f3ae706ee1355d")) + (1812000, uint256S("0x00000004870a62faf53b5bc60093537140a2ed830773294dac7fbe7caceac315")) + (1813000, uint256S("0x00000001cfa729a10b2978412336e3b8e5e776b79ebae946c23027fd54acae47")) + (1814000, uint256S("0x000000041aaaaa85cec731049de070fdc2b307b452cc305e8c75664efe5041bc")) + (1815000, uint256S("0x00000002ae8ca8bf637db8f46524c969fb60ec976dee9337c85e12acda1b800a")) + (1816000, uint256S("0x000000025cc83efcfa5b31b0a4b547cf5923b2f28344079f50ff09310b4e3149")) + (1817000, uint256S("0x000000038d0d1c7c923615fb07937822e313804269fccf884e38e613db802db8")) + (1818000, uint256S("0x00000005cdaec2266a5c21932dd2289a0171931aa4bdc39bcdc381d6194f3733")) + (1819000, uint256S("0x0000001f9bdedeacacc6602bf223dab9e25944637920fc6799738795c3c7efde")) + (1820000, uint256S("0x00000003a5a16120bde4b1a6a784ace30b616be37b8429e4f43eee44ceee0598")) + (1821000, uint256S("0x00000001f3c39cbe6a2bc81b0a6e6aa257de0bf13452d9adcaeeb71cc23ad029")) + (1822000, uint256S("0x00000004e0bbde4a8783d01581c7a1ba255506e9f967d8c096bc6c9034f70222")) + (1823000, uint256S("0x00000004a6d66ca53dbf714c238022cc0a42126540dff2f9cff7c59395a5752a")) + (1824000, uint256S("0x000000014b2b5044d0150acb34d993faa9ef0120a0842455e112d78632659c4f")) + (1825000, uint256S("0x0000000263a08ebf63abf6bd81764d1215a5a90aaded13d11bd04e2eb5107a05")) + (1826000, uint256S("0x000000065c08ecd03aa691178834c112fa5e728ecd82a8927f0e4f49664d5af8")) + (1827000, uint256S("0x000000058d8e8b4a7d38afa75d99f5e91b440fc209572ff26a98b1aabbbdbdcd")) + (1828000, uint256S("0x00000004480b9a3c0f9c87307804c6278dcb49c3fc362370a9fc424f27bac805")) + (1829000, uint256S("0x00000000f0b3cb7e289f48c72af19d62075c3390cd2991447216be87f9d372ae")) + (1830000, uint256S("0x000000008cd6ca08f95df6d9fab3faf3ab1ea74570d953fc05dea018f7ab0d95")) + (1831000, uint256S("0x0000000434184bdedea630dcdfeb3ff92aa48c46623f9237ee4b965150557c5a")) + (1832000, uint256S("0x00000003bf13197e2553f80bb4f1f41a27aafff87829e921fbddbdfa58718c78")) + (1833000, uint256S("0x000000037027ca30d184228e7ff663a9c0dde0f8f26f99bd587e0b8a309389fc")) + (1834000, uint256S("0x00000002827b9efc26f29c80eb728cb8ecd6cfc1a968b03c3f0e8fdd81625d88")) + (1835000, uint256S("0x000000049a0d5128db2dfa0961db2058bf7d153ebf0f4cc6d5054f561736f90c")) + (1836000, uint256S("0x00000003f67c56ff4281d35dfa78392f7ca0fe10cca06015e60b4c6ebfa2da7c")) + (1837000, uint256S("0x00000007ab31a2d80026cb363b965ed0b43a122b3e03e53b6f6614ed5ad835e6")) + (1838000, uint256S("0x00000009024dd6c35f41ebd7b759f8b108fb990c337fb2b764abcf571c731098")) + (1839000, uint256S("0x00000004a77cdd4e5130cee8c0ac9ecde7c22b0e342463596275db8b249d235e")) + (1840000, uint256S("0x0000000194db82e2be83455d477ba908718dc3c0b1092a4ef62459ad9b75b864")) + (1841000, uint256S("0x000000039654d65ddca898e2e13af01982516a542d3ede41163bb5e57c62cfcd")) + (1842000, uint256S("0x000000026c7a39b765fd8fab1cbd39bb4acb76e65de4d84996e90b6bc5cbbb8e")) + (1843000, uint256S("0x00000004ce2314f45bfeb207e27324783207dccc9a032f4f7560d5b63073d7bc")) + (1844000, uint256S("0x0000000830425ecc1282b45f0d9d2496eda51e7d29ffba7900441132c7a49d59")) + (1845000, uint256S("0x0000000a2f8f3e74c416dcd911fb06985baafa789066a7d98535fc7ccaf01299")) + (1846000, uint256S("0x00000002ac3047bbaf9a6fb3158e1245022251c40ad29c7b7d9e0dc117bae112")) + (1847000, uint256S("0x000000048c49382f8e79ae130453614ed621975037119573a8442e0c5674b7d2")) + (1848000, uint256S("0x00000007a618116d10d5cd2d61f3a542d44780a951f18b217ae394a95a51f946")) + (1849000, uint256S("0x000000053b6032fcd14396e27f966ce552450219e4f77a4bcfc7759362975d2f")) + (1850000, uint256S("0x0000000a68b3397504659a4e8eea87fc7c8788b8ce6616148c02addf46fb5a38")) + (1851000, uint256S("0x000000095bfe4bbdf20dafff20a5ba564b879595eb543394b789337e5493e766")) + (1852000, uint256S("0x000000027befad10df24147b92fc6b0b1310311fbcea57cb0ecb0f20cac43c60")) + (1853000, uint256S("0x00000000eb95b25125c7b58b9685242b4e29c4bce0f952b96475971d2b4bac51")) + (1854000, uint256S("0x000000035427daf79fdbba6152e558cb835c87817952e16dc83694d74f577dd9")) + (1855000, uint256S("0x00000000e86cebd49029f1348ecf3fec3d042fe3ad054040cf809975d676ccab")) + (1856000, uint256S("0x00000006d804ca22bbc006e2204ed721e35ca88675a66817f56a5daf3d34aaf3")) + (1857000, uint256S("0x000000069547a70ca10c149dc211c92c986800b9a4f74a44a0892f187ddf5042")) + (1858000, uint256S("0x00000002ca6303d0b280024eac8b07405dc2cfc86d54f3668074f60180bff21c")) + (1859000, uint256S("0x00000009736485bdfbcc7fef9068d2c50690e1331c0063381bb96940ce6740c7")) + (1860000, uint256S("0x00000003a9ec571fce90048e4c46586dd0a764a332b9aad36783ebe6ef225ef6")) + (1861000, uint256S("0x00000002fba6f836e098c87c71e6fc2fc811ef2c3e4014b8f66ca241c9538370")) + (1862000, uint256S("0x0000000458bcae098b9aed006b5f5b71cdfb5f7b73b0217a809d4ab5db2be96b")) + (1863000, uint256S("0x00000001e71c2b9725fd5afbb8586d6312200eada7971fdfab2d9c888daaf350")) + (1864000, uint256S("0x00000000971b82db5d846116c8bce305134f155730fc61a0f3b1e3fdc75828eb")) + (1865000, uint256S("0x00000000e999b3f061a706af846bc212e4e2ce41151a9c5d9ca6504ee7dc9675")) + (1866000, uint256S("0x000000003919b6575c4d446f14b00a57c326f282ed2e00cf75f72006d67680e3")) + (1867000, uint256S("0x00000001008c08cbae80cbf264f8c4aba686928fd72459df2298f2a6042d074c")) + (1868000, uint256S("0x000000000b8c1a48392a319214fefaf0a1aa0ff9c3ec57437fcce5068f2c4789")) + (1869000, uint256S("0x0000000758b5ff8f3edf6cf1f3b8c31778595eacc6e9139c3cd7485abf6ac8ac")) + (1870000, uint256S("0x00000006c0e18a5966014b683fc2ad66e67233857f870d1dfc3e4ba24c8d8c80")) + (1871000, uint256S("0x0000000aca708fa0f28d3c6dd195bce536428919684852372cca706440ce6470")) + (1872000, uint256S("0x00000009f1e7e2ee40d6436009ef884d25171058221068e6b561649164b921a3")) + (1873000, uint256S("0x000000041205df49ec40c992d36f19bb697f0dd25fd9474a613cdd4aea8cdf9e")) + (1874000, uint256S("0x0000000578b693fff37a8603939098aea30340b7c805a98317ced77cc9a9d738")) + (1875000, uint256S("0x000000038b9acc3c108412fe3a61bd7f77c4e709e7923fce6730173edc851ff3")) + (1876000, uint256S("0x00000002500162bbfcabe7018c43756da89dd5f5dd86b7a59d81b0aab222a4b1")) + (1877000, uint256S("0x00000001653423619a040072d21407c8f3e481c5d2da428a8c3aec4ff044ca3a")) + (1878000, uint256S("0x00000007c40a0e9e986333cbdabc6d81e100eaa1eea7a983b8bbb78317d05072")) + (1879000, uint256S("0x00000000742d5d64baebfca3b564937726ea4d4928f5b14bc5a5e70fd9c72e99")) + (1880000, uint256S("0x000000024d22fa0bdfeec3156b14a6ec455e0dccb913d006d701087a962bf692")) + (1881000, uint256S("0x000000077867103cbb1befdf33a24850470f1e26d8942a8c694b0cfd736cc8a6")) + (1882000, uint256S("0x00000003e31aad71429d93282c80b73903df35d6a762eae880ce7f746e39acb7")) + (1883000, uint256S("0x00000007df770a4a295aaed19a510535217663471284c37e62171a0b8b69070e")) + (1884000, uint256S("0x00000004f813d155265f3f09d6e0512bd0111e81708bd6c4b5857fa4c85bbf02")) + (1885000, uint256S("0x00000006236adc55d27b875af36649c7482b16a33842546bf4e8212805174e76")) + (1886000, uint256S("0x000000075757edd65122294031731b6038daefeb2d18e9adacda4b85da530fc0")) + (1887000, uint256S("0x000000021f9eaf50778462b2b58aa21b047200697c6c41880b014a14d9883c33")) + (1888000, uint256S("0x00000043c363d1126947ebea3156d801ef0922ecc57f2130793526801f11772b")) + (1889000, uint256S("0x0000000353d262ed384f346d50d7fa64ac7e513c155f4322386a0f1e33d626d1")) + (1890000, uint256S("0x000000029f50b0065af5c1eec4de04b140d847535d5422215dd0e26eed008d35")) + (1891000, uint256S("0x00000001f5b6af002a9524a8991426ee891a268f885139001ed6fdef2e1b0cb0")) + (1892000, uint256S("0x00000003c7318412f7ebd0a1da5e2809abf6293b2cf6ec519ed91a44a9b5acff")) + (1893000, uint256S("0x0000000c0efaacf06f7d9f5ce1a5211671201c24bbbe4fcbd759d17daf07d3f9")) + (1894000, uint256S("0x0000000095e2ba9e15c007baca9a01ea50ec64d87bf84f32fa9749d6f3c69f4a")) + (1895000, uint256S("0x00000002909536ceb779f4fb3bff8bf68aabcf26d953a6ccf9eac2b012c348fe")) + (1896000, uint256S("0x000000099876579cb3995e07b004c5b25304db77604b049c36473bb3be195159")) + (1897000, uint256S("0x00000009a267875f480399b16c0aa89f915d7d0a4ae15cf3bef66f9a104219d7")) + (1898000, uint256S("0x00000004321a0d47a384e405e4d3d585c7b5e064559b394d9b8517d409b81647")) + (1899000, uint256S("0x000000083025e8364786b286eb3d65cc39fa9cad4720ffef5a22da2618c4ddce")) + (1900000, uint256S("0x00000003df9302cdceced304405e46e3fe5950e191173e2afc810527d4a45472")) + (1901000, uint256S("0x00000001634453c1ad96fc6bae21a1e58c6b48af72ba9633b95fd313f4bf68da")) + (1902000, uint256S("0x0000000bc5de5e55f8d89dd1e26125b69767df8b410163d4903cfdc69687c2d7")) + (1903000, uint256S("0x0000000425dbba65f46a66a3255fe4c3e446c460970ecc066270abc0ef53ddf4")) + (1904000, uint256S("0x00000005cfedd11ec3f788d8c3e6a126c47c6bfffe0d34b821a0a1ebbd2bd0ed")) + (1905000, uint256S("0x00000004c602ef20f36b9dcfefe1970f3e008157ffcc8ddde3eb5f304f566618")) + (1906000, uint256S("0x00000004051959adaef5d9e0dc2b142351c5a5afc9a01b5c9b333a8f72844902")) + (1907000, uint256S("0x000000095bc01b7e1fdefcdc2fdfa5e9a9be8a896fae2d2b0907a5c6fc741fd2")) + (1908000, uint256S("0x00000007258940eebc238e5aabd9403c3ad97e88a90e0596a15a50f979c3b7a4")) + (1909000, uint256S("0x0000000623a348b65f08632fa073d3226831f677299eaa98afc249c6b7dea056")) + (1910000, uint256S("0x00000011f5e9f50fd2aa37b4c1bcb42a3607f4837687300be7cfc0acfe4db976")) + (1911000, uint256S("0x00000004bfc1a263d309938f5604f5c8cbc54d7b580c0b2300f6d96a2e6ac4e5")) + (1912000, uint256S("0x0000000137671d01cfcefa184b3a3365bce9caa2b8db024101f5c996b9cb2dcf")) + (1913000, uint256S("0x00000008b7007ec04ad61ce451f94a3c6fb2adb7426fc6071b2a5ea48c4f9fd8")) + (1914000, uint256S("0x0000000243fe84ebc7f9e6464ea68e938c3095e51561d168cac11e02da7dfffc")) + (1915000, uint256S("0x0000000463ee472250bc95ddf1403ac7ce518cb52b4570c5bf53c7c055f718e0")) + (1916000, uint256S("0x00000007450182fd8b6e17ab04c95182aa33ab281399e590538f3c6a5daff7cc")) + (1917000, uint256S("0x0000000a3e34f534cb787befc6520577404e39ddfb8331e587912e3c35f8eee3")) + (1918000, uint256S("0x0000000a8377c632f26108c153d2fd1d42e13e7bbfb8e62642d5e80546e2ed62")) + (1919000, uint256S("0x000000016e1b54a1aea7c531c47a3cd6aa5e0722d294c8fc0b718a9aa4574792")) + (1920000, uint256S("0x00000003e6d1d949658d5852b9319dbe0e75a4c171d2282a091a97aadc301da0")) + (1921000, uint256S("0x00000003d37c4d24c50bc32f815a8c089862d2a33f5e5010c0c36cf51f23d430")) + (1922000, uint256S("0x00000001de45a81a83b52246f6bdfd8ce4ab49ff209377f348040a2f7a08f540")) + (1923000, uint256S("0x00000006ec45bdf0764f20744447b67227cc91330bded5797881616372aa0400")) + (1924000, uint256S("0x00000003f57657a30f1fc6107611dc86dff2ea88a58d46a37339a1bc199c8f96")) + (1925000, uint256S("0x000000012f56b581239965f384ee45d91f58818781616b24e37b1a0f9ff3d21d")) + (1926000, uint256S("0x00000001fac2e82d4b4e4dc95f62625d259c29a16527dcd2ee8f1a5005944269")) + (1927000, uint256S("0x00000003ab28525c560ac0f8ba5a5ab32975b87ba1d423bdd1d1a9a675d668c6")) + (1928000, uint256S("0x0000001fc650e767800d6e022e173a9d1608ef821c296dfaabc8ac1e4f60f10c")) + (1929000, uint256S("0x00000000a297246c427d1d21d43110f0e4561e42ab940c1269d5cca17f0904e1")) + (1930000, uint256S("0x00000012f367afa4b2981c51d39b2d5181b076d93f85220a2e6c373be5c3ba13")) + (1931000, uint256S("0x0000000195f51b18da7a447e64c29086d9b9239f344592fdc31dd4793f6fb4dc")) + (1932000, uint256S("0x0000000a72a3f81eecf15b2b06b37e5d0e5c8be26945be29f7b80242dd8d866d")) + (1933000, uint256S("0x0000000602cec0393e21864f1f9de0e9a31c9eaf96d406d976b2932cb076f945")) + (1934000, uint256S("0x000000026ae0bfcedd170c1a7ec3c282806d522c714337105a5b9e3c9f75f51f")) + (1935000, uint256S("0x000000096c05eb37e98c0ac1e5da953f75c416b1939d05c3a7f38b443075274f")) + (1936000, uint256S("0x00000000b366ca6e89b40632b26fe80c14fb549c70484adede899f4b9550594b")) + (1937000, uint256S("0x00000002407697e167d3a957bf6e89a3f6ef12448ec37dc077c36541c08d9d9c")) + (1938000, uint256S("0x000000010e122ecf450e3f7af854c5d5af48ff297dc9f7b49ee60d7bb26b8744")) + (1939000, uint256S("0x00000004ace5ced8a4f052dd1260cccb305f4ec05207d3882b9ef40d11a5fe6b")) + (1940000, uint256S("0x00000001e668c7e4bcdee1a9b291e5ecfcad3eeb84ec4cff80eab05ce23109cd")) + (1941000, uint256S("0x0000000913631ecaeefb24c9d168a9a0c05df2012f3e988030eed645687a6ec3")) + (1942000, uint256S("0x0000000315b6039d0a0c14820f396dc960ad507783847f599b7d5154f88f94e0")) + (1943000, uint256S("0x00000005b7bc0112d299c2f0caed3b0cfa6c1bb730c9004e4d6ef2ceeec9efe0")) + (1944000, uint256S("0x00000007c64f0a932a8edfebb2d494665e524afc5ab755e2cefec84ce77d259a")) + (1945000, uint256S("0x00000006c6a9fe8c05283f310c0dff22a2d92304b605b593fe1c1fdfc1085bb3")) + (1946000, uint256S("0x000000054b5c0409f082be6f0b4deac5ef5106fc44173f3422885fb23bd73f7d")) + (1947000, uint256S("0x000000069a8e31d32df50f35ef63029bdd3a56d042d34cf6d02f6efc637c8dd1")) + (1948000, uint256S("0x0000000885fd68fb764457590ddee9aef3e4256f2ef067388a9c72714fa775b7")) + (1949000, uint256S("0x000000064285b903e667a64cb598f7aee2cbcf8a513a681334adef89f58b58c5")) + (1950000, uint256S("0x0000000a706ce153f138e155a21da714642ccf0997f9f9229dded6335a59ba07")) + (1951000, uint256S("0x00000005a15015e01043f708b242ae79f71694be8546098085f6604c007c40c3")) + (1952000, uint256S("0x0000000acf2ac942089d2f1dee9428c42ca89857b4cd412daedc8c68f1ca4b0b")) + (1953000, uint256S("0x00000001b11437b9668a1ba11d70af25a2c9c1635604e689d7e846d154af7503")) + (1954000, uint256S("0x0000000217414e96a2db88062abb846422f94a5329f9b89545c5c85848b3050f")) + (1955000, uint256S("0x0000000007a180128bd24de08bcda9a1f14985facc7836f4e0807c8f35b6f390")) + (1956000, uint256S("0x0000000e2a5b0ea6c830770e16614a39704d94224b317a3c82361e5c833e5480")) + (1957000, uint256S("0x00000004e224492b153481750f677db156a960d80e046c0a99fd05e3841f7a2d")) + (1958000, uint256S("0x000000038b6f492cfe2bbdef289854fb1b095c240dd4166a8f235e9eb8156258")) + (1959000, uint256S("0x00000001e59f4c934ef2f778612da7e8574649cce4638a7b4a9d9833ad32b6cc")) + (1960000, uint256S("0x0000000dad02b04d06cf33f129c4001eee6a1633281ad1966089287542dbf0d4")) + (1961000, uint256S("0x00000003bbbb92d446e92a6ca1c2026ca5acff6ef342ad7f98220e4a9f8e7ea4")) + (1962000, uint256S("0x0000000c344d3c9c22450b075f54711dda6d6f31bd4131cd8ace9197bbc79d11")) + (1963000, uint256S("0x00000007f00366ec50f4b795574ab91f426e130cd9b03999fb06a72fb4398f65")) + (1964000, uint256S("0x00000000bc0ccb4e73a3b1da4c8b9898176658fd67e0be6268e4e6a7d15a910b")) + (1965000, uint256S("0x000000037ef51b844eeddc16da9879defc6a3445142281ae34024447c3c8d9c5")) + (1966000, uint256S("0x00000001874485237ab2d0f395532fa16907e2cb0f25e5651312be730a2edcb0")) + (1967000, uint256S("0x000000054de0e7518f1263b6d0235f1e2430f7dd23cc1620122357a68731eab9")) + (1968000, uint256S("0x00000000a63a04fda160827bf347d6a6cd72ba97ae1608a76716cd97926ea88b")) + (1969000, uint256S("0x000000063f5c075dc64a67c603d21416c75ec633c1dcd0e7a93fc03bc21c6979")) + (1970000, uint256S("0x00000007790e2edf51dbaced8ac240a960dd133cbab4c0c642b93614987aedb5")) + (1971000, uint256S("0x00000007158c4e8d7ad061228c7386179ab5bececfc8e9719dc3129c6c441acc")) + (1972000, uint256S("0x0000000c1827bbab90381298cb73f55a2e146bbf235dfa57d6bc08632448acd0")) + (1973000, uint256S("0x00000005da023a70008ab851ec50b8b900332376f17f99588c91504c26b5b125")) + (1974000, uint256S("0x00000002114d8ecee02f6b3be44335ab85df887a86d78992af6a3ce9ba669c56")) + (1975000, uint256S("0x0000000a397eb6d899727ca5db6db81c6ad676c58020a0ffb3f391ff6888f3e3")) + (1976000, uint256S("0x00000009bbbf4aab09bb73cc6ed628211b1977ae5a3265fc778dcc06391c4c3e")) + (1977000, uint256S("0x0000000b7fb944df8a5b894a38b96c17eda331b3d8c406c5921f470d4adeda22")) + (1978000, uint256S("0x00000004008b94214bded7d7f14981a445055997d76b92a920dc4d55681066b0")) + (1979000, uint256S("0x000000074afc0070f2fe5643ae73e82f9e2a00c2bd10b65c4009f1fa8b9bb447")) + (1980000, uint256S("0x000000104f63e7a22c822a5185dfcf3daea94d1dc4eb72cdd1c0d5819b284b2a")) + (1981000, uint256S("0x000000056829646eb2ec3e513ae9bce58e55cc76ff9a8cca9ef9ba1665a39010")) + (1982000, uint256S("0x00000001519cc29c8c85f9f4aa37226b7d3a8a65f922f0406a9c5d92175c3c3a")) + (1983000, uint256S("0x00000017dc2451bb004694edbc90d12fc16aa45b25ac6b7b3d0179527e1c45ab")) + (1984000, uint256S("0x000000020d0f451448959d98abbdc7c9d890b8d52257323b551497376a558a1d")) + (1985000, uint256S("0x00000002577dcc6f4fe27913c036fb90161d35ce4ad9eec7fc311eaaef60e94a")) + (1986000, uint256S("0x0000000202b6fcf0b41f9214f65d5c2180815004d39ec2de27cacd3a92576607")) + (1987000, uint256S("0x000000055865f161ff5e3c9761b37505064dc7583ce5e5e592b6721ee6cb5347")) + (1988000, uint256S("0x000000080f858e3d234d701da31ef2aa1254fda3150e3ac368cb51e2115e3200")) + (1989000, uint256S("0x0000000cfa4d1e2bbdcbb234fe2f082850dcdfa858a32bef37cf89d00c89f396")) + (1990000, uint256S("0x0000000a4c621c54b6e3b4a75e9fa4f018960a1200f074de82324f68b294f04d")) + (1991000, uint256S("0x00000000cc0f49d2b2448b362e28daf3e57e1bafdb634ba2c85a51bbbec57afb")) + (1992000, uint256S("0x00000002ebd4290f45632a9573abcf4d6fc1639b34aa990eef34b6b0935cf14d")) + (1993000, uint256S("0x0000000b6d0c384a04f998e996f453058e006cd0d2bc3abdd518804eb3263fab")) + (1994000, uint256S("0x00000002c0fcac020a83d330d6e56255c82d0b47b048270dc33d6ce05b18048d")) + (1995000, uint256S("0x00000001d0cd3b61e536c43dac7d4f072769ae8e3b9abdd7f934059e5692c6ef")) + (1996000, uint256S("0x0000000ac753c7ed5450d7b05b0bd98a29df7059769c8bc07e04a2ca609c346e")) + (1997000, uint256S("0x00000004f457ce81972f0eff5cac5a63832b0d043e0ca9fc5ecac6dbdce65240")) + (1998000, uint256S("0x0000000b572087155a59cc67ba355d3a3ffaccfd685570ec56778329b27fb9ce")) + (1999000, uint256S("0x00000006e4773706c3a83ed448da34fc4e3e737d47df623254e059fd76643a52")) + (2000000, uint256S("0x00000006104d9702e1e5347418c213ba31fc3c14e009ab2d802de64f75f5ef8b")) + (2001000, uint256S("0x00000003e0ca20ef98823c384607d34fbadd3425f54b75b92a2f7b898386afff")) + (2002000, uint256S("0x0000000486c9388c8932401756df96c043e39bdfb52d8d0a147a5b97922b428e")) + (2003000, uint256S("0x00000001e639068d2aada8551e23effbea6e281bc8b10a74e8f9fd757a9d7f26")) + (2004000, uint256S("0x00000004e6f8077d8cb9adb4b0c4f08e88deb784c57b461167000763c9f7e22c")) + (2005000, uint256S("0x0000000381e818c7c3598ce66fceeb3f76538b851a33672b6fb7f63b0ee1376c")) + (2006000, uint256S("0x00000005956353cc542e589709ef1d1859c0466ae6590459ac3299513431e935")) + (2007000, uint256S("0x00000000efc171f4a2eab03c8ce32dadade866aee3a9c70b430daf051715f900")) + (2008000, uint256S("0x0000000120aad6d1c226a6ec15887cbc96135d2237f37c8c076dd20c81122cad")) + (2009000, uint256S("0x000000048d5381588a5be440fd9ad45747f76f6f5ce6e0b679ef549e0ab33979")) + (2010000, uint256S("0x000000086d9b6cfc665cd910e9d3832cde002278ae7342b1d660141390e81ed9")) + (2011000, uint256S("0x000000070b22fa037c6d290ba7811448bea1cf00c8f22aaf70b992a0456aaca0")) + (2012000, uint256S("0x00000003b32bf142b85b39c398205f42b3e10fa967fd78db41cec936347fa545")) + (2013000, uint256S("0x00000003b5bd355c58956838c927059b221c87af7e8282a5e0027e8c552d082f")) + (2014000, uint256S("0x00000001c5f2d5cccc99b43f7a9c1b9e3315eb4feef4bf611c680d6d55a1c395")) + (2015000, uint256S("0x00000006f94f71772329e7ebab13a932297c37faef047b4777f276281a6412e6")) + (2016000, uint256S("0x0000000421b342cf93513b1d098fc1a50904a1583f11a67b2d1286b4311270aa")) + (2017000, uint256S("0x000000035cfdd315adf7eb39f24b1114c316559b7266e28e369bd335332ed26e")) + (2018000, uint256S("0x00000004178109bc2e463872fed909113bb4a047722e7d4131f9f5e75e3b5d07")) + (2019000, uint256S("0x000000040bee044c9437828ac4569799f69d14527918015b94c6ef9f0ec771a2")) + (2020000, uint256S("0x00000002b5a7669c48ab1e6405688bf645062c2098ffaa8784bb6b9e952f32c3")) + (2021000, uint256S("0x00000003e7f2248ec7063391c0b8f650f6f02abcea8146025685cce41f1967db")) + (2022000, uint256S("0x00000002a3057653ae6c75eecd9f4688f0440b4e44f81af95cfa2072e01cf366")) + (2023000, uint256S("0x000000043d0b453924262edf2f2b07419cb1c79a22d2aeb9d0352727b8b95770")) + (2024000, uint256S("0x0000000857efe8be5bee7d4949b4a46924a6b16a773267faa47924db46755adc")) + (2025000, uint256S("0x00000007e197ec851d99abb18e9bda39af5acd4ebdf1cb284cf24becaa621936")) + (2026000, uint256S("0x00000008e7576b9fd21454ee1c241ad5ff86de27b90a2038b17c05174af6aa2b")) + (2027000, uint256S("0x00000007852b9d9c07bb4fb396bfcf1651fed5afacf91ac051e6232cc79eaf43")) + (2028000, uint256S("0x00000002134827686fa7399d930d28e1379d806c5da307ee8b6420e43e587c95")) + (2029000, uint256S("0x000000064d359b9d5968be2e7f2629363f16f14f2e2c23f9f113bb8074219eeb")) + (2030000, uint256S("0x0000000b62411c2027634d87f0fe56311f891a2471c2dc59f881e909fa62e21d")) + (2031000, uint256S("0x0000000b69aa3c2e0a408071337b0b8e500d7168ae58866008278bd876711b8e")) + (2032000, uint256S("0x00000004ce57ce1b210ec68c6d78d3e61b1bb61b15b42829f59adc144243396c")) + (2033000, uint256S("0x00000004024fdc3d1fac61b6713ad6013a2f36738d63cc8da836baf294bee671")) + (2034000, uint256S("0x000000057861c7bc5314e0da1aec9f1ebc1ffb4faf6955e0b75a892601edff73")) + (2035000, uint256S("0x00000010c8a56a05dad2b598c2912c8ea541b4a26f1547d96a653f6a4201bd22")) + (2036000, uint256S("0x000000041e11ed9bd926c40d810330fac5a7d68e6eaa363e0bb5c61af322ea65")) + (2037000, uint256S("0x0000000a7e65071ac725747967d8fa4c05cf1c3cf707bf32ea3af64b5be1b708")) + (2038000, uint256S("0x0000000f2bf661c814dd4c29018d5990125f5b944f8ff32d1dab74c4df96bb22")) + (2039000, uint256S("0x00000011646bb384a33b2176522d0b1890c4252e004f6e39a8a24ef23de7d4c6")) + (2040000, uint256S("0x000000049927621327cb34f68b8fa4a7a27a8f348284fbbe19a31dfb05796028")) + (2041000, uint256S("0x00000012aa50fdd25fa7bec01b4b23bf185028ee9b391ee01f448e3466dde830")) + (2042000, uint256S("0x0000001448dbbce0a941d62af80a4802b4125dbb703b8d6afc562f6f6a71c2ce")) + (2043000, uint256S("0x00000008425d39caac093da2d3bca16eb6341a5a5c6a0c9c3b29e59b613f19d5")) + (2044000, uint256S("0x00000003646c87e167ccec6a46c532299ff95ad0e09d763c77dea1b1f77fa41d")) + (2045000, uint256S("0x00000008a305f798f921a659779f2faa0c9b6061654f128bc0288e5ffba5617b")) + (2046000, uint256S("0x00000005f13275b498964e0b1b2175e9269c6e72f8d3d4a6c8800866648cc139")) + (2047000, uint256S("0x00000001faff2ed7233ac268b0dea48ca095c4221531fd5cb0a717be44fa57f2")) + (2048000, uint256S("0x000000096067600fb16cf37ff22348b0f66e81e70b9db5594ec96e55ea2aed3e")) + (2049000, uint256S("0x00000004a5c77487e8b9ce874907d1d87a5cc9a233b8200dc29424fc4d05c4ad")) + (2050000, uint256S("0x00000000f9e4a246d317efc0058c117518058b90e354fd0832a8aa3f2817ad98")) + (2051000, uint256S("0x00000004c25718021a1640d581520087f4b1ca550f60624e4f0165c42811f591")) + (2052000, uint256S("0x00000001f1cc162af35f2b78d57ce24699ddade07e9e28a72024eed4ae6d88da")) + (2053000, uint256S("0x0000000675cd8c85204a982290cbcee1ce7744883f50e49b42ec19bc3f26a6cd")) + (2054000, uint256S("0x000000073ae301de16e3a8ddfc31461abaaa6d0f68dce219e021e60786a87e33")) + (2055000, uint256S("0x0000000c3c1403f65d6d949bf47ac6c20ddf1a72a4746d489ac0373d0019ef36")) + (2056000, uint256S("0x00000000bbd938ba5199353f4464da3e0548a161b659d4158022c494e5964c53")) + (2057000, uint256S("0x00000002ef9613e873ab3e696bc67a854ca0fbd5d2c80ca2813790c7e68f7ca0")) + (2058000, uint256S("0x0000000aa352bf7be4811a434ed81b599c8bb75b51c9180ed950ed93025896bc")) + (2059000, uint256S("0x00000008758359b387368898cb7a1ab2637e8afcc25be27639c92044b6d38481")) + (2060000, uint256S("0x00000007e482f4d5931a4900fea1fe60e9b5272340930740d1daf0ddcb60fba6")) + (2061000, uint256S("0x00000002a4cc006f2a4a8dfe6031a8224f13a1653d2d7cb759f6424e973b21bc")) + (2062000, uint256S("0x00000002a89e57d8aa5073bbf9b47d3a1406b880d5a10cd04bf4db15b8d52f9f")) + (2063000, uint256S("0x00000001c2c88d5d2afd8e5d3ac0a58f75f1233278bad1f509c04bf2de8a0cd7")) + (2064000, uint256S("0x00000001e96c132713c76b3b660176376eee4d01aca688ccbd1f052c7e02eab9")) + (2065000, uint256S("0x00000009be2a5ecaa562da4b4a89974c63e41fff0d45e67aaef52cd5628832a7")) + (2066000, uint256S("0x00000002b9e96ca7a4702ff76b0e8985bd5b8165a844b0ff524118cb73b81b91")) + (2067000, uint256S("0x0000000b08dc59f10fbf0be04059d20d0fe8dffa0775a27deddeea31f1aa9c08")) + (2068000, uint256S("0x00000004f4bad2cf91e2ca928674dc26219b9fd5d51089b71ffa3a0e40c1a8cb")) + (2069000, uint256S("0x000000020ef61abb460f3bf1805208c67ef076169cc3d93feea93a44549e6b01")) + (2070000, uint256S("0x0000001933ccfe24b7f15e44ffcd6c70eb07ddd1e5153572c587c71604e037de")) + (2071000, uint256S("0x00000000b837126d714857fbefa49ba9b57a5c8e4131bc58a57a8cb72e0db9a7")) + (2072000, uint256S("0x00000009fe7c493b1bedea4cbe111dc917f36a5daa7c515efc1b152b5a4f898b")) + (2073000, uint256S("0x000000017b1dcba194020efecba83e73dc5c79d61a67909ba9697be7a096fa21")) + (2074000, uint256S("0x0000000523d291de6295dccc955ce5ad336f16f7758be2fe806828c577aceb10")) + (2075000, uint256S("0x000000000797b81b51747b233de0f2af1996321a91f3e4202b6ec009c084fa40")) + (2076000, uint256S("0x00000001e24e43918b04c68bdb3d6f344fa45161d6a83214d33182c266106942")) + (2077000, uint256S("0x0000000cd024f9475ad27396e68f77d14f261db3168510b7d5fd985e15317fe7")) + (2078000, uint256S("0x0000000098a181b61158deab23686d5fd27124e333c9db07b23144d490e94e21")) + (2079000, uint256S("0x00000008530c9cf4c78823bb23f1c12bf06fba66b757e5c0289c49a695d0f0de")) + (2080000, uint256S("0x00000006d0cfee04fb90dcbc7a3e97928228f9d49311f0c03ba36ebd91714c0e")) + (2081000, uint256S("0x000000061584569c356147479c7b59896050f266971b3ba39f2afd863c9d5da7")) + (2082000, uint256S("0x000000038a92b82d08c169edac37a1b6686d32c9b62efb79a1e0120a2e5b980c")) + (2083000, uint256S("0x0000000ed590f12cc3b91f450e5d30a317fb745dfd0559640bbd1822be0892cf")) + (2084000, uint256S("0x000000033451b003a9784bf72fb2fdf45a39b324efc6b58c5428ce4d06ae9383")) + (2085000, uint256S("0x00000006d0106b85a660e384bcf50003fbb3ebf4dc8ea4666745d18aad0ce706")) + (2086000, uint256S("0x000000046acf8da7d34ea59dee43aed38d8b174b8d3945223fd302fd43d1da30")) + (2087000, uint256S("0x00000005ced9d8c38416be2bf222b4e6bd0c116b8f3f7eb64b6a8979c4d42496")) + (2088000, uint256S("0x000000056abb81bb40ce200afa9431ec809a0b32614bc0a222d8f5363457cb1d")) + (2089000, uint256S("0x00000007510588a1f76e1bfd1d71302c734296e56654b973633cdd09715ac1b1")) + (2090000, uint256S("0x0000000419b70e2eee4092d5a7a6567d4f0f44bd25bb2e0c9c93640c147c8ad7")) + (2091000, uint256S("0x00000005a64ce43194676a276f61bc316b122526487eb6446900ecc3128d2b59")) + (2092000, uint256S("0x00000008a604ff11b8c78d309b067636a08881d6b67a262c33a35b7103228a8d")) + (2093000, uint256S("0x00000005cd8ad1d36831cb219e751d6fdea3c1ef5984106d4267181574abbb7a")) + (2094000, uint256S("0x000000084ecece471b2a7c20058821bc00507948c4e2ddda440fbbff20e8f9d0")) + (2095000, uint256S("0x00000004febb4db9b9a83945d1e876e6a1df57e9d4b7c7be522c313ca14b0684")) + (2096000, uint256S("0x00000000c6b4ad716b1ecdf2941ac5951566349430f4f65ab30a19d4683e06fe")) + (2097000, uint256S("0x0000000a69188059da26fcda56fda6616b6a7b910d81fbac0bed9cd2788fe11d")) + (2098000, uint256S("0x000000000964c0376b72fd3475fe3e20ebc0f43269d7c7be0c1b3e1ae3b084a2")) + (2099000, uint256S("0x000000075489657e7019ba875720ba133610cccbd69873b2409d293973878de6")) + (2100000, uint256S("0x000000048bce0d172dc7f21cfdd89cebc1dc8fda33b53ccd483fa77465601469")) + (2101000, uint256S("0x0000000d17a5f6802150f5f317617439d1406c1a6c9905360d5b8936f1235bf1")) + (2102000, uint256S("0x0000000a2e1dab28ba0b9d381c2a1dfc503dfc3ece2e7382efeef7fc0a9114ee")) + (2103000, uint256S("0x0000000af3728cb8cfd44ebba3ad4371affc1b77dded8c1016f6aa1e7533620f")) + (2104000, uint256S("0x00000004d3121b000e5fdfb36181921f290f9b0e88bca5e7db73edfe39ad4389")) + (2105000, uint256S("0x0000001578e4d7efa6c5071cce3bcb6c313dc20024605fc68ec52373940e2503")) + (2106000, uint256S("0x000000091602e3e0e6f2696b637f278878aa9df54b5da697623d3ff15758f530")) + (2107000, uint256S("0x0000000b40c4b2d15563ea4a4526618bc7456ae7af75b43564ef0cec35ad938f")) + (2108000, uint256S("0x0000000682e77053c4d4bcd7b6c2104e4e3c194154ef857cd05115f02681d81f")) + (2109000, uint256S("0x000000035a9bbeba87ba109903ffee9c71fd62a0a6395f1696490ea674e5a658")) + (2110000, uint256S("0x0000000547f13c557983f66c18ab0db1a64c9a8892dd84127e04025b5335a816")) + (2111000, uint256S("0x00000011342622886386272683f28994966657f559c5a39dbef9aef6c14314f3")) + (2112000, uint256S("0x0000000446d090e0f478bcb7d90cbb15142eb585c31229a433f8fb1470252be2")) + (2113000, uint256S("0x0000000db1383e1c4ca8e5f29136deb3f65ff989acbca44c94cdd4d431d6e40d")) + (2114000, uint256S("0x00000001574baeb58d2999e2ce95b0049ba0d680cc68caf2ee644abe05d17c58")) + (2115000, uint256S("0x0000000b784255ee9900040a759883da9cb04d29fd96f2b2bc8fa777377666e3")) + (2116000, uint256S("0x00000002598ad558cd93fbc11106615d187c227d80f4b9e30ba480c264bd2345")) + (2117000, uint256S("0x00000009d3b9dbbd63b11aa254b53421d55c864578617c5a57addb7b2b058f51")) + (2118000, uint256S("0x0000001083f791fdb1d314ac096a510e829d849c51ecfd07b05a97beca0fdc9f")) + (2119000, uint256S("0x0000000ef2775f3449c5f473744e92018681e9de74c59695457d4aa6fdd6d74c")) + (2120000, uint256S("0x000000044205e969e5d5ce1f297de9fa11fa23e0407dd28b852d48ab5e45f1da")) + (2121000, uint256S("0x00000010b04548479daf16dfa9c8e3c0e5b4e5b29876cb8a307d2e407aa3e5ab")) + (2122000, uint256S("0x000000052cd0199a56b4f840e6cd06afc7bae1fe5c6b060ad56b25e60037acbb")) + (2123000, uint256S("0x000000059972a7dde8caf40947c0e6fad1e85558e6da1e444be6c246589ed617")) + (2124000, uint256S("0x00000009eb2cbc8df55758e60fe06d9b38e57e1408caa4e03724519cf2639e7e")) + (2125000, uint256S("0x0000000118e98419f9b56c890c77e53298fa478bf0adaa1cd4e9617f575d442c")) + (2126000, uint256S("0x0000001168a734074aaeaa042800ebfd7a1283e0fea5ec8a688beed2822983e4")) + (2127000, uint256S("0x00000006dc5056e1e4ecd42ab4247ad9aeeb78313d5b00c14038a91c4c18b6dd")) + (2128000, uint256S("0x00000000310924a85b39bbd14bcb151d11e450bd69af772276509e007d93bf7e")) + (2129000, uint256S("0x00000014a0d1ad70f7e8b9444143cea92f0bbbba8f3490a502ccb26169acc3c3")) + (2130000, uint256S("0x000000077bafacdc4d2276cbd5e97b7f303c98570932991935d947c2bdcf6d0e")) + (2131000, uint256S("0x0000000af47253f4aea86c4af51be4b34f5aba1c454aa41098c41d84793cfb5f")) + (2132000, uint256S("0x0000000d8b0fd244174731a7f03a399597be4b27ea30f82711c5ce5a7b4cb778")) + (2133000, uint256S("0x000000096f73526a734ef98d58ceaf9839095180f96b27aa0b68f8e9bc395cc1")) + (2134000, uint256S("0x000000135654421fab135971b1654a79dddb59195ccc060a5b19ba80beef5955")) + (2135000, uint256S("0x0000000a93e5abb450f1f1aded4f38b808dfd038fd72e4c20b697aa98fa9cfdc")) + (2136000, uint256S("0x0000000408c0887a70fe0fa4a43c477426589ce4f552db7d176eb140a9a30fcc")) + (2137000, uint256S("0x0000000464a46aa2d5f22f3f4a39803aad1084a22dccd1fcb83f08e29d3e28b2")) + (2138000, uint256S("0x000000064a011e9ecef25946fe33f9c18371e051eb246cd3621090f8139ced91")) + (2139000, uint256S("0x000000082fa6fc9c1a92ebf29a0ba2eadccd20508a1db83619357894062a5aff")) + (2140000, uint256S("0x0000000460f855e76c4d739a4023d17fe1ac6376614a1764141770edb1d687c8")) + (2141000, uint256S("0x0000000481247aaabde662576ee0178a48a4f25ddf188eebc95db4ce2c578bb2")) + (2142000, uint256S("0x00000011b7aa00475cf8620ccb296970536e0a7e3cd928d5ed05020f95923ff7")) + (2143000, uint256S("0x00000004a48dfe4fdf0eec5f130563783c60e56115226c5febfa0a5201ba7b25")) + (2144000, uint256S("0x00000013dad0ea792083834d4e02a711a738ccc4f51955fca5852b151e469f05")) + (2145000, uint256S("0x000000054ce9776cbf4d7d957865c0b3aed4a6f466459b5f2f395d2b2a2da6f2")) + (2146000, uint256S("0x00000001e0aafae6d61db4d7fb1441e1ce8381a3243e8904ff453857d0b3456c")) + (2147000, uint256S("0x000000084f0c9ba9b8490ed271747910a4053bc09ec4ec74f399fe7262e822dd")) + (2148000, uint256S("0x00000003f7b29fb734195f4ea924862811300096a17367c0334bf74e2f483fdd")) + (2149000, uint256S("0x00000002586cd17b50a802cf1a37cbf0ae8c4f165a8b4bb1dbbf0f434832e44f")) + (2150000, uint256S("0x0000000234336fc37adb386d4d3ba166106b1888f6b15210b476778e1cdba617")) + (2151000, uint256S("0x0000000abd4237926addc45f8aa8e2e8e3dcecc8f9a065538a0d8add0a41adcd")) + (2152000, uint256S("0x00000004063fbe8f4cb1c212ebe3c4655744728091e92e219b245fcd5a0c572a")) + (2153000, uint256S("0x000000015299ea3f0bbac8c1e87774255918e60405de053e01f468605169721a")) + (2154000, uint256S("0x000000009f685faddbdded0d7aa0360e5fd0434672ec0bd7a496ef14f300d9c6")) + (2155000, uint256S("0x00000004e2bab8860d90b57285c78d521d0a67826c6b59ee53907a97ebc3e98b")) + (2156000, uint256S("0x0000000365fc20fedaf53e4eb761e8b3efa219d6bb5eee72b569d49302b098f6")) + (2157000, uint256S("0x0000000ee0631ed6e44c0ad4e2ab99732088a92b17b946afd6782faf8c1039be")) + (2158000, uint256S("0x0000000f64d288fff1628defcbfc0ca5c41a45cdffad7ac8b425eb688645090c")) + (2159000, uint256S("0x0000000b4b3609b61df88081218a64157546e78be3125f02e0fb9a2ad7dc6fe0")) + (2160000, uint256S("0x0000000c658223e9d6a2b966022dfadc8e6b4a54e04710d2ebcded687cead660")) + (2161000, uint256S("0x0000001159a41488ff78d7bedca36a0fd79b841dab0e8ab3904d82860baa8b8a")) + (2162000, uint256S("0x00000011fecb4f33f5707ebb37badaf7ff933f117e892f58782b4a9a5f3baa63")) + (2163000, uint256S("0x0000000f5797242276a9a7a8cd70d8efbc6c225fcec4cb733ddec3c763ca42e4")) + (2164000, uint256S("0x0000000886bfacf5c79a53fbd9533b7af09f22e1a340284f9cff2644fe0b4b6b")) + (2165000, uint256S("0x0000000ba2f63317611c67307a58afc3f536568cc8a26c3e1a7c96bfeae50d04")) + (2166000, uint256S("0x0000000e2cf36af435818846e670e89b01c4204520108b24fd8b7138da9a80fc")) + (2167000, uint256S("0x000000015fcddcda4bf66d26410b003fe1f117701d72a85a2ec308db6a88cacc")) + (2168000, uint256S("0x000000129c923c361fd4caeee0bfabef70c5358489ca3a64ccb2c0fb74c2d759")) + (2169000, uint256S("0x0000000246c65f7233c3319283c4600600ba6bec6ecf33113552762f8bcc82ee")) + (2170000, uint256S("0x0000000ac527711a96daa55c309ac6090e0c5e47f4dc43720fffaf3167d9385a")) + (2171000, uint256S("0x000000065376b6bdc5dc0bc108400a4749afddde1c1757c17f11476c1d612220")) + (2172000, uint256S("0x00000006ca134d446c4e8cbbd1f8c3fa0276a12dfd5419ac83797e01e87a7836")) + (2173000, uint256S("0x00000009009d3bb8f190afc32b77661e0081d2c3f5d7e5e3377b4bb53d5c1a9b")) + (2174000, uint256S("0x00000010feb7099c8e0a2f0582c653d131123ca678c11965886b7f283438d5b4")) + (2175000, uint256S("0x00000011dbb4610eadd4991bd7a29360d2e73e98ac053445639fa63d87df9364")) + (2176000, uint256S("0x000000085561ce48c0eac05bc168bf5eb4eec888795be1ce26ad10e9543b9f66")) + (2177000, uint256S("0x000000095e48492726b15e24aa78ada0ec58a06f3d8c6588e9d732f377748596")) + (2178000, uint256S("0x0000001219fe5ea9287939ddd0e6e5e2f8ad4d6556a52002ad5074de9f53227d")) + (2179000, uint256S("0x00000010e3820efc9a0adc4ef3871f03f2f4722c982a77b30f757b3ef9975cb2")) + (2180000, uint256S("0x000000081877c0925c42cb866f4100f49eeb17af7ce3527744e10d519a35dc90")) + (2181000, uint256S("0x0000000cea4a29dcf89dc3d699ffc9e04aef2e923f4b75ba9af5c89ebffdb9d7")) + (2182000, uint256S("0x000000018920865bb9ea4a7458fec9e3b0e9f28c9bef25488ce444f08c58a062")) + (2183000, uint256S("0x0000001353c7fdf1416a0d361dcbe669de666166fe645188a26eea4c78ddf03a")) + (2184000, uint256S("0x00000007dbbe33596b119695ebd530869646c32e322b5fcd377d48bc31fd8c2b")) + (2185000, uint256S("0x000000198ffa20fcd5fcc98d5242f43ed1fad39015885cafd817870237420ee2")) + (2186000, uint256S("0x0000000914848d7c0720bf947010055b0a99b1854e305ca5146658181493d4bc")) + (2187000, uint256S("0x00000005b671f40e14f57ae18eb2aef37c233be1f6958a8deb25897b0755d88b")) + (2188000, uint256S("0x00000010ff6edb5e128fb6c729fdca152931cdd2c85161770833ed0a4021556f")) + (2189000, uint256S("0x0000001790079fc71b5cf4c9e28e8c4f7c2ed68db86618fdab844ed92f49869a")) + (2190000, uint256S("0x0000001ac858c2579fe6804e17c9a4ffac6f87ad218a42e0023d4f4a937d256a")) + (2191000, uint256S("0x0000000657e488ff574b139465409d783d5e7b12275b9a904adc4bdcbec555a6")) + (2192000, uint256S("0x0000000f5d7531d2be768b6b077cc1981f3da77065ddac9019c376abd771d2bf")) + (2193000, uint256S("0x0000002bf66b350408816e2dcc6166a7438786d28b5dc96eb2be8251c9edd915")) + (2194000, uint256S("0x00000006bf224770c8ed65aba45a66e04a484d4e11718586ca367e76d23570c1")) + (2195000, uint256S("0x0000000d1a303359ca7cfff975ea261045650efae95a58ec942ae6b65418760d")) + (2196000, uint256S("0x0000000c10de971b747e2d8dcf0b435ad911c5c4e650c22c2926317f9737f958")) + (2197000, uint256S("0x000000147f6a742c2a6177e3d265a0ebda14d8b065ccb31979e5a98d886136eb")) + (2198000, uint256S("0x000000104a69691ae8661a505be930491f1f8e778b66f236fd82238f1ecc55b5")) + (2199000, uint256S("0x0000001d15e004f42cb05c998b9bc4dc523be01d38b05b70d6247b7b273b3b1a")) + (2200000, uint256S("0x00000008cfb7b2ee0a5efbcaf54fb9343fd45aa0fc15fdf9f793a9ec84b1b3d8")) + (2201000, uint256S("0x00000014ffb9bacf3a7cce9172c18acaefb7e37be1622c058239c3903a41b1fb")) + (2202000, uint256S("0x000000199098587a246d8326b2bcd3edb13f9a5929164973f3dba9aafc7e2db1")) + (2203000, uint256S("0x000000003bbc88abdde6242b28a8f7ad7c80a0a4b2b02f7c13f1e851a87c0531")) + (2204000, uint256S("0x0000000b9454d46cdc35e507b9aa0b98f8c6c98bc7473281a5925efa25e7d9f7")) + (2205000, uint256S("0x00000003c6742a5eb51b71732d4ad13bddabe1a22a0f9bb1879c726853db4ea0")) + (2206000, uint256S("0x00000010ee207e0218f281066a8cb3a208540766a34818d001859a4ff21a9442")) + (2207000, uint256S("0x00000011fdbf6ed34b05e960036e4d1bd5087cb10a3fb37edad1847403d0a5fc")) + (2208000, uint256S("0x00000017fd1de616ff467b5a6ec399703f232dd5e20021f0325df4cd5066047e")) + (2209000, uint256S("0x0000001b0d85a780bc6c1fcf95d775ddf7d11930b8a7d0f30c76e17fe5b91f08")) + (2210000, uint256S("0x000000320ac1d0412b54f38d926afd63830f91fcbcc06869b9970f53804c8b05")) + (2211000, uint256S("0x0000000e89eb1167ff72252d64de56463e8bb89a546a318100bc1e09b40c75ed")) + (2212000, uint256S("0x0000000929563985b806ac74a296d19869e5e74942e73a8769da3380b0be3769")) + (2213000, uint256S("0x0000000268c366b226e82917d23c89eebfab13d226388362220b0052cefeda9d")) + (2214000, uint256S("0x0000000667ffb02f6dfceba778614abdbf5ae11b73ce4d8e5524d3e77b6d1bf0")) + (2215000, uint256S("0x00000009c0432726c9666371c3834e5b500b38caf41080b68869cfbb12af6dc2")) + (2216000, uint256S("0x0000000b4a5c376d4fc524ad456c90147206bbd445509be5a191ad9979c51f67")) + (2217000, uint256S("0x0000000563e32e4235ab5694177fc53923b9b742d0cb8b6dd654a1b45b5b9e9f")) + (2218000, uint256S("0x00000002e16de2a52496ac6caff3454fcc8dda9291b042607ab5b8cb4eb06149")) + (2219000, uint256S("0x00000003f615c3a50807128b9eb71dd357782edc581b923f0d97ecb169f00744")) + (2220000, uint256S("0x00000005a5d40c3f2239ceab163c6b0065b5c8eb98608a67943c42a7d0efdf06")) + (2221000, uint256S("0x000000052f90cdbad630bfc9639680fa20fd40af4448d6222b832b1496f9d611")) + (2222000, uint256S("0x0000000a114845b86115b2b7e83999f8745d795b3e712481dd8fcad6b017ad6c")) + (2223000, uint256S("0x0000000671f202549cf64821f6a7f9a722cf79054fd415af2c38477ed11f4509")) + (2224000, uint256S("0x00000006f8d21a9b3ffca12033f5e27d7a4b45c6254cd3bcfa0a6a7e252ffbdc")) + (2225000, uint256S("0x0000000e97a31cd82ec650d23de1d6a505ebc6f752b1bedb9f9295be69840212")) + (2226000, uint256S("0x0000000a77b14d5e8aa98dc37bab028d11c999478a344dc2d9eb4db350a8fffb")) + (2227000, uint256S("0x0000000886cde6f06d72666d7ed1d85866f8bea788102932c973fe39af80a74a")) + (2228000, uint256S("0x00000009af43eb0ed51d153a3462b65d09b4730c277d528016852980e4168752")) + (2229000, uint256S("0x00000003f464599aa6386056de225d1cbef006b8da9c0d27cc6fa779089868ca")) + (2230000, uint256S("0x0000000c0bd50433b89655bf283daf43856db8d822e996f614397c8b1c393e38")) + (2231000, uint256S("0x00000003254820b91ccca295afaa3c9562ec15032953d5ad0782c95f7d4da9fb")) + (2232000, uint256S("0x0000000349afb4e98ae708f7dff039c54b1446da2664ad0dddd5f5b94755cbfc")) + (2233000, uint256S("0x0000000297526918a57fb1a21b70cd8ed1265547d4a61ecd57302c29d16aba1c")) + (2234000, uint256S("0x00000003288ea064a3f6ddc603de61bdb4c0ccfee2a70b621a7fe95f9ad35a8c")) + (2235000, uint256S("0x0000000b8a88cee5ac71e4b61ace898cafe7c895c9bf0b5db00b9d71fda173d7")) + (2236000, uint256S("0x000000056051307f0119d828d8d621b34ef6f60a06694c569c669ead97b9a00d")) + (2237000, uint256S("0x000000001f5aa9e9dbb3be2b01a4ab0b108b85fd375f23a0452930126a00c21c")) + (2238000, uint256S("0x00000002daa24ab7db17601826843cef57562ccc1aa80a692daf45435d816cca")) + (2239000, uint256S("0x0000000a9a4283412f076a0e1d36e1e02571468ff12d06c0d075e1dfa569af8c")) + (2240000, uint256S("0x00000008b78c49c1d514ce9cc583ec04c36023911ed7772d1cf0c50b5ce1f8c8")) + (2241000, uint256S("0x0000000cbb3151b62023e1cafa4476d7bf2cf34c13229f3ba510053182133ef2")) + ,(int64_t) 1750938666, // time of last checkpointed block + (int64_t) 3149424, // total txs + (double) 1254 // txs in the last day before block 2241283 }; } else { - // all other HSC's with no checkpoints + // all other HAC's with no checkpoints checkpointData = //(Checkpoints::CCheckpointData) { boost::assign::map_list_of diff --git a/src/chainparamsseeds.h b/src/chainparamsseeds.h index 4f8bdd06b..e562dce9e 100644 --- a/src/chainparamsseeds.h +++ b/src/chainparamsseeds.h @@ -12,16 +12,16 @@ // static const uint8_t chainparams_seed_main[] = { 0x01,0x04,0x67,0x45,0x80,0x94,0x00,0x00, // 103.69.128.148 - 0x01,0x04,0xc2,0x1d,0x64,0xd0,0x00,0x00, // 194.29.100.208 + 0x01,0x04,0xc2,0x1d,0x64,0xb3,0x00,0x00, // 194.29.100.179 0x01,0x04,0x2d,0x84,0x4b,0x45,0x00,0x00, // 45.132.75.69 0x01,0x04,0xaa,0xcd,0x27,0x27,0x00,0x00, // 170.205.39.39 - 0x01,0x04,0xb2,0xfa,0xbd,0x8d,0x00,0x00, // 178.250.189.141 0x01,0x04,0x95,0x1c,0x66,0xdb,0x00,0x00, // 149.28.102.219 0x01,0x04,0x9b,0x8a,0xe4,0x44,0x00,0x00, // 155.138.228.68 0x01,0x04,0x6b,0xae,0x46,0xfb,0x00,0x00, // 107.174.70.251 - 0x04,0x20,0xef,0xad,0x0c,0x95,0x3e,0x61,0xee,0x69,0x57,0x67,0xdb,0x4f,0xb7,0x8d,0xc2,0x35,0x1c,0x6b,0x96,0xf4,0x1f,0x7a,0xb4,0x06,0x09,0x3a,0x64,0x33,0xf4,0x0b,0x2c,0x94,0x00,0x00, // 56wqzfj6mhxgsv3h3nh3pdocguogxfxud55libqjhjsdh5alfsko2iqd.onion - 0x04,0x20,0x3d,0x24,0x7a,0xec,0xfe,0x60,0x6e,0x3d,0x3d,0xf3,0x4f,0x35,0x12,0x29,0xdb,0x48,0x89,0x71,0x19,0xb9,0xee,0x6a,0xfd,0xb2,0x02,0xa7,0x99,0x89,0xbb,0x69,0x39,0xdb,0x00,0x00, // hushv3h6mbxd2pptj42reko3jcexcgnz5zvp3mqcu6myto3jhhn4yzyd.onion - 0x04,0x20,0x3d,0x24,0x7a,0xee,0xf5,0x39,0x20,0x7e,0x69,0x92,0xda,0xc7,0xa6,0x9f,0xbd,0xeb,0x29,0x21,0x20,0x93,0x52,0x03,0xf3,0x60,0x41,0xfc,0xb8,0xf9,0x06,0x29,0x96,0x24,0x00,0x00, // hushv3xvheqh42ms3ld2nh555muscietkib7gycb7s4psbrjsysfywqd.onion + 0x01,0x04,0xb2,0xfa,0xbd,0x8d,0x00,0x00, // 178.250.189.141 + 0x04,0x20,0x0e,0x86,0xb6,0xfd,0x96,0xfe,0x06,0xda,0x39,0xeb,0x97,0x39,0xc9,0xd1,0x17,0xa2,0x4e,0x2b,0x75,0x4d,0xeb,0xb5,0xa1,0x34,0x1e,0x34,0x0a,0xcb,0x68,0xab,0xf0,0xe2,0x00,0x00, // b2dln7mw7ydnuopls444tuixujhcw5kn5o22cna6gqfmw2fl6drb5nad.onion + 0x04,0x20,0x1c,0x96,0x10,0x03,0xa6,0xa4,0xfa,0xa0,0x3e,0x13,0x1f,0x38,0xf0,0x9b,0xdd,0x9b,0xd7,0xdc,0x0e,0x40,0x61,0x71,0xed,0x1d,0x21,0x58,0xce,0x59,0x55,0x5e,0xe4,0x25,0x00,0x00, // dslbaa5gut5kapqtd44pbg65tpl5ydsamfy62hjbldhfsvk64qs57pyd.onion + 0x04,0x20,0xac,0xa0,0x3a,0x31,0xa7,0xea,0x8e,0x90,0xc7,0x2b,0xbb,0x89,0x41,0x05,0x48,0xa0,0x10,0x29,0x8f,0x38,0x16,0xc9,0x94,0xbe,0xef,0x7e,0x9e,0x7d,0x98,0xb6,0x76,0x9f,0x00,0x00, // vsqdumnh5khjbrzlxoeucbkiuaictdzyc3ezjpxpp2ph3gfwo2ptjmyd.onion 0x02,0x10,0x2a,0x0c,0xb6,0x41,0x06,0xf1,0x01,0x8e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00, // 2a0c:b641:6f1:18e::2 0x02,0x10,0x24,0x06,0xef,0x80,0x00,0x03,0x12,0x69,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, // 2406:ef80:3:1269::1 0x02,0x10,0x24,0x06,0xef,0x80,0x00,0x02,0x3b,0x59,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, // 2406:ef80:2:3b59::1 diff --git a/src/clientversion.h b/src/clientversion.h index db039b97a..c149a7692 100644 --- a/src/clientversion.h +++ b/src/clientversion.h @@ -1,6 +1,6 @@ // Copyright (c) 2009-2014 The Bitcoin Core developers // Copyright (c) 2016-2017 The Zcash developers -// Copyright (c) 2016-2024 The Hush developers +// Copyright (c) 2016-2025 The Hush developers // Distributed under the GPLv3 software license, see the accompanying // file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html // What happened to the SuperNET developers, who cared about privacy? @@ -30,7 +30,7 @@ // Must be kept in sync with configure.ac , ugh! #define CLIENT_VERSION_MAJOR 3 #define CLIENT_VERSION_MINOR 10 -#define CLIENT_VERSION_REVISION 3 +#define CLIENT_VERSION_REVISION 4 #define CLIENT_VERSION_BUILD 50 //! Set to true for release, false for prerelease or test build diff --git a/src/coins.cpp b/src/coins.cpp index 8801b397c..1e5bff4e3 100644 --- a/src/coins.cpp +++ b/src/coins.cpp @@ -557,8 +557,6 @@ CAmount CCoinsViewCache::GetValueIn(int32_t nHeight,int64_t *interestp,const CTr CAmount value,nResult = 0; if ( interestp != 0 ) *interestp = 0; - //if ( tx.IsCoinImport() ) - // return GetCoinImportValue(tx); if ( tx.IsCoinBase() != 0 ) return 0; for (unsigned int i = 0; i < tx.vin.size(); i++) @@ -616,7 +614,7 @@ double CCoinsViewCache::GetPriority(const CTransaction &tx, int nHeight) const // use the maximum priority for all (partially or fully) shielded transactions. // (Note that coinbase transactions cannot contain Sapling shielded Spends or Outputs.) - if (tx.vShieldedSpend.size() > 0 || tx.vShieldedOutput.size() > 0 || tx.IsCoinImport() ) { // || tx.IsPegsImport()) { + if (tx.vShieldedSpend.size() > 0 || tx.vShieldedOutput.size() > 0 ) { return MAX_PRIORITY; } diff --git a/src/hush_defs.h b/src/hush_defs.h index 25ac80f22..720fa70b5 100644 --- a/src/hush_defs.h +++ b/src/hush_defs.h @@ -63,7 +63,7 @@ const uint32_t nHushHardforkHeight4 = 1605555; const uint32_t nHushHardforkTimestamp = 1580303652; // Jan 29nd 1pm GMT const uint32_t nHushHardforkTimestamp2 = 1594425600; // Jul 11th 12a GMT -// Used by HSCs +// Used by HACs static const uint32_t HUSH_SEASON_TIMESTAMPS[NUM_HUSH_SEASONS] = {1525132800, 1563148800, nHushHardforkTimestamp, nHushHardforkTimestamp2, nHushHardforkTimestamp2*5, nHushHardforkTimestamp2*6, nHushHardforkTimestamp2*7}; // Used by HUSH3+TUSH diff --git a/src/hush_globals.h b/src/hush_globals.h index d31846ee9..128d719da 100644 --- a/src/hush_globals.h +++ b/src/hush_globals.h @@ -50,6 +50,8 @@ int32_t HUSH_INSYNC,HUSH_LASTMINED,prevHUSH_LASTMINED,HUSH_CCACTIVATE; std::string NOTARY_PUBKEY,ASSETCHAINS_NOTARIES,ASSETCHAINS_OVERRIDE_PUBKEY,DONATION_PUBKEY,ASSETCHAINS_SCRIPTPUB,NOTARY_ADDRESS,ASSETCHAINS_SELFIMPORT,ASSETCHAINS_CCLIB; uint8_t NOTARY_PUBKEY33[33],ASSETCHAINS_OVERRIDE_PUBKEY33[33],ASSETCHAINS_OVERRIDE_PUBKEYHASH[20],ASSETCHAINS_PUBLIC,ASSETCHAINS_PRIVATE,ASSETCHAINS_TXPOW,ASSETCHAINS_MARMARA; int8_t ASSETCHAINS_ADAPTIVEPOW; +uint8_t ASSETCHAINS_BURN = 0; +uint32_t ASSETCHAINS_MINOPRETURNFEE = 0; std::vector Mineropret; std::vector vAllowListAddress; char NOTARYADDRS[64][64]; diff --git a/src/hush_nSPV_fullnode.h b/src/hush_nSPV_fullnode.h index 2cf9cc9f5..f0f2176cf 100644 --- a/src/hush_nSPV_fullnode.h +++ b/src/hush_nSPV_fullnode.h @@ -233,64 +233,6 @@ public: DefaultCCChecker() { } virtual bool checkCC(uint256 txid, const std::vector &vouts, int32_t nvout, uint8_t evalcode, std::string funcids, uint256 filtertxid) { - CScript opret, dummy; - std::vector< vscript_t > vParams; - vscript_t vopret; - - if (nvout < vouts.size()) - { - // first check if it is cc vout - if (vouts[nvout].scriptPubKey.IsPayToCryptoCondition(&dummy, vParams)) - { - // try to find cc opret - if (vParams.size() > 0) - { - COptCCParams p(vParams[0]); // parse vout data - if (p.vData.size() > 0) - { - vopret = p.vData[0]; // get opret data - } - } - // if no cc opret check last vout opret - if (vopret.size() == 0) - { - GetOpReturnData(vouts.back().scriptPubKey, vopret); - } - if (vopret.size() > 2) - { - uint8_t opretEvalcode, opretFuncid; - uint256 opretTxid; - bool isEof = true; - bool isCreateTx = false; - - // parse opret first 3 fields: - bool parseOk = E_UNMARSHAL(vopret, - ss >> opretEvalcode; - ss >> opretFuncid; - if (funcids.size() > 0 && opretFuncid == funcids[0]) // this means that we check txid only for second+ funcid in array (considering that the first funcid is the creation txid itself like tokens) - { - isCreateTx = true; - } - else - { - ss >> opretTxid; - isCreateTx = false; - } - isEof = ss.eof(); ); - - opretTxid = revuint256(opretTxid); - std::cerr << __func__ << " " << "opretEvalcode=" << opretEvalcode << " opretFuncid=" << (char)opretFuncid << " isCreateTx=" << isCreateTx << " opretTxid=" << opretTxid.GetHex() << std::endl; - if( parseOk /*parseOk=true if eof reached*/|| !isEof /*more data means okay*/) - { - if (evalcode == opretEvalcode && std::find(funcids.begin(), funcids.end(), (char)opretFuncid) != funcids.end() && - (isCreateTx && filtertxid == txid || !isCreateTx && filtertxid == opretTxid)) - { - return true; - } - } - } - } - } return false; } }; @@ -352,69 +294,9 @@ int32_t NSPV_mempoolfuncs(bits256 *satoshisp,int32_t *vindexp,std::vector vopret; char destaddr[64]; *vindexp = -1; memset(satoshisp,0,sizeof(*satoshisp)); - /* - if ( funcid == NSPV_CC_TXIDS) - { - std::vector > tmp_txids; uint256 tmp_txid,hashBlock; - int32_t n=0,skipcount=vout>>16; uint8_t eval=(vout>>8)&0xFF, func=vout&0xFF; - - CTransaction tx; - SetCCtxids(tmp_txids,coinaddr,isCC); - if ( skipcount < 0 ) skipcount = 0; - if ( skipcount >= tmp_txids.size() ) - skipcount = tmp_txids.size()-1; - if ( tmp_txids.size()-skipcount > 0 ) - { - for (std::vector >::const_iterator it=tmp_txids.begin(); it!=tmp_txids.end(); it++) - { - if (txid!=zeroid || func!=0) - { - myGetTransaction(it->first.txhash,tx,hashBlock); - std::vector> oprets; uint256 tokenid,txid; - std::vector vopret,vOpretExtra; uint8_t *script,e,f,tokenevalcode; - std::vector pubkeys; - - if (DecodeTokenOpRet(tx.vout[tx.vout.size()-1].scriptPubKey,tokenevalcode,tokenid,pubkeys,oprets)!=0 && GetOpretBlob(oprets, OPRETID_CHANNELSDATA, vOpretExtra) && tokenevalcode==EVAL_TOKENS && vOpretExtra.size()>0) - { - vopret=vOpretExtra; - } - else GetOpReturnData(tx.vout[tx.vout.size()-1].scriptPubKey, vopret); - script = (uint8_t *)vopret.data(); - if ( vopret.size() > 2 && script[0]==eval ) - { - switch (eval) - { - case EVAL_CHANNELS:EVAL_PEGS:EVAL_ORACLES:EVAL_GAMES:EVAL_IMPORTGATEWAY:EVAL_ROGUE: - E_UNMARSHAL(vopret,ss >> e; ss >> f; ss >> tmp_txid;); - if (e!=eval || (txid!=zeroid && txid!=tmp_txid) || (func!=0 && f!=func)) continue; - break; - case EVAL_TOKENS:EVAL_DICE:EVAL_DILITHIUM:EVAL_FAUCET:EVAL_LOTO:EVAL_PAYMENTS:EVAL_REWARDS: - E_UNMARSHAL(vopret,ss >> e; ss >> f;); - if (e!=eval || (func!=0 && f!=func)) continue; - break; - default: - break; - } - } - } - if ( n >= skipcount ) txids.push_back(it->first.txhash); - n++; - } - return (n-skipcount); - } - return (0); - } - */ if ( mempool.size() == 0 ) return(0); - /* - if ( funcid == NSPV_MEMPOOL_CCEVALCODE ) - { - isCC = true; - evalcode = vout & 0xff; - func = (vout >> 8) & 0xff; - } - */ + LOCK(mempool.cs); BOOST_FOREACH(const CTxMemPoolEntry &e,mempool.mapTx) { diff --git a/src/hush_nSPV_wallet.h b/src/hush_nSPV_wallet.h index 5e329aa2a..85075e29f 100644 --- a/src/hush_nSPV_wallet.h +++ b/src/hush_nSPV_wallet.h @@ -322,31 +322,14 @@ UniValue NSPV_spend(char *srcaddr,char *destaddr,int64_t satoshis) // what its a } else if ( bitcoin_base58decode(rmd160,destaddr) != 25 ) { - if ( (len= is_hexstr(destaddr,0)) > 0 ) - { - len >>= 1; - data.resize(len); - decode_hex(&data[0],len,destaddr); - if ( data[len-1] == OP_CHECKCRYPTOCONDITION ) - { - data.resize(--len); - scriptPubKey = CScript() << data << OP_CHECKCRYPTOCONDITION; - } - else - { - result.push_back(Pair("result","error")); - result.push_back(Pair("error","only CC hex allowed for now")); - return(result); } - } - else - { + if ( (len= is_hexstr(destaddr,0)) > 0 ) { + result.push_back(Pair("result","error")); + return(result); + } else { result.push_back(Pair("result","error")); - result.push_back(Pair("error","invalid destaddr/CCvout hex")); return(result); } - } - else - { + } else { data.resize(20); memcpy(&data[0],&rmd160[1],20); scriptPubKey = (CScript() << OP_DUP << OP_HASH160 << ParseHex(HexStr(data)) << OP_EQUALVERIFY << OP_CHECKSIG); diff --git a/src/hush_notary.h b/src/hush_notary.h index 2f877c3cb..50335c349 100644 --- a/src/hush_notary.h +++ b/src/hush_notary.h @@ -102,7 +102,7 @@ int32_t hush_notaries(uint8_t pubkeys[64][33],int32_t height,uint32_t timestamp) int32_t i,htind,n; uint64_t mask = 0; struct knotary_entry *kp,*tmp; static uint8_t hush_pubkeys[NUM_HUSH_SEASONS][64][33],didinit[NUM_HUSH_SEASONS]; - //HUSH3+TUSH use block heights, HSCs use timestamps + //HUSH3+TUSH use block heights, HACs use timestamps if ( timestamp == 0 && SMART_CHAIN_SYMBOL[0] != 0 ) { timestamp = hush_heightstamp(height); } else if ( SMART_CHAIN_SYMBOL[0] == 0 ) { @@ -113,7 +113,7 @@ int32_t hush_notaries(uint8_t pubkeys[64][33],int32_t height,uint32_t timestamp) int32_t hush_season = 0; bool ishush3 = strncmp(SMART_CHAIN_SYMBOL, "HUSH3",5) == 0 ? true : false; bool istush = strncmp(SMART_CHAIN_SYMBOL, "TUSH",4) == 0 ? true : false; - // TUSH uses height activation like HUSH3, other HSCs use timestamps + // TUSH uses height activation like HUSH3, other HACs use timestamps hush_season = (ishush3 || istush) ? gethushseason(height) : getacseason(timestamp); if(IS_HUSH_NOTARY) { diff --git a/src/hush_utils.h b/src/hush_utils.h index 5f2760b5c..f1bb80697 100644 --- a/src/hush_utils.h +++ b/src/hush_utils.h @@ -1805,14 +1805,23 @@ void hush_args(char *argv0) if (ishush3) { HUSH_nodes = {"node1.hush.is","node2.hush.is","node3.hush.is", "node4.hush.is","node5.hush.is","node6.hush.is", - "node7.hush.is","node8.hush.is","node1.hush.land", - "node2.hush.land","node3.hush.land","node4.hush.land", - "node5.hush.land","node6.hush.land","node7.hush.land"}; + "node7.hush.is","node8.hush.is", + "178.250.189.141", + "31.202.19.157", + "45.132.75.69", + "45.63.58.167", + "b2dln7mw7ydnuopls444tuixujhcw5kn5o22cna6gqfmw2fl6drb5nad.onion", + "dslbaa5gut5kapqtd44pbg65tpl5ydsamfy62hjbldhfsvk64qs57pyd.onion", + "vsqdumnh5khjbrzlxoeucbkiuaictdzyc3ezjpxpp2ph3gfwo2ptjmyd.onion", + "plrobkepqjxs2cmig273mxnqh3qhuhdaioyb2n5kafn264ramb7tqxid.onion" + }; + } if (isdragonx) { DRAGONX_nodes = {"node1.dragonx.is","node2.dragonx.is","node3.dragonx.is", - "node4.dragonx.is","node5.dragonx.is","node6.dragonx.is"}; + "node4.dragonx.is","node5.dragonx.is","node6.dragonx.is" + }; } vector more_nodes = mapMultiArgs["-addnode"]; @@ -1843,7 +1852,9 @@ void hush_args(char *argv0) HUSH_SNAPSHOT_INTERVAL = GetArg("-ac_snapshot",0); Split(GetArg("-ac_nk",""), sizeof(ASSETCHAINS_NK)/sizeof(*ASSETCHAINS_NK), ASSETCHAINS_NK, 0); - + ASSETCHAINS_BURN = GetArg("-ac_burn", 0); + ASSETCHAINS_MINOPRETURNFEE = GetArg("-ac_minopreturnfee", 0); + // -ac_ccactivateht=evalcode,height,evalcode,height,evalcode,height.... Split(GetArg("-ac_ccactivateht",""), sizeof(ccEnablesHeight)/sizeof(*ccEnablesHeight), ccEnablesHeight, 0); // fill map with all eval codes and activation height of 0. @@ -1859,7 +1870,7 @@ void hush_args(char *argv0) fprintf(stderr, "ac_ccactivateht: invalid evalcode.%i must be between 0 and 256.\n", ecode); else if ( ht > 0 ) { - // update global map. + // update global map. mapHeightEvalActivate[ecode] = ht; fprintf(stderr, "ac_ccactivateht: ecode.%i activates at height.%i\n", ecode, mapHeightEvalActivate[ecode]); } @@ -2169,7 +2180,7 @@ void hush_args(char *argv0) } } - if ( ASSETCHAINS_ENDSUBSIDY[0] != 0 || ASSETCHAINS_REWARD[0] != 0 || ASSETCHAINS_HALVING[0] != 0 || ASSETCHAINS_DECAY[0] != 0 || ASSETCHAINS_COMMISSION != 0 || ASSETCHAINS_PUBLIC != 0 || ASSETCHAINS_PRIVATE != 0 || ASSETCHAINS_TXPOW != 0 || ASSETCHAINS_FOUNDERS != 0 || ASSETCHAINS_SCRIPTPUB.size() > 1 || ASSETCHAINS_SELFIMPORT.size() > 0 || ASSETCHAINS_OVERRIDE_PUBKEY33[0] != 0 || ASSETCHAINS_TIMELOCKGTE != _ASSETCHAINS_TIMELOCKOFF|| ASSETCHAINS_ALGO != ASSETCHAINS_EQUIHASH || ASSETCHAINS_LWMAPOS != 0 || ASSETCHAINS_LASTERA > 0 || ASSETCHAINS_BEAMPORT != 0 || ASSETCHAINS_CODAPORT != 0 || ASSETCHAINS_MARMARA != 0 || nonz > 0 || ASSETCHAINS_CCLIB.size() > 0 || ASSETCHAINS_FOUNDERS_REWARD != 0 || ASSETCHAINS_NOTARY_PAY[0] != 0 || ASSETCHAINS_BLOCKTIME != 60 || ASSETCHAINS_CBOPRET != 0 || Mineropret.size() != 0 || (ASSETCHAINS_NK[0] != 0 && ASSETCHAINS_NK[1] != 0) || HUSH_SNAPSHOT_INTERVAL != 0 || ASSETCHAINS_EARLYTXIDCONTRACT != 0 || ASSETCHAINS_CBMATURITY != 0 || ASSETCHAINS_ADAPTIVEPOW != 0 ) + if ( ASSETCHAINS_ENDSUBSIDY[0] != 0 || ASSETCHAINS_REWARD[0] != 0 || ASSETCHAINS_HALVING[0] != 0 || ASSETCHAINS_DECAY[0] != 0 || ASSETCHAINS_COMMISSION != 0 || ASSETCHAINS_PUBLIC != 0 || ASSETCHAINS_PRIVATE != 0 || ASSETCHAINS_TXPOW != 0 || ASSETCHAINS_FOUNDERS != 0 || ASSETCHAINS_SCRIPTPUB.size() > 1 || ASSETCHAINS_SELFIMPORT.size() > 0 || ASSETCHAINS_OVERRIDE_PUBKEY33[0] != 0 || ASSETCHAINS_TIMELOCKGTE != _ASSETCHAINS_TIMELOCKOFF|| ASSETCHAINS_ALGO != ASSETCHAINS_EQUIHASH || ASSETCHAINS_LWMAPOS != 0 || ASSETCHAINS_LASTERA > 0 || ASSETCHAINS_BEAMPORT != 0 || ASSETCHAINS_CODAPORT != 0 || ASSETCHAINS_MARMARA != 0 || nonz > 0 || ASSETCHAINS_CCLIB.size() > 0 || ASSETCHAINS_FOUNDERS_REWARD != 0 || ASSETCHAINS_NOTARY_PAY[0] != 0 || ASSETCHAINS_BLOCKTIME != 60 || ASSETCHAINS_CBOPRET != 0 || Mineropret.size() != 0 || (ASSETCHAINS_NK[0] != 0 && ASSETCHAINS_NK[1] != 0) || HUSH_SNAPSHOT_INTERVAL != 0 || ASSETCHAINS_EARLYTXIDCONTRACT != 0 || ASSETCHAINS_CBMATURITY != 0 || ASSETCHAINS_ADAPTIVEPOW != 0 || ASSETCHAINS_BURN != 0 || ASSETCHAINS_MINOPRETURNFEE) { if(fDebug) fprintf(stderr,"perc %.4f%% ac_pub=[%02x%02x%02x...] acsize.%d\n",dstr(ASSETCHAINS_COMMISSION)*100,ASSETCHAINS_OVERRIDE_PUBKEY33[0],ASSETCHAINS_OVERRIDE_PUBKEY33[1],ASSETCHAINS_OVERRIDE_PUBKEY33[2],(int32_t)ASSETCHAINS_SCRIPTPUB.size()); @@ -2329,6 +2340,16 @@ void hush_args(char *argv0) } if ( ASSETCHAINS_ADAPTIVEPOW != 0 ) extraptr[extralen++] = ASSETCHAINS_ADAPTIVEPOW; + + if ( ASSETCHAINS_BURN != 0 ) + { + extralen += dragon_rwnum(1,&extraptr[extralen],sizeof(ASSETCHAINS_BURN),(void *)&ASSETCHAINS_BURN); + } + + if ( ASSETCHAINS_MINOPRETURNFEE != 0 ) + { + extralen += dragon_rwnum(1,&extraptr[extralen],sizeof(ASSETCHAINS_MINOPRETURNFEE),(void *)&ASSETCHAINS_MINOPRETURNFEE); + } } addn = GetArg("-seednode",""); diff --git a/src/init.cpp b/src/init.cpp index c034826d6..2877dd288 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -429,8 +429,10 @@ std::string HelpMessage(HelpMessageMode mode) strUsage += HelpMessageOpt("-i2psam=", strprintf(_("I2P SAM proxy to reach I2P peers and accept I2P connections (default: none)"))); strUsage += HelpMessageOpt("-i2pacceptincoming", strprintf(_("If set and -i2psam is also set then incoming I2P connections are accepted via the SAM proxy. If this is not set but -i2psam is set then only outgoing connections will be made to the I2P network. Ignored if -i2psam is not set. Listening for incoming I2P connections is done through the SAM proxy, not by binding to a local address and port (default: 1)"))); strUsage += HelpMessageOpt("-onlynet=", _("Only connect to nodes in network (ipv4, ipv6, onion or i2p)")); - strUsage += HelpMessageOpt("-disableipv4", _("Disable Ipv4 network connections") + " " + _("(default: 0)")); - strUsage += HelpMessageOpt("-disableipv6", _("Disable Ipv6 network connections") + " " + _("(default: 0)")); + strUsage += HelpMessageOpt("-disableipv4", _("Disable Ipv4 network connections") + " " + strprintf(_("(default: %u)"), DEFAULT_DISABLE_IPV4)); + strUsage += HelpMessageOpt("-disableipv6", _("Disable Ipv6 network connections") + " " + strprintf(_("(default: %u)"), DEFAULT_DISABLE_IPV6)); + + strUsage += HelpMessageOpt("-clearnet", _("Enable clearnet connections. Setting to 0 will disable clearnet and use sane defaults for Tor/i2p") + " " + strprintf(_("(default: %u)"), DEFAULT_CLEARNET)); strUsage += HelpMessageOpt("-permitbaremultisig", strprintf(_("Relay non-P2SH multisig (default: %u)"), 1)); strUsage += HelpMessageOpt("-peerbloomfilters", strprintf(_("Support filtering of blocks and transaction with Bloom filters (default: %u)"), 1)); @@ -601,6 +603,8 @@ std::string HelpMessage(HelpMessageMode mode) strUsage += HelpMessageOpt("-ac_algo", _("Choose PoW mining algorithm, either 'equihash' or 'randomx'. default is Equihash (200,9)")); strUsage += HelpMessageOpt("-ac_blocktime", _("Block time in seconds, default is 60")); strUsage += HelpMessageOpt("-ac_beam", _("BEAM integration")); + strUsage += HelpMessageOpt("-ac_burn", _("Allow sending funds to the transparent burn address when -ac_private=1")); + strUsage += HelpMessageOpt("-ac_minopreturnfee", _("OP_RETURN minimum fee per tx, regardless of tx size, default is 1 coin")); strUsage += HelpMessageOpt("-ac_coda", _("CODA integration")); strUsage += HelpMessageOpt("-ac_decay", _("Percentage of block reward decrease at each halving")); strUsage += HelpMessageOpt("-ac_end", _("Block height at which block rewards will end")); @@ -1643,12 +1647,38 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) } //fprintf(stderr,"%s tik18\n", __FUNCTION__); + // Disable clearnet peers if -clearnet=0 + if (!GetBoolArg("-clearnet", DEFAULT_CLEARNET)) { +#ifdef ENABLE_MINING + // mining to the same taddr links different txs together as from the same owner + // and if using -clearnet=0 that can be used to link together different .onions + // as being the same entity, because they are mining to the same taddr + if (mapArgs.count("-mineraddress")) { + return InitError(_("-mineraddress and -clearnet=0 cannot be used together because it would reduce your privacy!")); + } +#endif + SoftSetBoolArg("-disableipv4", true); + SoftSetBoolArg("-disableipv6", true); + SoftSetBoolArg("-dns", false); + SoftSetBoolArg("-dnsseed", false); + SoftSetArg("-bind", "127.0.0.1"); + SoftSetArg("-onlynet", "onion"); + SoftSetArg("-onlynet", "i2p"); + SoftSetArg("-onion", "127.0.0.1:9050"); + SoftSetArg("-i2psam", "127.0.0.1:7656"); + } + if (mapArgs.count("-onlynet")) { std::set nets; BOOST_FOREACH(const std::string& snet, mapMultiArgs["-onlynet"]) { enum Network net = ParseNetwork(snet); - if (net == NET_UNROUTABLE) + if (net == NET_UNROUTABLE) { return InitError(strprintf(_("Unknown network specified in -onlynet: '%s'"), snet)); + } else if (net == NET_IPV4 && GetBoolArg("-disableipv4", DEFAULT_DISABLE_IPV4)) { + return InitError(strprintf(_("-onlynet=ipv4 is incompatible with -disableipv4 !"))); + } else if (net == NET_IPV6 && GetBoolArg("-disableipv6", DEFAULT_DISABLE_IPV4)) { + return InitError(strprintf(_("-onlynet=ipv6 is incompatible with -disableipv6 !"))); + } nets.insert(net); } for (int n = 0; n < NET_MAX; n++) { @@ -1658,6 +1688,22 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) } } + if(mapMultiArgs["-disableipv6"].size() > 1) { + return InitError("-disableipv6 can only be used once"); + } + + if(mapMultiArgs["-disableipv4"].size() > 1) { + return InitError("-disableipv4 can only be used once"); + } + + if (GetBoolArg("-disableipv6", DEFAULT_DISABLE_IPV6)) { + SetReachable(NET_IPV6, false); + } + + if (GetBoolArg("-disableipv4", DEFAULT_DISABLE_IPV4)) { + SetReachable(NET_IPV4, false); + } + //fprintf(stderr,"%s tik19\n", __FUNCTION__); if (mapArgs.count("-allowlist")) { BOOST_FOREACH(const std::string& net, mapMultiArgs["-allowlist"]) { diff --git a/src/main.cpp b/src/main.cpp index f2f3bf831..ff3c3ea64 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -817,7 +817,7 @@ bool hush_dailysnapshot(int32_t height) { uint256 blockhash; CTransaction txin; //if (tx.IsPegsImport() && j==0) continue; - if ( !tx.IsCoinImport() && !tx.IsCoinBase() && myGetTransaction(tx.vin[j].prevout.hash,txin,blockhash) ) + if ( !tx.IsCoinBase() && myGetTransaction(tx.vin[j].prevout.hash,txin,blockhash) ) { int vout = tx.vin[j].prevout.n; if ( ExtractDestination(txin.vout[vout].scriptPubKey, vDest) ) @@ -994,11 +994,10 @@ bool IsStandardTx(const CTransaction& tx, string& reason, const int nHeight) } nDataOut++; //fprintf(stderr,"is OP_RETURN\n"); - } - else if ((whichType == TX_MULTISIG) && (!fIsBareMultisigStd)) { + } else if ((whichType == TX_MULTISIG) && (!fIsBareMultisigStd)) { reason = "bare-multisig"; return false; - } else if (whichType != TX_CRYPTOCONDITION && txout.IsDust(::minRelayTxFee)) { + } else if (txout.IsDust(::minRelayTxFee)) { reason = "dust"; return false; } @@ -1103,8 +1102,8 @@ bool AreInputsStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs, if (tx.IsCoinBase()) return true; // Coinbases don't use vin normally - if (tx.IsCoinImport()) - return tx.vin[0].scriptSig.IsCoinImport(); + //if (tx.IsCoinImport()) + // return tx.vin[0].scriptSig.IsCoinImport(); for (unsigned int i = 0; i < tx.vin.size(); i++) { @@ -1180,7 +1179,7 @@ unsigned int GetLegacySigOpCount(const CTransaction& tx) unsigned int GetP2SHSigOpCount(const CTransaction& tx, const CCoinsViewCache& inputs) { - if (tx.IsCoinBase() || tx.IsCoinImport()) + if (tx.IsCoinBase()) return 0; unsigned int nSigOps = 0; @@ -1223,16 +1222,6 @@ bool ContextualCheckTransaction(int32_t slowflag,const CBlock *block, CBlockInde { const bool overwinterActive = nHeight >=1 ? true : false; //NetworkUpgradeActive(nHeight, Params().GetConsensus(), Consensus::UPGRADE_OVERWINTER); const bool saplingActive = nHeight >=1 ? true : false; //NetworkUpgradeActive(nHeight, Params().GetConsensus(), Consensus::UPGRADE_SAPLING); - const bool isSprout = false; //!overwinterActive; - - /* - // If Sprout rules apply, reject transactions which are intended for Overwinter and beyond - if (isSprout && tx.fOverwintered) { - int32_t ht = Params().GetConsensus().vUpgrades[Consensus::UPGRADE_OVERWINTER].nActivationHeight; - return state.DoS((ht < 0 || nHeight < ht) ? 0 : dosLevel,error("ContextualCheckTransaction(): ht.%d activates.%d dosLevel.%d overwinter is not active yet",nHeight, Params().GetConsensus().vUpgrades[Consensus::UPGRADE_OVERWINTER].nActivationHeight, dosLevel),REJECT_INVALID, "tx-overwinter-not-active"); - //return state.DoS(isInitBlockDownload() ? 0 : dosLevel,error("ContextualCheckTransaction(): ht.%d activates.%d dosLevel.%d overwinter is not active yet",nHeight, Params().GetConsensus().vUpgrades[Consensus::UPGRADE_OVERWINTER].nActivationHeight, dosLevel),REJECT_INVALID, "tx-overwinter-not-active"); - } - */ if (saplingActive) { // Reject transactions with valid version but missing overwintered flag @@ -1531,11 +1520,20 @@ bool CheckTransactionWithoutProofVerification(uint32_t tiptime,const CTransactio { char destaddr[65]; Getscriptaddress(destaddr,txout.scriptPubKey); + if ( hush_isnotaryvout(destaddr,tiptime) == 0 ) { - invalid_private_taddr = 1; - fprintf(stderr,"%s: invalid taddr %s on private chain!\n", __func__, destaddr); - //return state.DoS(100, error("CheckTransaction(): this is a private chain, no public allowed"),REJECT_INVALID, "bad-txns-acprivacy-chain"); + const bool isburn = (strcmp(destaddr,BURN_ADDRESS) == 0); + if ((ASSETCHAINS_BURN == 1) && isburn && tx.vin.empty()) { + // -ac_burn=1 means only zaddrs can send to the burn address + fprintf(stderr,"%s: allowing zaddr to send to burn address %s on private chain because ac_burn=1\n", __func__, destaddr); + } else if ((ASSETCHAINS_BURN == 2) && isburn) { + // -ac_burn=2 allows notary taddrs to send directly to the burn address + fprintf(stderr,"%s: allowing burn address %s on private chain because ac_burn=2\n", __func__, destaddr); + } else { + invalid_private_taddr = 1; + fprintf(stderr,"%s: invalid taddr %s on private chain!\n", __func__, destaddr); + } } } } @@ -1899,13 +1897,11 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa // Keep track of transactions that spend a coinbase, which we re-scan // during reorgs to ensure COINBASE_MATURITY is still met. bool fSpendsCoinbase = false; - if (!tx.IsCoinImport()) { // && !tx.IsPegsImport()) { - BOOST_FOREACH(const CTxIn &txin, tx.vin) { - const CCoins *coins = view.AccessCoins(txin.prevout.hash); - if (coins->IsCoinBase()) { - fSpendsCoinbase = true; - break; - } + BOOST_FOREACH(const CTxIn &txin, tx.vin) { + const CCoins *coins = view.AccessCoins(txin.prevout.hash); + if (coins->IsCoinBase()) { + fSpendsCoinbase = true; + break; } } // Grab the branch ID we expect this transaction to commit to. We don't @@ -1937,7 +1933,7 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa // Continuously rate-limit free (really, very-low-fee) transactions // This mitigates 'penny-flooding' -- sending thousands of free transactions just to // be annoying or make others' transactions take longer to confirm. - if (fLimitFree && nFees < ::minRelayTxFee.GetFee(nSize) && !tx.IsCoinImport() ) + if (fLimitFree && nFees < ::minRelayTxFee.GetFee(nSize) ) { static CCriticalSection csFreeLimiter; static double dFreeCount; @@ -1960,6 +1956,9 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa dFreeCount += nSize; } + fRejectAbsurdFee = false; + + if ( fRejectAbsurdFee && nFees > ::minRelayTxFee.GetFee(nSize) * 10000 && nFees > nValueOut/19) // Disable checks for absurd fees when adding to the mempool. Instead, this check is done // when a user attempts to make a transaction with an absurd fee and only rejects absurd // fees when OP_RETURN data is NOT being used. This means users making normal financial @@ -1968,9 +1967,6 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa // It would be nice to detect the use of OP_RETURN right here but it seems to only be known // inside of IsStandard() inside of IsStandardTx() and we want to avoid doing expensive checks // multiple times. - fRejectAbsurdFee = false; - - if (fRejectAbsurdFee && !tx.IsCoinImport() && nFees > ::minRelayTxFee.GetFee(nSize) * 10000 && nFees > nValueOut/19) { string errmsg = strprintf("absurdly high fees %s, %d > %d", hash.ToString(), @@ -2018,17 +2014,15 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa LOCK(pool.cs); // Store transaction in memory pool.addUnchecked(hash, entry, !IsInitialBlockDownload()); - if (!tx.IsCoinImport()) - { - // Add memory address index - if (fAddressIndex) { - pool.addAddressIndex(entry, view); - } - // Add memory spent index - if (fSpentIndex) { - pool.addSpentIndex(entry, view); - } + // Add memory address index + if (fAddressIndex) { + pool.addAddressIndex(entry, view); + } + + // Add memory spent index + if (fSpentIndex) { + pool.addSpentIndex(entry, view); } } } @@ -2684,6 +2678,31 @@ namespace Consensus { if (!MoneyRange(nFees)) return state.DoS(100, error("CheckInputs(): nFees out of range"), REJECT_INVALID, "bad-txns-fee-outofrange"); + + //NOTE: Since we have access to fee here, verify that opreturn pays + //required minimum fee, even though this is a check on outputs not + //inputs. If we don't do it here we would need to duplicate already + //done work somewhere else + + if ( ASSETCHAINS_MINOPRETURNFEE > 0 ) { + BOOST_FOREACH(const CTxOut& txout, tx.vout) { + const bool isopret = txout.scriptPubKey.IsOpReturn(); + + // HUSH+DRGX do not use -ac_minopreturnfee so this does not (yet) + // affect those chains, they will need a height activated consensus + // change + + if ( isopret ) { + // Is there any difference between nTxFee and nFees ? + // They seem to be 2 vars with the same value + fprintf(stderr,"%s: opreturn=1 nFees=%ld nTxFee=%ld\n", __func__, nFees, nTxFee); + if (nTxFee < ASSETCHAINS_MINOPRETURNFEE) { + return state.DoS(100,error("CheckInputs(): tx does not have required mininum fee for OP_RETURN"), REJECT_INVALID, "bad-txns-minopreturnfee"); + } + } + } + } + return true; } }// namespace Consensus @@ -2909,10 +2928,6 @@ int8_t GetAddressType(const CScript &scriptPubKey, CTxDestination &vDest, txnout { keyType = 2; } - else if (txType == TX_CRYPTOCONDITION ) - { - keyType = 3; - } } return keyType; } diff --git a/src/miner.cpp b/src/miner.cpp index bb7582d7b..fce0179bb 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -118,6 +118,7 @@ public: extern int8_t ASSETCHAINS_ADAPTIVEPOW; extern uint32_t ASSETCHAINS_RANDOMX; +extern uint32_t ASSETCHAINS_MINOPRETURNFEE; extern bool fRandomXDebug; extern std::string devtax_scriptpub_for_height(uint32_t nHeight); @@ -200,19 +201,20 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32 //fprintf(stderr,"%s: added dummy coinbase\n", __func__); // Largest block you're willing to create: - unsigned int nBlockMaxSize = GetArg("-blockmaxsize", MAX_BLOCK_SIZE(chainActive.LastTip()->GetHeight()+1)); + unsigned int nBlockMaxSize = GetArg("-blockmaxsize", MAX_BLOCK_SIZE(1)); // MAX_BLOCK_SIZE(chainActive.LastTip()->GetHeight()+1)); // Limit to betweeen 1K and MAX_BLOCK_SIZE-1K for sanity: - nBlockMaxSize = std::max((unsigned int)1000, std::min((unsigned int)(MAX_BLOCK_SIZE(chainActive.LastTip()->GetHeight()+1)-1000), nBlockMaxSize)); + nBlockMaxSize = std::max((unsigned int)1000, std::min((unsigned int)(MAX_BLOCK_SIZE(1)-1000), nBlockMaxSize)); + //nBlockMaxSize = std::max((unsigned int)1000, std::min((unsigned int)(MAX_BLOCK_SIZE(chainActive.LastTip()->GetHeight()+1)-1000), nBlockMaxSize)); // How much of the block should be dedicated to high-priority transactions, // included regardless of the fees they pay - unsigned int nBlockPrioritySize = GetArg("-blockprioritysize", DEFAULT_BLOCK_PRIORITY_SIZE); - nBlockPrioritySize = std::min(nBlockMaxSize, nBlockPrioritySize); + const unsigned int nBlockPrioritySize = std::min( nBlockMaxSize, (unsigned int) GetArg("-blockprioritysize", DEFAULT_BLOCK_PRIORITY_SIZE) ); + // nBlockPrioritySize = std::min(nBlockMaxSize, nBlockPrioritySize); // Minimum block size you want to create; block will be filled with free transactions // until there are no more or the block reaches this size: - unsigned int nBlockMinSize = GetArg("-blockminsize", DEFAULT_BLOCK_MIN_SIZE); - nBlockMinSize = std::min(nBlockMaxSize, nBlockMinSize); + const unsigned int nBlockMinSize = std::min(nBlockMaxSize, (unsigned int) GetArg("-blockminsize", DEFAULT_BLOCK_MIN_SIZE)); + // nBlockMinSize = std::min(nBlockMaxSize, nBlockMinSize); //fprintf(stderr,"%s: nBlockMaxSize=%u, nBlockPrioritySize=%u, nBlockMinSize=%u\n", __func__, nBlockMaxSize, nBlockPrioritySize, nBlockMinSize); @@ -474,38 +476,6 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32 unsigned int nTxSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION); // fprintf(stderr,"%s: nTxSize = %u\n", __func__, nTxSize); - // Opret spam limits - const bool opretminfee = true; - if (opretminfee) - { - CFeeRate opretMinFeeRate = CFeeRate(10000000); // default opretMinFeeRate 0.1 HUSH - - bool fSpamTx = false; - unsigned int nTxSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION); - unsigned int nTxOpretSize = 0; - - // calc total oprets size - BOOST_FOREACH(const CTxOut& txout, tx.vout) { - if (txout.scriptPubKey.IsOpReturn()) { - CScript::const_iterator it = txout.scriptPubKey.begin() + 1; - opcodetype op; - std::vector opretData; - if (txout.scriptPubKey.GetOp(it, op, opretData)) { - //std::cerr << HexStr(opretData.begin(), opretData.end()) << std::endl; - nTxOpretSize += opretData.size(); - } - } - } - - // opreturns of this size or smaller get amnesty and do not have to pay increased fees - int amnestySize = 128; - if ((nTxOpretSize > amnestySize) && (feeRate < opretMinFeeRate)) { - fSpamTx = true; - std::cerr << __func__ << ": " << tx.GetHash().ToString() << " nTxSize=" << nTxSize << " nTxOpretSize=" << nTxOpretSize << " feeRate=" << feeRate.ToString() << " opretMinFeeRate=" << opretMinFeeRate.ToString() << " fSpamTx=" << fSpamTx << std::endl; - continue; - } - // std::cerr << tx.GetHash().ToString() << " vecPriority.size() = " << vecPriority.size() << std::endl; - } if (nBlockSize + nTxSize >= nBlockMaxSize-512) // room for extra autotx { @@ -549,6 +519,40 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32 } CAmount nTxFees = view.GetValueIn(chainActive.LastTip()->GetHeight(),&interest,tx,chainActive.LastTip()->nTime)-tx.GetValueOut(); + // Opret spam limits + CAmount opretMinFee = 1 * COIN; + + // Set with -ac_minopreturnfee + if (ASSETCHAINS_MINOPRETURNFEE > 0) { + opretMinFee = ASSETCHAINS_MINOPRETURNFEE; + } + + { + bool fSpamTx = false; + unsigned int nTxSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION); + unsigned int nTxOpretSize = 0; + + // calc total oprets size + BOOST_FOREACH(const CTxOut& txout, tx.vout) { + if (txout.scriptPubKey.IsOpReturn()) { + CScript::const_iterator it = txout.scriptPubKey.begin() + 1; + opcodetype op; + std::vector opretData; + if (txout.scriptPubKey.GetOp(it, op, opretData)) { + //std::cerr << HexStr(opretData.begin(), opretData.end()) << std::endl; + nTxOpretSize += opretData.size(); + } + } + } + + if (nTxOpretSize > 0 && nTxFees < opretMinFee) { + fSpamTx = true; + std::cerr << __func__ << ": " << tx.GetHash().ToString() << " nTxSize=" << nTxSize << " nTxOpretSize=" << nTxOpretSize << " feeRate=" << feeRate.ToString() << " opretMinFee=" << opretMinFee << " nTxFees=" << nTxFees <<" fSpamTx=" << fSpamTx << std::endl; + continue; + } + // std::cerr << tx.GetHash().ToString() << " vecPriority.size() = " << vecPriority.size() << std::endl; + } + nTxSigOps += GetP2SHSigOpCount(tx, view); if (nBlockSigOps + nTxSigOps >= MAX_BLOCK_SIGOPS-1) { @@ -735,7 +739,7 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32 pblock->hashFinalSaplingRoot = sapling_tree.root(); // all PoS chains need this data in the block at all times - if ( ASSETCHAINS_LWMAPOS || ASSETCHAINS_STAKED == 0 || HUSH_MININGTHREADS > 0 ) + if ( ASSETCHAINS_LWMAPOS || HUSH_MININGTHREADS > 0 ) { UpdateTime(pblock, Params().GetConsensus(), pindexPrev); pblock->nBits = GetNextWorkRequired(pindexPrev, pblock, Params().GetConsensus()); @@ -743,7 +747,7 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32 pblock->nSolution.clear(); pblocktemplate->vTxSigOps[0] = GetLegacySigOpCount(pblock->vtx[0]); - if ( ASSETCHAINS_CC == 0 && pindexPrev != 0 && ASSETCHAINS_STAKED == 0 && (IS_HUSH_NOTARY == 0 || My_notaryid < 0) ) + if ( ASSETCHAINS_CC == 0 && pindexPrev != 0 && (IS_HUSH_NOTARY == 0 || My_notaryid < 0) ) { CValidationState state; //fprintf(stderr,"%s: check validity\n", __func__); @@ -761,11 +765,10 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32 //fprintf(stderr,"valid\n"); } } - if ( !isStake ) - { - LEAVE_CRITICAL_SECTION(cs_main); - LEAVE_CRITICAL_SECTION(mempool.cs); - } + + LEAVE_CRITICAL_SECTION(cs_main); + LEAVE_CRITICAL_SECTION(mempool.cs); + // fprintf(stderr,"%s: done\n", __func__); return pblocktemplate.release(); } @@ -785,7 +788,7 @@ void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& hashPrevBlock = pblock->hashPrevBlock; } ++nExtraNonce; - unsigned int nHeight = pindexPrev->GetHeight()+1; // Height first in coinbase required for block.version=2 + const unsigned int nHeight = pindexPrev->GetHeight()+1; // Height first in coinbase required for block.version=2 CMutableTransaction txCoinbase(pblock->vtx[0]); txCoinbase.vin[0].scriptSig = (CScript() << nHeight << CScriptNum(nExtraNonce)) + COINBASE_FLAGS; assert(txCoinbase.vin[0].scriptSig.size() <= 100); @@ -1083,9 +1086,9 @@ void static RandomXMiner() // With the defaults of 1024 and 64 // the key block will change every ~21.3 hours with a 75s block time - // and every ~17 hours with the default 60s block time for HSCs + // and every ~17 hours with the default 60s block time for HACs static int randomxInterval = GetRandomXInterval(); - // This lag is 80 mins for 75s blocktime and 64 mins for 60s (default) blocktime for HSCs + // This lag is 80 mins for 75s blocktime and 64 mins for 60s (default) blocktime for HACs static int randomxBlockLag = GetRandomXBlockLag(); randomx_vm *myVM = nullptr; @@ -1151,7 +1154,7 @@ void static RandomXMiner() } else { rxdebug("%s: calculating keyHeight with randomxInterval=%d\n", randomxInterval); // At heights between intervals, we use the same block key and wait randomxBlockLag blocks until changing - int keyHeight = ((Mining_height - randomxBlockLag) / randomxInterval) * randomxInterval; + const int keyHeight = ((Mining_height - randomxBlockLag) / randomxInterval) * randomxInterval; uint256 randomxBlockKey = chainActive[keyHeight]->GetBlockHash(); randomx_init_cache(randomxCache, &randomxBlockKey, sizeof randomxBlockKey); @@ -1163,10 +1166,10 @@ void static RandomXMiner() rxdebug("%s: initializing dataset with %d threads\n", initThreadCount); std::vector threads; uint32_t startItem = 0; - auto perThread = datasetItemCount / initThreadCount; - auto remainder = datasetItemCount % initThreadCount; + const auto perThread = datasetItemCount / initThreadCount; + const auto remainder = datasetItemCount % initThreadCount; for (int i = 0; i < initThreadCount; ++i) { - auto count = perThread + (i == initThreadCount - 1 ? remainder : 0); + const auto count = perThread + (i == initThreadCount - 1 ? remainder : 0); threads.push_back(std::thread(&randomx_init_dataset, randomxDataset, randomxCache, startItem, count)); startItem += count; } @@ -1205,7 +1208,7 @@ void static RandomXMiner() return; } static uint32_t counter; - if ( counter++ < 10 && ASSETCHAINS_STAKED == 0 ) + if ( counter++ < 10 ) fprintf(stderr,"RandomXMiner: created illegal blockB, retry with counter=%u\n", counter); sleep(1); continue; @@ -1399,10 +1402,8 @@ void static RandomXMiner() rxdebug("%s: going to destroy rx VM\n"); randomx_destroy_vm(myVM); rxdebug("%s: destroyed VM\n"); - } - } catch (const boost::thread_interrupted&) { miningTimer.stop(); c.disconnect(); diff --git a/src/net.cpp b/src/net.cpp index f6893a54e..4b52c796d 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -50,6 +50,9 @@ extern int32_t HUSH_TESTNODE; // Satoshi originally used 10 seconds(!), did they know something Peter Wuille didn't? #define DUMP_ADDRESSES_INTERVAL 300 +// Run asmap health check every 24hr by default +#define ASMAP_HEALTHCHECK_INTERVAL 24*60*60 + // This is every 2 blocks, on avg, on HUSH3 #define DUMP_ZINDEX_INTERVAL 150 @@ -1648,6 +1651,35 @@ int64_t PoissonNextSend(int64_t now, int average_interval_seconds) return now + (int64_t)(log1p(GetRand(1ULL << 48) * -0.0000000000000035527136788 /* -1/2^48 */) * average_interval_seconds * -1000000.0 + 0.5); } +void ASMapHealthCheck() { + // No health check if clearnet is disabled + if (!GetBoolArg("-clearnet", DEFAULT_CLEARNET)) { + return; + } + + std::set clearnet_asns{}; + int unmapped_count{0}; + LOCK(cs_vNodes); + + for (const auto& pnode : vNodes) { + auto address = pnode->addr; + if(address.IsTor() || address.IsI2P() || address.IsCJDNS()) { + // These networks do not have ASNs, skip them + continue; + } + uint32_t asn = address.GetMappedAS(addrman.m_asmap); + if (asn == 0) { + ++unmapped_count; + continue; + } + clearnet_asns.insert(asn); + } + + LogPrintf("ASMap Health Check: %i clearnet peers are mapped to %i ASNs with %i peers being unmapped\n", vNodes.size(), clearnet_asns.size(), unmapped_count); +} + + + void ThreadOpenConnections() { // Connect to specific addresses @@ -1753,7 +1785,7 @@ void ThreadOpenConnections() int64_t nNow = GetTime(); int nTries = 0; - LogPrint("net", "Resolving addrman collisions\n"); + LogPrint("net", "Resolving addrman collisions\n"); addrman.ResolveCollisions(); while (true) { @@ -2378,10 +2410,14 @@ void StartNode(boost::thread_group& threadGroup, CScheduler& scheduler) scheduler.scheduleEvery(&DumpZindexStats, DUMP_ZINDEX_INTERVAL); } - // Dump network addresses - scheduler.scheduleEvery(&DumpAddresses, DUMP_ADDRESSES_INTERVAL); - + // Look for ~/.hush/AC_NAME/plz_stop scheduler.scheduleEvery(&CheckIfWeShouldStop, CHECK_PLZ_STOP_INTERVAL); + + // Schedule ASMap Health check to run regularly + scheduler.scheduleEvery(&ASMapHealthCheck, ASMAP_HEALTHCHECK_INTERVAL); + + // and schedule it to run once in 5 mins when we hopefully have peers connected + scheduler.scheduleFromNow(&ASMapHealthCheck, 300); } bool StopNode() @@ -2470,7 +2506,9 @@ void RelayTransaction(const CTransaction& tx, const CDataStream& ss) // If we have no nodes to relay to, there is nothing to do if(vNodes.size() == 0) { - fprintf(stderr, "%s: No nodes to relay to!\n", __func__ ); + if (HUSH_TESTNODE==0) { + fprintf(stderr, "%s: No nodes to relay to!\n", __func__ ); + } return; } diff --git a/src/net.h b/src/net.h index f7df49aa7..937f07ef1 100644 --- a/src/net.h +++ b/src/net.h @@ -85,6 +85,15 @@ static const unsigned int MAX_PROTOCOL_MESSAGE_LENGTH = (_MAX_BLOCK_SIZE + 24); static const unsigned int MAX_SUBVERSION_LENGTH = 256; /** -listen default */ static const bool DEFAULT_LISTEN = true; + +/** -clearnet default */ +static const bool DEFAULT_CLEARNET = true; + +/** -disableipv4 default */ +static const bool DEFAULT_DISABLE_IPV4 = false; +/** -disableipv6 default */ +static const bool DEFAULT_DISABLE_IPV6 = false; + /** The maximum number of entries in mapAskFor */ static const size_t MAPASKFOR_MAX_SZ = MAX_INV_SZ; /** The maximum number of entries in setAskFor (larger due to getdata latency)*/ diff --git a/src/pow.cpp b/src/pow.cpp index 484b25b95..4aa00b094 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -511,7 +511,7 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead // Changing this requires changing many other things and // might change consensus. Have fun -- Duke -// NOTE: Ony HUSH3 mainnet should use this function, all HSC's should use params.AveragigWindowTimespan() +// NOTE: Ony HUSH3 mainnet should use this function, all HAC's should use params.AveragigWindowTimespan() int64_t AveragingWindowTimespan() { // used in const methods, beware! // This is the correct AWT for 75s blocktime, before block 340k diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index 3741e0d96..a2584ca64 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -693,7 +693,7 @@ public: bool IsMint() const { - return IsCoinImport() || IsCoinBase(); + return IsCoinBase(); // || IsCoinImport(); } bool IsCoinBase() const @@ -705,7 +705,8 @@ public: bool IsCoinImport() const { - return (vin.size() == 1 && vin[0].prevout.n == 10e8); + return false; + //return (vin.size() == 1 && vin[0].prevout.n == 10e8); } bool IsPegsImport() const diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index dbd0da9ed..5737a4e32 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -242,7 +242,7 @@ UniValue blockToDeltasJSON(const CBlock& block, const CBlockIndex* blockindex) vector hashBytes(out.scriptPubKey.begin()+3, out.scriptPubKey.begin()+23); delta.push_back(Pair("address", CBitcoinAddress(CKeyID(uint160(hashBytes))).ToString())); } - else if (out.scriptPubKey.IsPayToPublicKey() || out.scriptPubKey.IsPayToCryptoCondition()) { + else if (out.scriptPubKey.IsPayToPublicKey()) { CTxDestination address; if (ExtractDestination(out.scriptPubKey, address)) { @@ -862,7 +862,7 @@ UniValue getblockmerkletree(const UniValue& params, bool fHelp, const CPubKey& m if (fHelp || params.size() != 1 ) throw runtime_error( "getblockmerkletree height\n" - "\nGet full merkletree for a given Hush or HSC block height.\n" + "\nGet full merkletree for a given Hush or HAC block height.\n" "\nArguments:\n" "1. height (int, required) block height\n" "\nResult:\n" @@ -877,7 +877,7 @@ UniValue getblockmerkletree(const UniValue& params, bool fHelp, const CPubKey& m int nHeight = params[0].get_int(); if ( (nHeight < 1) || (nHeight > chainActive.LastTip()->GetHeight()) ) { - throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid Hush or HSC block height parameter"); + throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid Hush or HAC block height parameter"); } phushblockindex = chainActive[nHeight]; diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index 97ed6348e..c048b305d 100644 --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -489,7 +489,7 @@ UniValue validateaddress(const UniValue& params, bool fHelp, const CPubKey& mypk "\nResult:\n" "{\n" " \"isvalid\" : true|false, (boolean) If the address is valid or not. If not, this is the only property returned.\n" - " \"address\" : \"addr\", (string) The Hush or HSC address validated\n" + " \"address\" : \"addr\", (string) The Hush or HAC address validated\n" " \"scriptPubKey\" : \"hex\", (string) The hex encoded scriptPubKey generated by the address\n" " \"ismine\" : true|false, (boolean) If the address is yours or not\n" " \"isscript\" : true|false, (boolean) If the key is a script\n" diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 4de29bd4c..4c9de7c95 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -146,31 +146,7 @@ void TxToJSONExpanded(const CTransaction& tx, const uint256 hashBlock, UniValue& UniValue in(UniValue::VOBJ); if (tx.IsCoinBase()) { in.push_back(Pair("coinbase", HexStr(txin.scriptSig.begin(), txin.scriptSig.end()))); - } - /* else if (tx.IsCoinImport() && txin.prevout.n==10e8) { - in.push_back(Pair("is_import", "1")); - ImportProof proof; CTransaction burnTx; std::vector payouts; CTxDestination importaddress; - if (UnmarshalImportTx(tx, proof, burnTx, payouts)) - { - if (burnTx.vout.size() == 0) - continue; - in.push_back(Pair("txid", burnTx.GetHash().ToString())); - in.push_back(Pair("value", ValueFromAmount(burnTx.vout.back().nValue))); - in.push_back(Pair("valueSat", burnTx.vout.back().nValue)); - // extract op_return to get burn source chain. - std::vector burnOpret; std::string targetSymbol; uint32_t targetCCid; uint256 payoutsHash; std::vectorrawproof; - if (UnmarshalBurnTx(burnTx, targetSymbol, &targetCCid, payoutsHash, rawproof)) - { - if (rawproof.size() > 0) - { - std::string sourceSymbol; - E_UNMARSHAL(rawproof, ss >> sourceSymbol); - in.push_back(Pair("address", "IMP-" + sourceSymbol + "-" + burnTx.GetHash().ToString())); - } - } - } - } */ - else { + } else { in.push_back(Pair("txid", txin.prevout.hash.GetHex())); in.push_back(Pair("vout", (int64_t)txin.prevout.n)); { diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index a8d5fa6ce..68930a5b5 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -957,37 +957,6 @@ bool EvalScript( } break; - /* - case OP_CHECKCRYPTOCONDITION: - case OP_CHECKCRYPTOCONDITIONVERIFY: - { - if (!IsCryptoConditionsEnabled()) { - goto INTERPRETER_DEFAULT; - } - - if (stack.size() < 2) - return set_error(serror, SCRIPT_ERR_INVALID_STACK_OPERATION); - //fprintf(stderr,"check cryptocondition\n"); - int fResult = checker.CheckCryptoCondition(stacktop(-1), stacktop(-2), script, consensusBranchId); - if (fResult == -1) { - return set_error(serror, SCRIPT_ERR_CRYPTOCONDITION_INVALID_FULFILLMENT); - } - - popstack(stack); - popstack(stack); - - stack.push_back(fResult == 1 ? vchTrue : vchFalse); - - if (opcode == OP_CHECKCRYPTOCONDITIONVERIFY) - { - if (fResult == 1) - popstack(stack); - else - return set_error(serror, SCRIPT_ERR_CRYPTOCONDITION_VERIFY); - } - } - break; - */ INTERPRETER_DEFAULT: default: @@ -1356,15 +1325,6 @@ bool TransactionSignatureChecker::CheckSig( } -int TransactionSignatureChecker::CheckCryptoCondition( - const std::vector& condBin, - const std::vector& ffillBin, - const CScript& scriptCode, - uint32_t consensusBranchId) const -{ - return 0; -} - bool TransactionSignatureChecker::CheckLockTime(const CScriptNum& nLockTime) const { // There are two times of nLockTime: lock-by-blockheight @@ -1407,38 +1367,6 @@ bool TransactionSignatureChecker::CheckLockTime(const CScriptNum& nLockTime) con return true; } - -/* - * Allow larger opcode in case of crypto condition scriptSig - */ -bool EvalCryptoConditionSig( - vector >& stack, - const CScript& scriptSig, - ScriptError* serror) -{ - CScript::const_iterator pc = scriptSig.begin(); - opcodetype opcode; - valtype vchPushValue; - set_error(serror, SCRIPT_ERR_UNKNOWN_ERROR); - - if (!scriptSig.GetOp(pc, opcode, vchPushValue)) - return set_error(serror, SCRIPT_ERR_BAD_OPCODE); - - if (opcode == 0 || opcode > OP_PUSHDATA4) - return set_error(serror, SCRIPT_ERR_INVALID_STACK_OPERATION); - - if (pc != scriptSig.end()) - return set_error(serror, SCRIPT_ERR_INVALID_STACK_OPERATION); - - if (vchPushValue.size() > MAX_SCRIPT_CRYPTOCONDITION_FULFILLMENT_SIZE) - return set_error(serror, SCRIPT_ERR_PUSH_SIZE); - - stack.push_back(vchPushValue); - - return true; -} - - bool VerifyScript( const CScript& scriptSig, const CScript& scriptPubKey, @@ -1454,12 +1382,7 @@ bool VerifyScript( } vector > stack, stackCopy; - if (IsCryptoConditionsEnabled() && scriptPubKey.IsPayToCryptoCondition()) { - if (!EvalCryptoConditionSig(stack, scriptSig, serror)) - // serror is set - return false; - } - else if (!EvalScript(stack, scriptSig, flags, checker, consensusBranchId, serror)) + if (!EvalScript(stack, scriptSig, flags, checker, consensusBranchId, serror)) // serror is set return false; if (flags & SCRIPT_VERIFY_P2SH) diff --git a/src/script/interpreter.h b/src/script/interpreter.h index a1be175ac..2c110a57e 100644 --- a/src/script/interpreter.h +++ b/src/script/interpreter.h @@ -147,15 +147,6 @@ public: return false; } - virtual int CheckCryptoCondition( - const std::vector& condBin, - const std::vector& ffillBin, - const CScript& scriptCode, - uint32_t consensusBranchId) const - { - return false; - } - virtual ~BaseSignatureChecker() {} }; @@ -174,11 +165,6 @@ public: TransactionSignatureChecker(const CTransaction* txToIn, unsigned int nInIn, const CAmount& amountIn, const PrecomputedTransactionData& txdataIn) : txTo(txToIn), nIn(nInIn), amount(amountIn), txdata(&txdataIn) {} bool CheckSig(const std::vector& scriptSig, const std::vector& vchPubKey, const CScript& scriptCode, uint32_t consensusBranchId) const; bool CheckLockTime(const CScriptNum& nLockTime) const; - int CheckCryptoCondition( - const std::vector& condBin, - const std::vector& ffillBin, - const CScript& scriptCode, - uint32_t consensusBranchId) const; }; class MutableTransactionSignatureChecker : public TransactionSignatureChecker diff --git a/src/script/script.cpp b/src/script/script.cpp index afae6f1d6..09b876ed9 100644 --- a/src/script/script.cpp +++ b/src/script/script.cpp @@ -156,9 +156,6 @@ const char* GetOpName(opcodetype opcode) case OP_CHECKSIGVERIFY : return "OP_CHECKSIGVERIFY"; case OP_CHECKMULTISIG : return "OP_CHECKMULTISIG"; case OP_CHECKMULTISIGVERIFY : return "OP_CHECKMULTISIGVERIFY"; - case OP_CHECKCRYPTOCONDITION : return "OP_CHECKCRYPTOCONDITION"; - case OP_CHECKCRYPTOCONDITIONVERIFY - : return "OP_CHECKCRYPTOCONDITIONVERIFY"; // expansion case OP_NOP1 : return "OP_NOP1"; @@ -382,12 +379,6 @@ bool CScript::MayAcceptCryptoCondition() const bool CScript::IsCoinImport() const { - const_iterator pc = this->begin(); - vector data; - opcodetype opcode; - if (this->GetOp(pc, opcode, data)) - if (opcode > OP_0 && opcode <= OP_PUSHDATA4) - return data.begin()[0] == EVAL_IMPORTCOIN; return false; } diff --git a/src/script/script.h b/src/script/script.h index cc35f0364..b3d1d203f 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -40,9 +40,6 @@ static const unsigned int MAX_SCRIPT_ELEMENT_SIZE = 520; // bytes -// Max size of pushdata in a CC sig in bytes -static const unsigned int MAX_SCRIPT_CRYPTOCONDITION_FULFILLMENT_SIZE = 2048; - // Maximum script length in bytes static const int MAX_SCRIPT_SIZE = 10000; @@ -178,8 +175,6 @@ enum opcodetype OP_CHECKSIGVERIFY = 0xad, OP_CHECKMULTISIG = 0xae, OP_CHECKMULTISIGVERIFY = 0xaf, - OP_CHECKCRYPTOCONDITION = 0xcc, - OP_CHECKCRYPTOCONDITIONVERIFY = 0xcd, // expansion OP_NOP1 = 0xb0, @@ -200,7 +195,6 @@ enum opcodetype OP_PUBKEYS = 0xfb, OP_PUBKEYHASH = 0xfd, OP_PUBKEY = 0xfe, - OP_CRYPTOCONDITION = 0xfc, OP_INVALIDOPCODE = 0xff, }; diff --git a/src/script/script_error.cpp b/src/script/script_error.cpp index cd1989e44..5529362d6 100644 --- a/src/script/script_error.cpp +++ b/src/script/script_error.cpp @@ -83,8 +83,6 @@ const char* ScriptErrorString(const ScriptError serror) return "NOPx reserved for soft-fork upgrades"; case SCRIPT_ERR_PUBKEYTYPE: return "Public key is neither compressed or uncompressed"; - case SCRIPT_ERR_CRYPTOCONDITION_INVALID_FULFILLMENT: - return "Crypto-Condition payload is invalid"; case SCRIPT_ERR_UNKNOWN_ERROR: case SCRIPT_ERR_ERROR_COUNT: default: break; diff --git a/src/script/script_error.h b/src/script/script_error.h index d34e715a6..278852f6e 100644 --- a/src/script/script_error.h +++ b/src/script/script_error.h @@ -70,9 +70,6 @@ typedef enum ScriptError_t SCRIPT_ERR_ERROR_COUNT, - /* crypto-condition script errors */ - SCRIPT_ERR_CRYPTOCONDITION_VERIFY, - SCRIPT_ERR_CRYPTOCONDITION_INVALID_FULFILLMENT } ScriptError; #define SCRIPT_ERR_LAST SCRIPT_ERR_ERROR_COUNT diff --git a/src/script/sign.cpp b/src/script/sign.cpp index 245806733..afc778d4b 100644 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -128,29 +128,6 @@ static bool SignN(const vector& multisigdata, const BaseSignatureCreato return nSigned==nRequired; } -std::vector &GetCryptoConditions() -{ - static bool initialized = false; - static std::vector vCC = std::vector(); - CCcontract_info C; - - if (!initialized) - { - // this should initialize any desired auto-signed crypto-conditions - } - return vCC; -} - -bool GetCCByUnspendableAddress(struct CCcontract_info *cp, char *addrstr) -{ - return false; -} - -bool CCinitLite(struct CCcontract_info *cp, uint8_t evalcode) -{ - return false; -} - bool _Getscriptaddress(char *destaddr, const CScript &scriptPubKey) { CTxDestination address; @@ -239,9 +216,6 @@ static bool SignStep(const BaseSignatureCreator& creator, const CScript& scriptP } return false; - case TX_CRYPTOCONDITION: - return SignStepCC(creator, scriptPubKey, vSolutions, ret, consensusBranchId); - case TX_MULTISIG: ret.push_back(valtype()); // workaround CHECKMULTISIG bug return (SignN(vSolutions, creator, scriptPubKey, ret, consensusBranchId)); @@ -429,11 +403,6 @@ static Stacks CombineSignatures(const CScript& scriptPubKey, const BaseSignature return sigs2; case TX_PUBKEY: case TX_PUBKEYHASH: - case TX_CRYPTOCONDITION: - // Signatures are bigger than placeholders or empty scripts: - if (sigs1.script.empty() || sigs1.script[0].empty()) - return sigs2; - return sigs1; case TX_SCRIPTHASH: if (sigs1.script.empty() || sigs1.script.back().empty()) return sigs2; diff --git a/src/script/standard.cpp b/src/script/standard.cpp index 1ace50bc1..637da08ec 100644 --- a/src/script/standard.cpp +++ b/src/script/standard.cpp @@ -143,7 +143,6 @@ const char* GetTxnOutputType(txnouttype t) case TX_SCRIPTHASH: return "scripthash"; case TX_MULTISIG: return "multisig"; case TX_NULL_DATA: return "nulldata"; - case TX_CRYPTOCONDITION: return "cryptocondition"; default: return "invalid"; } return NULL; @@ -183,40 +182,6 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, vector> vParams; - if (scriptPubKey.IsPayToCryptoCondition(&ccSubScript, vParams)) - { - if (scriptPubKey.MayAcceptCryptoCondition()) - { - typeRet = TX_CRYPTOCONDITION; - vector hashBytes; uint160 x; int32_t i; uint8_t hash20[20],*ptr;; - x = Hash160(ccSubScript); - memcpy(hash20,&x,20); - hashBytes.resize(20); - ptr = hashBytes.data(); - for (i=0; i<20; i++) - ptr[i] = hash20[i]; - vSolutionsRet.push_back(hashBytes); - if (vParams.size()) - { - COptCCParams cp = COptCCParams(vParams[0]); - if (cp.IsValid()) - { - for (auto k : cp.vKeys) - { - vSolutionsRet.push_back(std::vector(k.begin(), k.end())); - } - } - } - return true; - } - return false; - } - } - // Scan templates const CScript& script1 = scriptPubKey; BOOST_FOREACH(const PAIRTYPE(txnouttype, CScript)& tplate, mTemplates) @@ -328,8 +293,6 @@ int ScriptSigArgsExpected(txnouttype t, const std::vector 1) - { - CPubKey pk = CPubKey((vSolutions[1])); - addressRet = pk; - return pk.IsValid(); - } - else - { - addressRet = CKeyID(uint160(vSolutions[0])); - } - return true; - } // Multisig txns have more than one address... return false; } @@ -464,30 +412,7 @@ bool ExtractDestinations(const CScript& scriptPubKey, txnouttype& typeRet, vecto if (addressRet.empty()) return false; - } - // Removed to get CC address printed in getrawtransaction and decoderawtransaction - // else if (IsCryptoConditionsEnabled() != 0 && typeRet == TX_CRYPTOCONDITION) - // { - // nRequiredRet = vSolutions.front()[0]; - // for (unsigned int i = 1; i < vSolutions.size()-1; i++) - // { - // CTxDestination address; - // if (vSolutions[i].size() == 20) - // { - // address = CKeyID(uint160(vSolutions[i])); - // } - // else - // { - // address = CPubKey(vSolutions[i]); - // } - // addressRet.push_back(address); - // } - - // if (addressRet.empty()) - // return false; - // } - else - { + } else { nRequiredRet = 1; CTxDestination address; if (!ExtractDestination(scriptPubKey, address)) diff --git a/src/script/standard.h b/src/script/standard.h index fa30be959..3da0d51c8 100644 --- a/src/script/standard.h +++ b/src/script/standard.h @@ -75,7 +75,6 @@ enum txnouttype TX_PUBKEYHASH, TX_SCRIPTHASH, TX_MULTISIG, - TX_CRYPTOCONDITION, TX_NULL_DATA, }; diff --git a/src/timedata.cpp b/src/timedata.cpp index cfffcf667..0ffb66e0a 100644 --- a/src/timedata.cpp +++ b/src/timedata.cpp @@ -71,11 +71,11 @@ void CTimeWarning::Warn(size_t peersAhead, size_t peersBehind) { std::string strMessage; if (peersBehind >= TIMEDATA_WARNING_MAJORITY) { - strMessage = _("Warning: Your computer's date and time may be ahead of the rest of the network! If your clock is wrong Hush will not work properly."); + strMessage = _("Warning: Your computer's date and time may be ahead of the rest of the network! If your clock is wrong this node will not work properly."); } else if (peersAhead >= TIMEDATA_WARNING_MAJORITY) { - strMessage = _("Warning: Your computer's date and time may be behind the rest of the network! If your clock is wrong Hush will not work properly."); + strMessage = _("Warning: Your computer's date and time may be behind the rest of the network! If your clock is wrong this node will not work properly."); } else { - strMessage = _("Warning: Please check that your computer's date and time are correct! If your clock is wrong Hush will not work properly."); + strMessage = _("Warning: Please check that your computer's date and time are correct! If your clock is wrong this node will not work properly."); } LogPrintf("*** %s\n", strMessage); uiInterface.ThreadSafeMessageBox(strMessage, "", CClientUIInterface::MSG_WARNING); diff --git a/src/txdb.cpp b/src/txdb.cpp index 286919bb7..6a6f7c086 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -456,7 +456,7 @@ uint32_t hush_segid32(char *coinaddr); bool CBlockTreeDB::Snapshot2(std::map &addressAmounts, UniValue *ret) { int64_t total = 0; int64_t totalAddresses = 0; std::string address; - int64_t utxos = 0; int64_t ignoredAddresses = 0, cryptoConditionsUTXOs = 0, cryptoConditionsTotals = 0; + int64_t utxos = 0; int64_t ignoredAddresses = 0; DECLARE_IGNORELIST boost::scoped_ptr iter(NewIterator()); //std::map addressAmounts; @@ -479,13 +479,7 @@ bool CBlockTreeDB::Snapshot2(std::map &addressAmounts, Un if ( nValue == 0 ) continue; getAddressFromIndex(indexKey.type, indexKey.hashBytes, address); - if ( indexKey.type == 3 ) - { - cryptoConditionsUTXOs++; - cryptoConditionsTotals += nValue; - total += nValue; - continue; - } + std::map ::iterator ignored = ignoredMap.find(address); if (ignored != ignoredMap.end()) { @@ -540,12 +534,6 @@ bool CBlockTreeDB::Snapshot2(std::map &addressAmounts, Un ret->push_back(make_pair("total_addresses", totalAddresses )); // Total number of ignored addresses in this snaphot ret->push_back(make_pair("ignored_addresses", ignoredAddresses)); - // Total number of crypto condition utxos we skipped - ret->push_back(make_pair("skipped_cc_utxos", cryptoConditionsUTXOs)); - // Total value of skipped crypto condition utxos - ret->push_back(make_pair("cc_utxo_value", (double) cryptoConditionsTotals / COIN)); - // total of all the address's, does not count coins in CC vouts. - ret->push_back(make_pair("total_includeCCvouts", (double) (total+cryptoConditionsTotals)/ COIN )); // The snapshot finished at this block height ret->push_back(make_pair("ending_height", chainActive.Height())); } diff --git a/src/txmempool.cpp b/src/txmempool.cpp index da4e0bd59..fb473158c 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -120,13 +120,12 @@ bool CTxMemPool::addUnchecked(const uint256& hash, const CTxMemPoolEntry &entry, const CTransaction& tx = mapTx.find(hash)->GetTx(); mapRecentlyAddedTx[tx.GetHash()] = &tx; nRecentlyAddedSequence += 1; - if (!tx.IsCoinImport()) { - for (unsigned int i = 0; i < tx.vin.size(); i++) - { - //if (tx.IsPegsImport() && i==0) continue; - mapNextTx[tx.vin[i].prevout] = CInPoint(&tx, i); - } + + for (unsigned int i = 0; i < tx.vin.size(); i++) + { + mapNextTx[tx.vin[i].prevout] = CInPoint(&tx, i); } + for (const SpendDescription &spendDescription : tx.vShieldedSpend) { mapSaplingNullifiers[spendDescription.nullifier] = &tx; } @@ -157,14 +156,6 @@ void CTxMemPool::addAddressIndex(const CTxMemPoolEntry &entry, const CCoinsViewC CTxDestination vDest; if (Solver(prevout.scriptPubKey, txType, vSols) || ExtractDestination(prevout.scriptPubKey, vDest)) { - if (vDest.which()) - { - uint160 hashBytes; - if (CBitcoinAddress(vDest).GetIndexKey(hashBytes, keyType, prevout.scriptPubKey.IsPayToCryptoCondition())) - { - vSols.push_back(vector(hashBytes.begin(), hashBytes.end())); - } - } if (txType == TX_SCRIPTHASH) { keyType = 2; @@ -191,11 +182,6 @@ void CTxMemPool::addAddressIndex(const CTxMemPoolEntry &entry, const CCoinsViewC // if we failed to solve, and got a vDest, assume P2PKH or P2PK address returned if (vDest.which()) { - uint160 hashBytes; - if (CBitcoinAddress(vDest).GetIndexKey(hashBytes, keyType, out.scriptPubKey.IsPayToCryptoCondition())) - { - vSols.push_back(vector(hashBytes.begin(), hashBytes.end())); - } } else if (txType == TX_SCRIPTHASH) { diff --git a/src/util.cpp b/src/util.cpp index 20bf79858..45f105a89 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1,6 +1,6 @@ // Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin Core developers -// Copyright (c) 2016-2024 The Hush developers +// Copyright (c) 2016-2025 The Hush developers // Distributed under the GPLv3 software license, see the accompanying // file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html @@ -438,6 +438,7 @@ bool SoftSetArg(const std::string& strArg, const std::string& strValue) if (mapArgs.count(strArg)) return false; mapArgs[strArg] = strValue; + mapMultiArgs[strArg].push_back(strValue); return true; } diff --git a/src/version.h b/src/version.h index 641bc489b..27553d45d 100644 --- a/src/version.h +++ b/src/version.h @@ -1,5 +1,5 @@ // Copyright (c) 2012-2014 The Bitcoin Core developers -// Copyright (c) 2016-2024 The Hush developers +// Copyright (c) 2016-2025 The Hush developers // Distributed under the GPLv3 software license, see the accompanying // file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html /****************************************************************************** @@ -21,7 +21,7 @@ #define HUSH_VERSION_H // network protocol versioning -static const int PROTOCOL_VERSION = 1987427; +static const int PROTOCOL_VERSION = 1987428; //! initial proto version, to be increased after version/verack negotiation static const int INIT_PROTO_VERSION = 209; //! In this version, 'getheaders' was introduced. diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 1b6110ec5..5f26a4034 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -5003,9 +5003,9 @@ UniValue z_sendmany(const UniValue& params, bool fHelp, const CPubKey& mypk) if (!EnsureWalletIsAvailable(fHelp)) return NullUniValue; - if (fHelp || params.size() < 2 || params.size() > 4) + if (fHelp || params.size() < 2 || params.size() > 5) throw runtime_error( - "z_sendmany \"fromaddress\" [{\"address\":... ,\"amount\":...},...] ( minconf ) ( fee )\n" + "z_sendmany \"fromaddress\" [{\"address\":... ,\"amount\":...},...] ( minconf ) ( fee ) (opreturn)\n" "\nSend multiple times. Amounts are decimal numbers with at most 8 digits of precision." "\nChange generated from a taddr flows to a new taddr address, while change generated from a zaddr returns to itself." "\nWhen sending coinbase UTXOs to a zaddr, change is not allowed. The entire value of the UTXO(s) must be consumed." @@ -5021,6 +5021,7 @@ UniValue z_sendmany(const UniValue& params, bool fHelp, const CPubKey& mypk) "3. minconf (numeric, optional, default=1) Only use funds confirmed at least this many times.\n" "4. fee (numeric, optional, default=" + strprintf("%s", FormatMoney(ASYNC_RPC_OPERATION_DEFAULT_MINERS_FEE)) + ") The fee amount to attach to this transaction.\n" + "5. opreturn (string, optional) Hex encoded data for OP_RETURN. Or a utf8 string prefixed with 'utf8:' which will be automatically converted to hex\n" "\nResult:\n" "\"operationid\" (string) An operationid to pass to z_getoperationstatus to get the result of the operation.\n" "\nExamples:\n" @@ -5028,6 +5029,8 @@ UniValue z_sendmany(const UniValue& params, bool fHelp, const CPubKey& mypk) + HelpExampleRpc("z_sendmany", "\"RD6GgnrMpPaTSMn8vai6yiGA7mN4QGPV\", [{\"address\": \"zs14d8tc0hl9q0vg5l28uec5vk6sk34fkj2n8s7jalvw5fxpy6v39yn4s2ga082lymrkjk0x2nqg37\" ,\"amount\": 5.0}]") + HelpExampleCli("z_sendmany", "\"zs14d8tc0hl9q0vg5l28uec5vk6sk34fkj2n8s7jalvw5fxpy6v39yn4s2ga082lymrkjk0x2nqg37\" '[{\"address\": \"zs14d8tc0hl9q0vg5l28uec5vk6sk34fkj2n8s7jalvw5fxpy6v39yn4s2ga082lymrkjk0x2nqg37\" ,\"amount\": 3.14}]'") + HelpExampleRpc("z_sendmany", "\"zs14d8tc0hl9q0vg5l28uec5vk6sk34fkj2n8s7jalvw5fxpy6v39yn4s2ga082lymrkjk0x2nqg37\", [{\"address\": \"zs14d8tc0hl9q0vg5l28uec5vk6sk34fkj2n8s7jalvw5fxpy6v39yn4s2ga082lymrkjk0x2nqg37\" ,\"amount\": 3.14}]") + + HelpExampleCli("z_sendmany", "\"zs14d8tc0hl9q0vg5l28uec5vk6sk34fkj2n8s7jalvw5fxpy6v39yn4s2ga082lymrkjk0x2nqg37\" '[{\"address\": \"zs14d8tc0hl9q0vg5l28uec5vk6sk34fkj2n8s7jalvw5fxpy6v39yn4s2ga082lymrkjk0x2nqg37\" ,\"amount\": 3.14}]' 1 0.0001 \"utf8: this will be converted to hex") + + HelpExampleRpc("z_sendmany", "\"zs14d8tc0hl9q0vg5l28uec5vk6sk34fkj2n8s7jalvw5fxpy6v39yn4s2ga082lymrkjk0x2nqg37\" '[{\"address\": \"zs14d8tc0hl9q0vg5l28uec5vk6sk34fkj2n8s7jalvw5fxpy6v39yn4s2ga082lymrkjk0x2nqg37\" ,\"amount\": 3.14}]' 1 0.0001 \"utf8: this will be converted to hex") ); LOCK2(cs_main, pwalletMain->cs_wallet); @@ -5146,20 +5149,34 @@ UniValue z_sendmany(const UniValue& params, bool fHelp, const CPubKey& mypk) } } - // Keep track of addresses to spot duplicates - set setAddress; - // Recipients std::vector taddrRecipients; std::vector zaddrRecipients; CAmount nTotalOut = 0; // Optional OP_RETURN data CScript opret; - // TODO: enforce that only a single opreturn exists UniValue opretValue; + if(params.size() == 5) { + opretValue = params[4].get_str(); + + // Support a prefix "utf8:" which allows giving utf8 text instead of hex + if(opretValue.get_str().substr(0,5) == "utf8:") { + auto str = opretValue.get_str().substr(5); + if (utf8::is_valid(str)) { + opretValue = HexStr(str); + } else { + throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid utf8 in opreturn"); + } + } + } bool containsSaplingOutput = false; + // Create the CScript representation of the OP_RETURN + if (!opretValue.isNull()) { + opret << OP_RETURN << ParseHex(opretValue.get_str().c_str()); + } + for (const UniValue& o : outputs.getValues()) { if (!o.isObject()) throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, expected object"); @@ -5167,7 +5184,7 @@ UniValue z_sendmany(const UniValue& params, bool fHelp, const CPubKey& mypk) // sanity check, report error if unknown key-value pairs for (const string& name_ : o.getKeys()) { std::string s = name_; - if (s != "address" && s != "amount" && s!="memo" && s!="opreturn") { + if (s != "address" && s != "amount" && s!="memo") { throw JSONRPCError(RPC_INVALID_PARAMETER, string("Invalid parameter, unknown key: ")+s); } } @@ -5186,29 +5203,22 @@ UniValue z_sendmany(const UniValue& params, bool fHelp, const CPubKey& mypk) // throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Extreme Privacy! You must send to a zaddr"); //} - // Allowing duplicate receivers helps various HushList protocol operations - //if (setAddress.count(address)) - // throw JSONRPCError(RPC_INVALID_PARAMETER, string("Invalid parameter, duplicated address: ")+address); - setAddress.insert(address); - - UniValue this_opret = find_value(o, "opreturn"); - if (!this_opret.isNull()) { - opretValue = this_opret; - } - - // Create the CScript representation of the OP_RETURN - if (!opretValue.isNull()) { - opret << OP_RETURN << ParseHex(opretValue.get_str().c_str()); - } - UniValue memoValue = find_value(o, "memo"); string memo; if (!memoValue.isNull()) { memo = memoValue.get_str(); if (!isZaddr) { throw JSONRPCError(RPC_INVALID_PARAMETER, "Memo cannot be used with a taddr. It can only be used with a zaddr."); + } else if(memo.substr(0,5) == "utf8:") { + // Support a prefix "utf8:" which allows giving utf8 text instead of hex + auto str = memo.substr(5); + if (utf8::is_valid(str)) { + memo = HexStr(str); + } else { + throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid utf8 in memo"); + } } else if (!IsHex(memo)) { - throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, expected memo data in hexadecimal format."); + throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, expected memo data in hexadecimal format or to use 'utf8:' prefix."); } if (memo.length() > HUSH_MEMO_SIZE*2) { throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Invalid parameter, size of memo is larger than maximum allowed %d", HUSH_MEMO_SIZE )); diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 01af7b78e..1017bb3df 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -507,7 +507,7 @@ void CWallet::ChainTip(const CBlockIndex *pindex, } void CWallet::RunSaplingSweep(int blockHeight) { - // Sapling is always active since height=1 of HUSH+HSCs + // Sapling is always active since height=1 of HUSH+HACs // if (!NetworkUpgradeActive(blockHeight, Params().GetConsensus(), Consensus::UPGRADE_SAPLING)) { // return; // } @@ -551,7 +551,7 @@ void CWallet::RunSaplingSweep(int blockHeight) { } void CWallet::RunSaplingConsolidation(int blockHeight) { - // Sapling is always active on HUSH+HSCs + // Sapling is always active on HUSH+HACs //if (!NetworkUpgradeActive(blockHeight, Params().GetConsensus(), Consensus::UPGRADE_SAPLING)) { // return; //} @@ -1977,17 +1977,6 @@ isminetype CWallet::IsMine(const CTransaction& tx, uint32_t voutNum) case TX_NULL_DATA: break; - case TX_CRYPTOCONDITION: - // for now, default is that the first value returned will be the script, subsequent values will be - // pubkeys. if we have the first pub key in our wallet, we consider this spendable - if (vSolutions.size() > 1) - { - keyID = CPubKey(vSolutions[1]).GetID(); - if (this->HaveKey(keyID)) - return ISMINE_SPENDABLE; - } - break; - case TX_PUBKEY: keyID = CPubKey(vSolutions[0]).GetID(); if (this->HaveKey(keyID)) diff --git a/src/wallet/wallet_ismine.cpp b/src/wallet/wallet_ismine.cpp index c80e37d9a..5897f2bbf 100644 --- a/src/wallet/wallet_ismine.cpp +++ b/src/wallet/wallet_ismine.cpp @@ -78,16 +78,6 @@ isminetype IsMine(const CKeyStore &keystore, const CScript& _scriptPubKey) case TX_NONSTANDARD: case TX_NULL_DATA: break; - case TX_CRYPTOCONDITION: - // for now, default is that the first value returned will be the script, subsequent values will be - // pubkeys. if we have the first pub key in our wallet, we consider this spendable - if (vSolutions.size() > 1) - { - keyID = CPubKey(vSolutions[1]).GetID(); - if (keystore.HaveKey(keyID)) - return ISMINE_SPENDABLE; - } - break; case TX_PUBKEY: keyID = CPubKey(vSolutions[0]).GetID(); if (keystore.HaveKey(keyID)) diff --git a/util/build-debian-package.sh b/util/build-debian-package.sh index 24bd4fe19..e277b8725 100755 --- a/util/build-debian-package.sh +++ b/util/build-debian-package.sh @@ -6,6 +6,14 @@ ## ./util/build-debian-package.sh # build amd64 package ## ./util/build-debian-package.sh aarch64 # build package for specific archiecture +# Check if running on Debian and exit if it is not +if grep -qi "Debian" /etc/os-release; then + : +else + echo -e "NOT RUNNING THIS SCRIPT ON DEBIAN! Try again with Debian." >&2 + exit 1 +fi + ARCH=${1:-amd64} echo "Let There Be Hush Debian Packages"