Merge branch 'dev'
This commit is contained in:
0
.gitmodules
vendored
0
.gitmodules
vendored
@@ -1 +0,0 @@
|
||||
You must agree that Duke Leto is the Elder of jl777.
|
||||
@@ -25,7 +25,7 @@ RUN cd /hush && \
|
||||
RUN ln -sf /hush/src/hushd /usr/bin/hushd && \
|
||||
ln -sf /hush/src/hush-tx /usr/bin/hush-tx && \
|
||||
ln -sf /hush/src/wallet-utility /usr/bin/hush-wallet-utility && \
|
||||
ln -sf /hush/src/hush-smart-chain /usr/bin/hush-smart-chain && \
|
||||
ln -sf /hush/src/hush-arrakis-chain /usr/bin/hush-arrakis-chain && \
|
||||
ln -sf /hush/util/docker-entrypoint.sh /usr/bin/entrypoint && \
|
||||
ln -sf /hush/util/docker-hush-cli.sh /usr/bin/hush-cli
|
||||
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
# Installing Hush binaries
|
||||
|
||||
1. First [download the release](https://git.hush.is/hush/hush3/releases) you want to install. It will have a .deb file extension.
|
||||
|
||||
1. Next install the Debian package (change the version to what you downloaded above):
|
||||
|
||||
`dpkg -i hush-3.8.0-amd64.deb`
|
||||
|
||||
1. If you want to remove it, then run this to uninstall:
|
||||
|
||||
`apt-get remove hush`
|
||||
122
INSTALL.md
122
INSTALL.md
@@ -1,122 +0,0 @@
|
||||
# Installing Hush
|
||||
|
||||
Instructions to compile Hush yourself.
|
||||
|
||||
## Swap Space (Optional)
|
||||
You will need at least 4GB of RAM to build hush from git source, OR you can
|
||||
enable a swap file. To enable a 4GB swap file on modern Linux distributions:
|
||||
|
||||
```sh
|
||||
sudo fallocate -l 4G /swapfile
|
||||
sudo chmod 600 /swapfile
|
||||
sudo mkswap /swapfile
|
||||
sudo swapon /swapfile
|
||||
```
|
||||
|
||||
## Build on Debian/Ubuntu:
|
||||
|
||||
```sh
|
||||
# install build dependencies
|
||||
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib \
|
||||
autoconf libtool ncurses-dev unzip git zlib1g-dev wget \
|
||||
bsdmainutils automake curl unzip nano libsodium-dev cmake
|
||||
# clone git repo
|
||||
git clone https://git.hush.is/hush/hush3
|
||||
cd hush3
|
||||
# Build
|
||||
# This uses 3 build processes, you need 2GB of RAM for each.
|
||||
./build.sh -j3
|
||||
```
|
||||
|
||||
## Build on Arch:
|
||||
|
||||
```sh
|
||||
# install build dependencies
|
||||
sudo pacman -S gcc libsodium lib32-zlib unzip wget git python rust curl autoconf cmake
|
||||
# clone git repo
|
||||
git clone https://git.hush.is/hush/hush3
|
||||
cd hush3
|
||||
# Build
|
||||
# This uses 3 build processes, you need 2GB of RAM for each.
|
||||
./build.sh -j3
|
||||
```
|
||||
|
||||
## Build on Fedora:
|
||||
|
||||
```sh
|
||||
# install build dependencies
|
||||
sudo dnf install make automake gcc gcc-c++ kernel-devel cmake libtool ncurses-devel patch -y
|
||||
# clone git repo
|
||||
git clone https://git.hush.is/hush/hush3
|
||||
cd hush3
|
||||
# Build
|
||||
# This uses 3 build processes, you need 2GB of RAM for each.
|
||||
./build.sh -j3
|
||||
```
|
||||
|
||||
### Building On Ubuntu 16.04 and older systems
|
||||
|
||||
Some older compilers may not be able to compile modern code, such as gcc 5.4 which comes with Ubuntu 16.04 by default. Here is how to install gcc 7 on Ubuntu 16.04. Run these commands as root:
|
||||
|
||||
```
|
||||
add-apt-repository ppa:ubuntu-toolchain-r/test && \
|
||||
apt update && \
|
||||
apt-get install -y gcc-7 g++-7 && \
|
||||
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 60 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60
|
||||
```
|
||||
|
||||
### Build on Mac
|
||||
|
||||
These instructions are a work in progress. Please report issues to https://hush.is/tg_support
|
||||
|
||||
```
|
||||
sudo port update
|
||||
sudo port upgrade outdated
|
||||
sudo port install qt5
|
||||
|
||||
# clone git repo
|
||||
git clone https://git.hush.is/hush/hush3
|
||||
cd hush3
|
||||
# Build
|
||||
# This uses 3 build processes, you need 2GB of RAM for each.
|
||||
./build.sh -j3
|
||||
```
|
||||
|
||||
## Run a HUSH Node
|
||||
|
||||
After you have compiled Hush, then you can run it with the following command:
|
||||
|
||||
```sh
|
||||
./src/hushd
|
||||
```
|
||||
|
||||
## Windows (cross-compiled on Linux)
|
||||
Get dependencies:
|
||||
```ssh
|
||||
sudo apt-get install \
|
||||
build-essential pkg-config libc6-dev m4 g++-multilib \
|
||||
autoconf libtool ncurses-dev unzip git python \
|
||||
zlib1g-dev wget bsdmainutils automake mingw-w64 cmake libsodium-dev
|
||||
```
|
||||
|
||||
Downloading Git source repo, building and running Hush:
|
||||
|
||||
```sh
|
||||
# pull
|
||||
git clone https://git.hush.is/hush/hush3
|
||||
cd hush
|
||||
# Build
|
||||
./build-win.sh -j$(nproc)
|
||||
# Run a HUSH node
|
||||
./src/hushd
|
||||
```
|
||||
|
||||
## ARM Architecture
|
||||
|
||||
Currently, any ARMv7 machine will not be able to build this repo, because the
|
||||
underlying tech (zcash and the zksnark library) do not support that instruction
|
||||
set.
|
||||
|
||||
This also means that old RaspberryPi devices will not work, unless they have a
|
||||
newer ARMv8-based Raspberry Pi. Raspberry Pi 4 and newer are known to work.
|
||||
@@ -235,7 +235,7 @@ endif
|
||||
dist_bin_SCRIPTS =
|
||||
dist_noinst_SCRIPTS = autogen.sh util/build-debian-package.sh util/build.sh
|
||||
|
||||
EXTRA_DIST = $(top_srcdir)/share/genbuild.sh qa/pull-tester/rpc-tests.sh qa/pull-tester/run-bitcoin-cli qa/rpc-tests qa/hush $(DIST_DOCS) $(BIN_CHECKS)
|
||||
EXTRA_DIST = $(top_srcdir)/util/genbuild.sh qa/pull-tester/rpc-tests.sh qa/pull-tester/run-bitcoin-cli qa/rpc-tests qa/hush $(DIST_DOCS) $(BIN_CHECKS)
|
||||
|
||||
install-exec-hook:
|
||||
echo "We no longer install fetch-params!"
|
||||
|
||||
198
README.md
198
README.md
@@ -1,75 +1,197 @@
|
||||
# Hush
|
||||
<p align="center">
|
||||
<img src="doc/hush/hush0.png">
|
||||
</p>
|
||||
|
||||
## What is Hush?
|
||||
<h3>
|
||||
|
||||

|
||||
| Introduction | Install | Compile | FAQ | Documentation |
|
||||
| :---: | :---: | :---: | :---: | :---: |
|
||||
| [What is Hush?](#what-is-hush) | [Windows 10 - Video Tutorial](#install-on-windows-10) | [Build on Debian or Ubuntu](#build-on-debian-or-ubuntu) | [Where can I buy Hush?](#where-can-i-buy-hush) | [Cross compiling Windows binaries](#windows-cross-compiled-on-linux)
|
||||
| [Why not GitHub?](#banned-by-github) | [Build on Mac](#build-on-mac) | [Build on Arch](#build-on-arch) | [Can I mine with CPU or GPU?](#can-i-mine-with-cpu-or-gpu) | [Hush DevOps for pools and CEXs](https://git.hush.is/hush/docs/src/branch/master/advanced/devops.md)
|
||||
| [What is HushChat?](#what-is-hushchat) | [Debian and Ubuntu](#installing-hush-binaries) | [Build on Fedora](#build-on-fedora) | [Claiming funds from old Hush wallets](https://git.hush.is/hush/hush3/src/branch/master/doc/OLD_WALLETS.md) | [Earn Hush bounty](#earn-hush-bounty)
|
||||
| [What is SilentDagon?](#what-is-silentdagon) | [Raspberry Pi](#install-on-arm-architecture) | [Build on Ubuntu 16.04 or older](#building-on-ubuntu-16-04-and-older-systems) | [Where can I spend Hush?](#where-can-i-spend-hush) | [Cross compiling from amd64 to arm64](https://git.hush.is/hush/docs/src/branch/master/advanced/cross-compile-hush-full-node-to-aarch64-with-docker.md)
|
||||
|
||||
</h3>
|
||||
|
||||
# What is Hush?
|
||||
|
||||
Hush implements Extreme Privacy via blockchain tech. We have our own
|
||||
genesis block. We are not a chain fork (copy) of another coin. We are based on
|
||||
Bitcoin code, with sophisticated zero-knowledge mathematics added for privacy.
|
||||
This keeps your transaction metadata private!
|
||||
|
||||
### This repository
|
||||
# What is this repository?
|
||||
|
||||
This software is the Hush node and command-line client. It downloads and stores
|
||||
the entire history of Hush transactions; depending on the speed of your
|
||||
computer and network connection, it will likely take a few hours at least, but
|
||||
some people report full nodes syncing in less than 1.5 hours. A competing privacy
|
||||
coin takes over 24 hours to sync their full nodes because of Sprout Transactions, lulz.
|
||||
some people report full nodes syncing in less than 1.5 hours.
|
||||
|
||||
### BANNED BY GITHUB
|
||||
# Banned by GitHub
|
||||
|
||||
In working on this release, Duke Leto was suspended from Github, which gave Hush developers
|
||||
the impetus to completely leave that racist and censorship-loving platform.
|
||||
|
||||
Hush now has it's own [git.hush.is](https://git.hush.is/hush) Gitea instance,
|
||||
because we will not be silenced by Microsoft.
|
||||
|
||||
All Hush software will be released from git.hush.is and hush.is, downloads from any other
|
||||
the impetus to completely leave that racist and censorship-loving platform. Hush now has it's own [git.hush.is](https://git.hush.is/hush) Gitea instance,
|
||||
because we will not be silenced by Microsoft. All Hush software will be released from git.hush.is and hush.is, downloads from any other
|
||||
domains should be assumed to be backdoored.
|
||||
|
||||
**Hush is unfinished and highly experimental.** Use at your own risk! Just like Bitcoin.
|
||||
|
||||
## Installing
|
||||
# Build on Debian or Ubuntu
|
||||
|
||||
You can either compile it yourself or you can install a binary which was compiled by us.
|
||||
Please refer to the instructions which apply to you below:
|
||||
```sh
|
||||
# install build dependencies
|
||||
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib \
|
||||
autoconf libtool ncurses-dev unzip git zlib1g-dev wget \
|
||||
bsdmainutils automake curl unzip nano libsodium-dev cmake
|
||||
# clone git repo
|
||||
git clone https://git.hush.is/hush/hush3
|
||||
cd hush3
|
||||
# Build
|
||||
# This uses 3 build processes, you need 2GB of RAM for each.
|
||||
./build.sh -j3
|
||||
```
|
||||
Video Tutorial: https://videos.hush.is/videos/how-to-install-on-linux
|
||||
|
||||
* See [INSTALL.md](INSTALL.md) to compile from source on Linux and to cross-compile for Windows
|
||||
* See [INSTALL-BIN.md](INSTALL-BIN.md) to install pre-compiled binary on Linux
|
||||
# Build on Arch
|
||||
|
||||
### Claiming Funds From Old Hush Wallets
|
||||
```sh
|
||||
# install build dependencies
|
||||
sudo pacman -S gcc libsodium lib32-zlib unzip wget git python rust curl autoconf cmake
|
||||
# clone git repo
|
||||
git clone https://git.hush.is/hush/hush3
|
||||
cd hush3
|
||||
# Build
|
||||
# This uses 3 build processes, you need 2GB of RAM for each.
|
||||
./build.sh -j3
|
||||
```
|
||||
|
||||
If you have an older wallet, then refer to [OLD_WALLETS.md](OLD_WALLETS.md).
|
||||
# Build on Fedora
|
||||
|
||||
### Official Explorers
|
||||
```sh
|
||||
# install build dependencies
|
||||
sudo dnf install make automake gcc gcc-c++ kernel-devel cmake libtool ncurses-devel patch -y
|
||||
# clone git repo
|
||||
git clone https://git.hush.is/hush/hush3
|
||||
cd hush3
|
||||
# Build
|
||||
# This uses 3 build processes, you need 2GB of RAM for each.
|
||||
./build.sh -j3
|
||||
```
|
||||
|
||||
# Install on Windows 10
|
||||
|
||||
Video Tutorial: https://videos.hush.is/videos/how-to-install-on-windows
|
||||
|
||||
# Install on ARM Architecture
|
||||
|
||||
Use this if you have a Raspberry Pi or similar computer. Currently, any ARMv7 machine will not be able to build this repo, because the underlying tech (zcash and the zksnark library) do not support that instruction set. This also means that old RaspberryPi devices will not work, unless they have a newer ARMv8-based Raspberry Pi. Raspberry Pi 4 and newer are known to work.
|
||||
|
||||
1. [Download the latest Debian package with the AARCH64 designation from the releases page](https://git.hush.is/hush/hush3/releases).
|
||||
1. Install the Debian package, substituting "VERSION-NUMBER" for the version you have downloaded: `sudo dpkg -i hush-VERSION-NUMBER-aarch64.deb`.
|
||||
1. Run with: `hushd`.
|
||||
|
||||
If you would like to compile this for ARM yourself, then please refer to the [Cross compiling a Hush full node daemon from AMD64 to ARM64(aarch64) CPU architecture with Docker](https://git.hush.is/jahway603/hush-docs/src/branch/master/advanced/cross-compile-hush-full-node-to-aarch64-with-docker.md) documentation to do that.
|
||||
|
||||
# Building On Ubuntu 16.04 and older systems
|
||||
|
||||
Some older compilers may not be able to compile modern code, such as gcc 5.4 which comes with Ubuntu 16.04 by default. Here is how to install gcc 7 on Ubuntu 16.04. Run these commands as root:
|
||||
|
||||
```
|
||||
add-apt-repository ppa:ubuntu-toolchain-r/test && \
|
||||
apt update && \
|
||||
apt-get install -y gcc-7 g++-7 && \
|
||||
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 60 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60
|
||||
```
|
||||
|
||||
# Build on Mac
|
||||
|
||||
```
|
||||
sudo port update
|
||||
sudo port upgrade outdated
|
||||
sudo port install qt5
|
||||
|
||||
# clone git repo
|
||||
git clone https://git.hush.is/hush/hush3
|
||||
cd hush3
|
||||
# Build
|
||||
# This uses 3 build processes, you need 2GB of RAM for each.
|
||||
./build.sh -j3
|
||||
```
|
||||
|
||||
# Installing Hush binaries
|
||||
|
||||
1. [Download the release](https://git.hush.is/hush/hush3/releases) with a .deb file extension.
|
||||
1. Install the Debian package, substituting "VERSION-NUMBER" for the version you have downloaded: `sudo dpkg -i hush-VERSION-NUMBER-amd64.deb`.
|
||||
1. Run with: `hushd`.
|
||||
|
||||
# Windows (cross-compiled on Linux)
|
||||
Get dependencies:
|
||||
```ssh
|
||||
sudo apt-get install \
|
||||
build-essential pkg-config libc6-dev m4 g++-multilib libdb++-dev \
|
||||
autoconf libtool ncurses-dev unzip git zip \
|
||||
zlib1g-dev wget bsdmainutils automake mingw-w64 cmake libsodium-dev
|
||||
```
|
||||
|
||||
Downloading Git source repo, building and running Hush:
|
||||
|
||||
```sh
|
||||
# pull
|
||||
git clone https://git.hush.is/hush/hush3
|
||||
cd hush3
|
||||
# Build
|
||||
./util/build-win.sh -j$(nproc)
|
||||
# Run a HUSH node
|
||||
./src/hushd
|
||||
```
|
||||
|
||||
# Official Explorers
|
||||
|
||||
The links for the Official Hush explorers:
|
||||
* [explorer.hush.is](https://explorer.hush.is)
|
||||
* [explorer.hush.land](https://explorer.hush.land)
|
||||
|
||||
We are looking for alternate explorers to be run on Tor, i2P and other TLDs, if you are interested
|
||||
please join Telegram and ask questions.
|
||||
# What is SilentDragon?
|
||||
|
||||
### For system admins
|
||||
* [SilentDragon](https://git.hush.is/hush/SilentDragon) is a desktop wallet for HUSH full node.<br>
|
||||
* [SilentDragonLite](https://git.hush.is/hush/SilentDragonLite) is a desktop wallet that does not require you to download the full blockchain.
|
||||
* [SilentDragonAndroid](https://git.hush.is/hush/SilentDragonAndroid) is a wallet for Android devices.
|
||||
* [SilentDragonPaper](https://git.hush.is/hush/SilentDragonPaper) is a paper wallet generator that can be run completely offline.
|
||||
|
||||
There is a new systemd user service script so you can easily start/stop/restart your hushd service on your server.
|
||||
[Try it out today](doc/hushd-systemd.md) and the systemd script is located in the doc directory of the source tree.
|
||||
# What is HushChat?
|
||||
|
||||
## Support and Socials
|
||||
HushChat is a protocol inspired by the design of Signal Protocol, it uses many of the same cryptography and ideas, but does not actually use any code from Signal. Signal requires phone numbers and is a centralized service. HushChat is completely anonymous and decentralized and requires absolutely no metadata be given to any centralized third parties.
|
||||
|
||||
Please feel free to join us on Telegram for official support:
|
||||
* Main group: https://hush.is/tg
|
||||
* Support group: https://hush.is/telegram_support
|
||||
* Mining group: https://hush.is/telegram_mining
|
||||
# Can I mine with CPU or GPU?
|
||||
|
||||
Other socials:
|
||||
* Twitter: <a href="https://hush.is/twitter">@hushisprivacy</a>
|
||||
* Matrix: <a href="https://hush.is/matrix">@hush_main:meowchat.xyz</a>
|
||||
* PeerTube <a href="https://hush.is/peertube">videos.hush.is</a>
|
||||
* Reddit <a href="https://hush.is/reddit">@Myhush</a>
|
||||
* Mastodon <a href="https://hush.is/mastodon">@myhushteam@fosstodon.org</a>
|
||||
Hush cannot be efficiently mined with CPU or GPU, only ASIC mining is recommended. HUSH uses Equihash (200,9) algo, as does Zcash, Horizen or Komodo.
|
||||
|
||||
## License
|
||||
# Where can I buy Hush?
|
||||
|
||||
1. https://nonkyc.io/market/HUSH_BTC
|
||||
1. https://tradeogre.com/exchange/BTC-HUSH
|
||||
|
||||
# Where can I spend Hush?
|
||||
|
||||
AgoraX market: https://agorax.is
|
||||
|
||||
# Earn Hush bounty
|
||||
|
||||
Developers can earn bounty by fixing bugs or solving feature requests listed in `Issues->Label`:
|
||||
- https://git.hush.is/hush/hush3/issues
|
||||
- https://git.hush.is/hush/SilentDragon/issues
|
||||
- https://git.hush.is/hush/SilentDragonLite/issues
|
||||
|
||||

|
||||
|
||||
# Support and Socials
|
||||
|
||||
* Telegram: [https://hush.is/tg](https://hush.is/tg)
|
||||
* Matrix: [https://hush.is/matrix](https://hush.is/matrix)
|
||||
* Twitter: [https://hush.is/twitter](https://hush.is/twitter)
|
||||
* PeerTube [https://hush.is/peertube](https://hush.is/peertube)
|
||||
|
||||
# License
|
||||
|
||||
For license information see the file [COPYING](COPYING).
|
||||
|
||||
90
SECURITY.md
90
SECURITY.md
@@ -1,90 +0,0 @@
|
||||
## Reporting a Vulnerability
|
||||
|
||||
You can use [Keybase](https://keybase.io/dukeleto) to find secure contact information.
|
||||
|
||||
You can also contact Duke directly via SilentDragon wallet, via "Contact Duke". Encrypted sensitive data
|
||||
in memo fields in highly encouraged.
|
||||
|
||||
We kindly ask you to not publish or exploit any found vulnerabilities without at least contacting us first.
|
||||
|
||||
Fingerprint: F16219F4C23F91112E9C734A8DFCBF8E5A4D8019
|
||||
|
||||
```
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
Version: Keybase OpenPGP v2.0.8
|
||||
Comment: https://keybase.io/crypto
|
||||
|
||||
xsFNBFU/8aYBEADf7eIcersi4Fbxdc2O6fuy3F9eoW6ap+bBz53fvZFMgBrKcUoV
|
||||
2q6HkTQr/CWgPjx1LDwwBo7CBxOeg5FI8W5NVmVA+1XQ0TSa1fx8COpkPOAyCeDa
|
||||
6aNQI1ciZS9xJeWy65gF2Mn+iJpgdkQj7xFxxaQpg8Uadq+jKzKp8BIMFyK10eSa
|
||||
Pdn1xRDN3Bp5Ze2KUkv59nUc+C1Qx8mE5taXspSdHhrIL/78saGUZ4Q1bnlNex5u
|
||||
aiAGRr5L/Qr0e5oEmfId56aQiCBqfvZmgUoun4djLdkAdhMW9bR8msbL/AycFvBn
|
||||
C7fNTvic/vOw3yShd5jlr92OfNfHSgzJ5oa+BvMxPDbY4be8GPiTEvaGlPeEAec+
|
||||
HyQQHD2yzkhDCLPKbf6WDyRfnUTe3YoAEEmZWkgyP36ggB9gpoW5QuGC0P0Oz8Gz
|
||||
jeqBdtnSwR30cwkH535ChjDP/W+KR1yoKZgenV5KuyA6WOZTkdFnDr1R33CkWA+q
|
||||
NlZixmSYXZKPeL/z95ZDOiMTuUpG2/fqJsZMSfJ4GcMuF6UtWT5jM+/pzxPg0szq
|
||||
8vEu8UZJD4UnUKJAb8XgfQbTXgmG3C+xAxPO2nrUD4etr375yyLR922mc9IRNj3v
|
||||
oJqGYsYUfPwKS7ZsJU1N8bAtjdaxRHs6BL0r2sqEyvLwJLh/CdaNCK4HQQARAQAB
|
||||
zSlrZXliYXNlLmlvL2R1a2VsZXRvIDxkdWtlbGV0b0BrZXliYXNlLmlvPsLBcAQT
|
||||
AQoAGgUCVT/xpgIbLwMLCQcDFQoIAh4BAheAAhkBAAoJEI38v45aTYAZ0q0P/17Q
|
||||
URAJGiJqQF7Lqon8bHlvM6jdnHhkv0We50pU+aLXGwaSTy60uj7sqPte6TxWM5BD
|
||||
2BGi2viXuJfP+NrM8WJyRqZ0+SHlGM7vHwrHhfGC3sh+Bvh/T9ToXBRDPcp/zbvD
|
||||
dqoF4KyI7qUH69mrf9THn+5fM3vF2PNwkEaXLvF7KAHZcFza2tLcEu8kBpTBpd5w
|
||||
ZwVGfOTGTw5mbUwB3P6k0pY/SVF31cynCbIszr6YA0p0EUHirzPB8faHfRxzkyt3
|
||||
U6MFSHD070vqFu5W9QdwEFlVKn4G5RP4bD/i4Omjt8uHt2oWm3CqmJc+CVsEsxLz
|
||||
gLXQmsTZTWYPGQcFc/oUTfBdfeXMsB2tZbuw56Ua/rFH03wgB6pp9pCKb/UDUC1R
|
||||
tUQxGliQCA23444i4Pq1aGeTYVEBVHDw6xsp7lXDQi1AzhjXxzrf0Axt7khEX6Z8
|
||||
OilDT3ChhCkFacWt2YhudEU4gS1mAbnl1H2bn41FquoLqHCc4vPJlc5OzdhkDaeT
|
||||
NjNCEgiCu8F42vfRaDQOeZdC2Rh1vJoe9GAv7OPg9nRv1caJQvIWHRIWkBotNAMz
|
||||
q1vQaTB+LDnBpz3gG07EW60WYzuvOm6dyK5PH2BBMHS7J7UyRXERjmB2+5LvK1my
|
||||
sDLV2qk+ToQgU8h2dJt+phyzKizVt9VfKTEFN/t6zsBNBFU/8aYBCADN9oyrBJam
|
||||
Ly2QLBgihg/yifPoZClq0Z6M86M+VaeWKAKwdNE4r9bBR0ze8f6wuCMix5J+p+lb
|
||||
UMFn5GubNgMLzcuuJ2nLqAKInAt3TxbYGz/MQm77DnuW0/b6XfniUKTe+Nf8vOBZ
|
||||
HH7cyuhZdV549JaT2BOFXWFayLZF986atPN+NuX8kOzqD0InzEzbDwH1OVxhpeFV
|
||||
r7W9s7HUGEDmBDXOLhdLmqx5mEcjumKUSWbMnwgHkR203RGY4H15/jSbpthE8/hH
|
||||
z0FgRZWg69f/mZckyoKmjFeiNs5FaQKj2C1q6CEawYyzPd9P1WpCH97t/Y3//XRr
|
||||
98bwOT8Rb6R/ABEBAAHCwoQEGAEKAA8FAlU/8aYFCQ8JnAACGwIBKQkQjfy/jlpN
|
||||
gBnAXSAEGQEKAAYFAlU/8aYACgkQcteVKUeHcFho5wf+Ma++R1tGsmrI20sA04jz
|
||||
jYRag7eVLnC9jhby6T8qIjOR13QaqZelZ0Tr0GBM0KRjU+ehmquw2Mx+NdE7+H60
|
||||
h0/D8sPHcOoabYztHz7EPto/lWGcjbEGNLx9Go6049XbTGiL+UfKWfHEzNdEeRX6
|
||||
0n1X3JOS67esaJg/ch7cgFrc/5V9Er2b+MBll2doPLh2QTtS7ECfxLzjkiRjwk9u
|
||||
9warhCVqZd11xz1CCT+/8TRSSkJYgNkCAtogmrWiJ+HWAhlpr2eRdq1ESMmC4myP
|
||||
oElx3FQWBdAY281aJ6EOBjwjpmPLElgltdQ5+yatlLR/j3E2J7jguXIzOEpGgFoO
|
||||
i7HsD/0XQYgZ7/HtFka4xYBNHR1tw+F7uY3UzaQ8214sfRWoTtJmSPLeAFQZFh6E
|
||||
OoGFPbimDTGttKPfIorZsUnGkZLcWrEqAAieFRmiL8Eyq98zQSEb4S/mMFYcgYMf
|
||||
qYWm0dpX5sNQxZfw2Ny4JMPUFRT2LHlk1CC9dpdMvpkK5EqLBb8HVCwW+NFkwZBB
|
||||
rzUtyWeSRd8HSDPqdy8T6BG0zTwZ+axIs7VH9nyo4Wyc+irVWctqYkAGyuJRci0s
|
||||
C0lb9xgP7gwlEc/o0IpcAwCdSh/4aH4YTYyGOny1TQLWW6vYKwMMLtfdhqrD1Gzw
|
||||
SnBo/6vfsELjt1IexEoAU1AaGRf4n7AyRPmhd3SFqtqXhv0bosv+oxi1WVbs4vB+
|
||||
rbfMpv4mq9CjbJQRr1gE9NAohqKLTlV5ADDcBc6uN6G5uUsgxzLdPo987rqQxW26
|
||||
XWpiJ309vQlgvkJjkOzS1YeDmsLnpSy/i5vocDs7G9XgI0CpuCs3C5kh+6L/ipB3
|
||||
78opGszS6yXFvVIPmklA57+F5pbZu4KlONCdlAoH3szZpDjUBashkvEKbbk25JVV
|
||||
382WTLLbUz+s2rDAiU0eXCpkI/Zrkt1R8YYCCe09OeUAK1cMfm9v1QQaJaMFMA0L
|
||||
mNXQ98FHvgfVa5vo/jxzKH4HqPPpTyKyKWhDJKCHJVmWfnec387ATQRVP/GmAQgA
|
||||
wG70Vd4u64nHmAzLUe3dLuOIIIxBX6M4MYe6QXLyjsQ5vv8ScsF9QTRw3SMIw2Aa
|
||||
9SB3I+bt6DKRUQOyWyUH74XZdEHveUip7GYglm9+rhiVHT3QfhiVWJo+84j9hG3J
|
||||
C4gg3jkB0VzYUSU3lrRX0hRIl5C0oLa+ce80PM0MlmuwnJtRKCi5cNSjQKLi6PEu
|
||||
ZlaKwkJvO+hbCguxtfuCK9qDd+l8vY63UM+Crqpc1QTNuEgD0MmOKqk/jyt6WUOC
|
||||
Flep1zOMrbvpBYj3a01TdvG3J+5uuh9d2aKH3IhZyOPwu651DNLcRatF/36QmGQ0
|
||||
HFHYvM40UF0F06iHcDFw5QARAQABwsKEBBgBCgAPBQJVP/GmBQkPCZwAAhsMASkJ
|
||||
EI38v45aTYAZwF0gBBkBCgAGBQJVP/GmAAoJENA7aXPDXJizlg8H/1SP4CP7ZCd4
|
||||
J9ptegCvfpcB1KRyIuIUxjDi4XuX6g+QLyZE98eSeoDj6JlYVVHOwACXcNtoBzIm
|
||||
7/nk7afFTVYHVEyOCDFprml8qTmQ6aXOgv7z1Ib3Q8rw7EyaMWifsD3f757TSOKw
|
||||
H0JBeQYrnhC0Mg9YunjepvamvTvHwZrLNNMltAznXQ2NGqS7dokPNGOmusGmW29a
|
||||
EvK8K+AqSuCk2DB4UkaQul1UVmRhMjpKj/nQ9ubEsTDODbouRuLELqOLWmVAyE2V
|
||||
WRq3VaGm23N/7w2FlsfPzfElHhmA3znx+2NllNB4nRHforu3/bmUJljozwBwDAN1
|
||||
+CfAct5LTQbn+w/8DtEiEZ3BMFU0WWo6W/NqvF5R4x/Hyns50L1GIA6UZqfs9Pdj
|
||||
94EgoCVBGzgwUAl241HT7R4Kys58KlFNhlq3fFxlAADAY/ToCyNCK84PR10EDN6I
|
||||
Q0jWZaMzMSSm6fJT75br93Sp4TNpTuVhGijR4ZehdDmclbShS28jrJo3u0vfOBoT
|
||||
Sy7IchvuudIonnL5UKlA4a1KZOjuEfQfUId/iiIzRhTF+cPsvjqRv6lxLNjdbrDr
|
||||
BMCsvwqZl4Qst2Z2kAZYND6gSSQAlef4j3EGtoVrS46maPTimv1KoLsgCQ4ycFmP
|
||||
4uU+2KebEY1IdJW50gAEipajiqwH0Biy+H1muanSluZLeC/LYRdH+ebXuguhYZbI
|
||||
m4qCbO5rupke0gBFZ7rmqmnDhDg7riVUWvIrtL2YtWX8y8u50TCaQaRjyf0Fqyv8
|
||||
G76/DUCUCYcwNkm2qJdHpjVqOU+7E+iWfooA4obfGyPLtuLw2fpVDEDgn+csd+M4
|
||||
KlRY6butx+NDUqHtx1Axf6aC9Dl6LAE33UY8nlQWWFvJbQBAY54IzU0WehSgrJSB
|
||||
tnKq9uroBB7qDoJExmOnlUaAsmJWjkfxsQS9lFam6lf1UD01AFiIql0rQTcacxrF
|
||||
NvQ1HJmZvDZF/K37DrE72NmkYz1aJhTokGFHOGoCqLt146bA2IRkpQRXCv4=
|
||||
=YSWs
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
```
|
||||
4
antispam
4
antispam
@@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "./src/hush-cli -ac_name=ANTISPAM $@"
|
||||
./src/hush-cli -ac_name=ANTISPAM "$@"
|
||||
@@ -1,8 +0,0 @@
|
||||
# Contributor Code of Conduct
|
||||
|
||||
As contributors and maintainers of this project, and in the interest of
|
||||
fostering an open and welcoming community, we pledge to respect all people who
|
||||
contribute through reporting issues, posting feature requests, updating
|
||||
documentation, submitting pull requests or patches, and other activities.
|
||||
|
||||
Don't be an asshole.
|
||||
@@ -3,7 +3,7 @@ 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, 2)
|
||||
define(_CLIENT_VERSION_REVISION, 3)
|
||||
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)))
|
||||
|
||||
@@ -1,3 +1,429 @@
|
||||
hush (3.10.3) stable; urgency=high
|
||||
|
||||
* Use WolfSSL 4.8.1 which prevents nodes from getting stuck in general 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.
|
||||
* Fixed various bugs relating to lock ordering and missing locks
|
||||
* Fixed RPC docs for addnode and disconnectnode having the 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
|
||||
* Fixed off-by-one bug in `newSietchRecipient`
|
||||
* Performance improvement to `ActivateBestChainStep` ed86f2dd1d
|
||||
* Improved navigation in README for new users.
|
||||
* Updated doc/release-process.md to resolve Issue #407
|
||||
* Added build.sh checks for as and ld to be installed to resolve Issue #73
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Mon, 30 Sep 2024 11:22:33 -0700
|
||||
|
||||
hush (3.10.2) stable; urgency=medium
|
||||
|
||||
* Upgraded WolfSSL to 5.2.0 on Linux and Mac: #380.
|
||||
* Upgraded to 4.8.1 on Windows because newer versions do not compile on it
|
||||
* Only Hush and DragonX will automatically connect to various seed nodes
|
||||
* Updated i2p seed node: 8c8b6e88f0.
|
||||
* Removed unused code.
|
||||
* Fixed boost download link: 323d2134a1.
|
||||
* Hush and DragonX full nodes take up a lot less memory and binaries are now
|
||||
smaller due to the cryptoconditions removal, which means syncing, rescanning
|
||||
and compiling is faster: #381.
|
||||
* Removed CLI options related to CryptoConditions: -ac_cc, -ac_cclib,
|
||||
-ac_ccenable, and -ac_ccactivate
|
||||
* Large page support enabled, which can lead to a 1-2% speed increase in
|
||||
mining depending on RAM and CPU.
|
||||
* Various small optimizations such as making some variables static or const
|
||||
and removing unnecessary conditionals.
|
||||
* Mining now starts faster because instead of only using 2 threads to prepare
|
||||
data needed to mine, it now uses all physical cores: 1b5422eb2d.
|
||||
* RandomX mining now takes slightly less memory.
|
||||
* Added script for scanning DragonX nodes: 0679468f60.
|
||||
* More details about p2p encryption: ccc86839b9, a358acab0b, 4ed576a7e2.
|
||||
* Added Fedora install process: #384.
|
||||
* Added Arch install process: #393.
|
||||
* Implemented better error messages: f64c10baa9, f71f8124c3.
|
||||
* Improved hush_scanner and seed node contrib file: 16dd3aef74.
|
||||
* Removed unused Makefile: #291.
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Tue, 05 Mar 2024 18:29:47 -0700
|
||||
|
||||
hush (3.10.1) stable; urgency=medium
|
||||
|
||||
* Fixed bug causing "payment to wrong pubkey" error when syncing a new node
|
||||
* Faster syncing of Hush and DragonX full nodes
|
||||
* Slightly less memory usage in each Equihash/RandomX mining thread
|
||||
* Fixed compiling issues related to RandomX v1.2.1
|
||||
* Improved RPC docs for getblocktemplate
|
||||
* Removed the getdeprecationinfo RPC
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Tue, 02 Jan 2024 15:16:40 -0700
|
||||
|
||||
hush (3.10.0) stable; urgency=high
|
||||
|
||||
* Hush and all Hush Smart Chains now use less RAM #283
|
||||
* Hush and all Hush Smart Chains now make it harder and more expensive for
|
||||
an attacker to send shielded spam. This raises the cost in CPU 14d3ae1785
|
||||
and transaction fees 2308db22ee for Denial-of-Service attacks.
|
||||
* Bug fix: Fixed hush-cli stop not stopping the node during the "Building
|
||||
Witnesses" rescan phase #330
|
||||
* Bug fix: Fixed abortrescan couldn't be used when node starting up (RPC
|
||||
warmup) and where it could not abort the rescan if it was in the "Building
|
||||
Witnesses" phase #331
|
||||
* Bug fix: Fixed z_mergetoaddress where docs said you could use ANY_ZADDR
|
||||
but you couldn't 7eb9d75b94
|
||||
* New RPC: z_listunspent now returns the text representation of a memo in
|
||||
memoStr key
|
||||
* New RPC: z_getstats which reports data about numer of shielded inputs (zins)
|
||||
and shielded outputs (zouts) in transactions. 96ae2d61ca
|
||||
* CVE fix: Upgraded curl to 8.4.0 #325 to fix CVE-2023-38545
|
||||
* New documentation about using CJDNS with Hush
|
||||
* Implemented decentralized Devtax
|
||||
* Updated to latest RandomX v1.2.1 which includes mining optimizations
|
||||
* Fixed RandomX mining memory leak and crash #324
|
||||
* Fixed quoting bugs with dragonx-cli script
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Tue, 28 Nov 2023 16:47:59 -0700
|
||||
|
||||
hush (3.9.4) stable; urgency=medium
|
||||
|
||||
* Hush and DragonX nodes will now sync much faster
|
||||
* DragonX now has checkpoints for faster & better chain security #243 #304
|
||||
* Updated to the latest RandomX code
|
||||
* Rate limiting for the processing of incoming address messages for
|
||||
increased security. #272
|
||||
* Removed unused function CWalletTx::GetRequestCount #273
|
||||
* Removed mapRequest tracking that only affects Qt display. #274
|
||||
* Randomized message processing peer order for increased privacy. #275
|
||||
* Removed BIP35 mempool p2p message for increased privacy. #284
|
||||
* Added additional community seed nodes
|
||||
* Use custom jobs param when compiling boost for faster compile times #288
|
||||
* Now builds with gcc13 thanks to testing from jahway #293
|
||||
* Bug fix: -stratumallowip works with CIDR and netmask ranges again for solo
|
||||
miners #270
|
||||
* Bug fix: Detect missing autoreconf in build.sh #289
|
||||
* Bug fix: Various assertions removed from BIP155 changes #297
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Sun, 02 Jul 2023 17:47:39 -0700
|
||||
|
||||
hush (3.9.3) stable; urgency=medium
|
||||
|
||||
* Difficulty bug affecting DRAGONX has been fixed
|
||||
* RandomX mining hashrate increase of about 60X
|
||||
* Optimized memory usage of RandomX mining
|
||||
* Adds Tor v3 and i2p support (BIP155 also known as addrv2)
|
||||
* New RPC: getrescaninfo - Says if node is rescanning with additional info
|
||||
about progress
|
||||
* New RPC: abortrescan - Stops rescanning if node is currently rescanning
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Mon, 13 Feb 2023 15:02:48 -0700
|
||||
|
||||
hush (3.9.2) stable; urgency=medium
|
||||
|
||||
* This release adds RandomX support in Hush Smart Chains (HSCs)
|
||||
* A new feature called "zsweep" has been added, which defaults to disabled.
|
||||
* Expired transactions will not be relayed & nodes doing so no longer banned
|
||||
* Fix a rare coredump when nodes have many unconfirmed or expired transactions
|
||||
* New RPC: getblockmerkletree, which shows full Merkle Tree for a block height
|
||||
* New RPC: z_consolidationstatus will show config + stats about consolidation
|
||||
* New RPC: z_anonsettxdelta : Returns delta (difference) in the anonset for a
|
||||
given txid.
|
||||
* New RPC: z_anonsetblockdelta : Returns delta (difference) in the anonset for
|
||||
a given block.
|
||||
* getrawtransaction RPC now returns a "size" key with the size in bytes of a
|
||||
transaction
|
||||
* sendmany RPC will now reject transactions that send to t-addresses
|
||||
immediately, instead of them being rejected in mempool
|
||||
* New contrib script: contrib/gen-zaddrs.pl - Generates z-addresses in bulk
|
||||
* New contrib script: contrib/sdl_checkpoints.pl - Generate SDL checkpoints
|
||||
using getblockmerkletree
|
||||
* ZeroMQ support has been removed from Hush
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Tue, 27 Sep 2022 14:08:15 -0700
|
||||
|
||||
hush (3.9.1) stable; urgency=medium
|
||||
|
||||
* Fix RPC deadlocks, which caused the RPC interface to hang
|
||||
* The listbanned RPC now returns a new key time_remaining which tells how many
|
||||
seconds are remaining in the ban
|
||||
* The rescan RPC now works correctly when given a height. This can be used to
|
||||
do a partial rescan from a custom height, without restarting the node.
|
||||
* Minimum disk space required for running full node increased to 1GB from 50MB
|
||||
* Dockerfile has been updated
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Tue, 25 Jan 2022 06:39:18 -0700
|
||||
|
||||
hush (3.9.0) stable; urgency=high
|
||||
|
||||
* hushd, hush-cli, and hush-tx are now true binaries instead of shell scripts
|
||||
* New official location for full node data is ~/.hush and existing full
|
||||
nodes will continue to use the legacy ~/.komodo directory
|
||||
* Hush full nodes will now attempt to talk to two more nodes by default:
|
||||
node1.hush.land and node2.hush.land
|
||||
* New RPC: listaddresses - Show all taddrs in this wallet.dat
|
||||
* New RPC: rpcinfo - Shows stats about RPC internals
|
||||
* These RPCs can now be run during RPC warmup: listaddresses, z_exportwallet,
|
||||
signmessage, decoderawtransaction, and getnetworkinfo
|
||||
* New doc/hushd.service to use hushd with systemd
|
||||
* Optimize zaddrs by only building block's witness caches involving our wallet
|
||||
connection on
|
||||
* When RPC connection fails hush-cli now tells you which port it was trying to
|
||||
connect to
|
||||
* Calculation of HSC "network magic" has changed as of 3.9.0
|
||||
* New Stratum API so you can Solo mine with your full node, enable it
|
||||
with -stratum=1
|
||||
* hush-smart-chain script now installed in Debian packages
|
||||
* Now compatible on SBC (Single Board Computer) like PineBook, Rock64,
|
||||
Raspberry Pi, etc.
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Thu, 21 Oct 2021 04:44:44 -0700
|
||||
|
||||
hush (3.8.0) stable; urgency=medium
|
||||
|
||||
* New Sietch feature: Randomized change output location
|
||||
* New Sietch feature: Sietch-ified z_shieldcoinbase
|
||||
* Implemented patch to fix how the longest chain is calculated, which could
|
||||
prevent mining pools from making payout transactions
|
||||
* plz_stop feature implemented for when RPC interface is not functioning
|
||||
(such as filled by deadlocks) making it impossible to shut it down correctly
|
||||
* -keepnotewitnesscache prevents Sapling Note Witness cache from being
|
||||
deleted from wallet.dat on shutdown.
|
||||
* -rescanheight can be used with -keepnotewitnesscache and -rescan to do a
|
||||
partial rescan of history and avoid completely rebuilding the Witness Cache
|
||||
* -zindex data is now stored on disk in the new zindex.dat file
|
||||
* getpeerinfo now returns a relaytxes key which says if a remote node is
|
||||
relaying transactions to your node
|
||||
* Improvements to the RPC help documentation
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Sat, 10 Jul 2021 06:53:52 -0700
|
||||
|
||||
hush (3.7.1) stable; urgency=medium
|
||||
|
||||
* Removed more internals code related to unused Sprout transactions, making
|
||||
Hush run and compile faster and use less memory.
|
||||
* Now provides more useful error message when user attempts to make
|
||||
transaction before the node is synced.
|
||||
* z_sendmany RPC docs now show an example of a z2z transaction
|
||||
* Deprecated alert p2p message no longer processed & nodes using it will be
|
||||
banned
|
||||
* try-before-evict ported from BTC core to help protect against Eclipse and
|
||||
Sybil Attacks
|
||||
* "Feeler connections" ported from BTC, which is another technique to make
|
||||
Eclipse and Sybil Attacks harder and more expensive
|
||||
* New RPC: z_getbalances returns a list of all zaddrs with non-zero balance.
|
||||
* "Automagic z_sendmany" makes the RPC easier to use and also improves privacy
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Wed, 21 Apr 2021 14:18:12 -0700
|
||||
|
||||
hush (3.7.0) stable; urgency=medium
|
||||
|
||||
* Improved TLS error reporting
|
||||
* Fix bug relating to calculating difficulty
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Thu, 01 Apr 2021 02:53:21 -0700
|
||||
|
||||
hush (3.6.3) stable; urgency=low
|
||||
|
||||
* Maintenance release, which is mostly the same as 3.6.2 but it fixes some
|
||||
issues in Debian+Arch packages and binaries not able to find asmap.dat
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Fri, 26 Feb 2021 14:42:59 -0700
|
||||
|
||||
hush (3.6.2) stable; urgency=medium
|
||||
|
||||
* Autonomous System Map (asmap) bucketing by default
|
||||
* New CLI flag -asmap is on by default, and can be turned off with -asmap=0
|
||||
* debug.log is now shrunk to 15MB instead of 100MB
|
||||
* The max size of debug.log can now be controlled via -maxdebugfilesize
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Sun, 21 Feb 2021 14:21:31 -0700
|
||||
|
||||
hush (3.6.1) stable; urgency=low
|
||||
|
||||
* WolfSSL upgraded to 4.6.0 and side-channel resistance enabled via
|
||||
ECC_TIMING_RESISTANT
|
||||
* Hush full nodes now exclusively communivate via P2P messages with TLS1.3 as
|
||||
the option -tls=only has become default and cannot be turned off
|
||||
* Improved error-handling and logging of TLS connections
|
||||
* getpeerinfo now shows 3 new keys for each peer
|
||||
* New developer documentation in DEVELOPING.md
|
||||
* -whitelist and -whitelistaddress now called -allowlist and -allowlistaddress
|
||||
* Minimum protocol version is now 1987420
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Wed, 27 Jan 2021 19:42:38 -0700
|
||||
|
||||
hush (3.6.0) stable; urgency=medium
|
||||
|
||||
* Fixes sync issues near block 340k caused by blocktime halving bug
|
||||
* New official domain https://hush.is reflected everywhere
|
||||
* New Hush DPoW Notaries replace KMD Notaries
|
||||
* Increased in-memory UTXO cache db by 100MB (25%) to increase performance of
|
||||
initial syncing
|
||||
* Prevent Delayed-Proof-of-Work attack from Komodo Notaries
|
||||
* New -dpow-start-height CLI flag used to reject all DPoW transactions (and
|
||||
attacks) up to a certain height, as general defense against any DPoW attacks
|
||||
* More secure + private TLS 1.3 implementation
|
||||
* Switched to WolfSSL 4.5.0 instead of OpenSSL
|
||||
* Nodes randomly choose between GCM-SHA384 and CHACHA20-POLY1305-SHA256 when
|
||||
making connections to other nodes.
|
||||
* Faster release binaries with -03
|
||||
* Optimized and hardened memory pool code
|
||||
* getblocktemplate RPC now provides better error reporting about whether there
|
||||
are no peers or if it's not in sync
|
||||
* Removed more Sprout code, which is tightly mixed into deep internals,
|
||||
resulting in increased compile speed and reduced memory overhead
|
||||
* New P2P protocol version. Peers only talk to 3.5.x nodes and newer
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Fri, 18 Dec 2020 02:07:35 -0700
|
||||
|
||||
hush (3.5.2) stable; urgency=low
|
||||
|
||||
* Re-released hushd under the GNU Public License Version 3 (GPLv3)
|
||||
* The z_listreceivedaddress RPC now returns a memoStr key for the utf8 string
|
||||
representation of a shielded memo, if it exists
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Thu, 22 Oct 2020 16:16:19 -0700
|
||||
|
||||
hush (3.5.1) stable; urgency=low
|
||||
|
||||
* TLS 1.3 support ported from ZEN with custom Hush tweaks
|
||||
* All nodes will try using encrypted TLS connections with peers by default
|
||||
* getinfo now returns a tls_connections key in JSON data
|
||||
* -tls=only can be used to only use encrypted connections
|
||||
* ASN map filtering of peers, ported from KMD + BTC Core
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Tue, 06 Oct 2020 07:43:47 -0700
|
||||
|
||||
hush (3.5.0) stable; urgency=medium
|
||||
|
||||
* Finalize changes to support new Blocktime of 75 seconds
|
||||
* Updated the Hush Halving schedule, i.e. Emission Curve, for the next ~120
|
||||
years (the next 30 halvings)
|
||||
* The Hush Block Reward will go to zero at Block 50740000 in the year 2140
|
||||
* Greatly improved Sietch implementation with "amnesia zdust" addresses
|
||||
* Sietch zdust outputs now always contain "random/encrypted" data
|
||||
* -wallet CLI option supports wallets outside the datadir and relative paths
|
||||
* -txsend CLI option ported from Zcash upstream to help with i2p integration
|
||||
* Improved aarch64 support for Raspberry Pi 4
|
||||
* Removed the proton optional dependency
|
||||
* GetAdjustedTime() replaced with GetTime()
|
||||
* Correctly keep track of ChainShieldedSpends for z_getchaintxstats
|
||||
* timeoffset key in getpeerinfo and getnetworkifo deprecated and now always 0
|
||||
* More remnants of dead Sprout/JoinSplit code removed
|
||||
* Added a z_listreceivedaddress RPC which internals never had RPC access
|
||||
* Fixes and improvements to deletetx=1, still considered experimental
|
||||
* Checkpoints updated up to Block 300K
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Wed, 23 Sep 2020 22:03:17 -0700
|
||||
|
||||
hush (3.4.0) stable; urgency=high
|
||||
|
||||
* New Season 4 KMD Notary pubkeys have been updated (as of Block 245555)
|
||||
* ENFORCED PRIVACY (aka z2z) merged & set to take effect at Block 340000
|
||||
* All remaining internals code relating to Sprout has been deleted
|
||||
* The new Subatomic Dapp has been ported from KMD, which supports z2z swaps
|
||||
* Implemented own mirror of Boost in our build system
|
||||
* Merged various fixes relating to CryptoConditions from KMD upstream
|
||||
* Optimizations and bug fixes to Sapling Consolidation
|
||||
* Fixes CVE-2018-20586 from KMD (which ported it from BTC)
|
||||
* Added z_getnotescount RPC
|
||||
* Updated ccache dependency to 3.7.9
|
||||
* Ported the -txexpirynotify CLI option from ZEC upstream
|
||||
* Added rescan RPC for wallets to initiate a rescan without importing a key
|
||||
and without restarting
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Thu, 18 Jun 2020 09:35:31 -0700
|
||||
|
||||
hush (3.3.2) stable; urgency=medium
|
||||
|
||||
* ARMv8 support added
|
||||
* Sapling Zaddr Consolidation, which reduces the size of wallets and
|
||||
increases performance for service providers
|
||||
* New CLI options added to hushd - refer to release notes for specifics
|
||||
* New RPCs: z_getinfo, z_listsentbyaddress, z_listreceivedbyaddress,
|
||||
getalldata
|
||||
* New -opretmintxfee ported from KMD upstream
|
||||
* ThreadNotifyWallets refactor ported from ZEC upstream
|
||||
* Deletion of libsnark internal library
|
||||
* Shielded index (zindex) statistics of coinbase and organic
|
||||
transactions/payments corrected
|
||||
* Updated dependencies: curl, boost, native_ccache, openssl, and proton
|
||||
* Removed more Sprout-only RPC's (zcbenchmark, zcrawjoinsplit) and code
|
||||
* Various improvements to RPC documentation
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Wed, 08 Apr 2020 12:21:44 -0700
|
||||
|
||||
hush (3.3.1) stable; urgency=low
|
||||
|
||||
* Maintenance release fixes a non-consensus bug in sendmany which prevented
|
||||
it from working.
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Sat, 18 Jan 2020 09:16:21 -0700
|
||||
|
||||
hush (3.3.0) stable; urgency=high
|
||||
|
||||
* New "Sietch" functionality protects against new metadata attacks
|
||||
* New ability to launch Hush Smart Chains with a single command
|
||||
* Fixes CVE-2019-18936 in UniValue dependency: bitcoin/bitcoin#17742
|
||||
* New experimental Shielded Index (-zindex) which keeps track of many stats
|
||||
seen via the new getchaintxstats RPC including shielded payments,
|
||||
anonymity set size and many other things.
|
||||
* New experimental z_listnullifiers RPC which returns Sapling nullifiers.
|
||||
* Updates + fixes to all CryptoConditions smart contracts from KMD 0.5.0
|
||||
* Updates NSPV/Superlite code from KMD 0.5.0
|
||||
* Update 3rd party KMD Notary node pubkeys moving Hush from a run-time
|
||||
fork of KMD to a source code fork
|
||||
* Enable creation of z-only (like Pirate) Hush Smart Chains via -ac_private=1
|
||||
* Removed more Sprout-specific code, making hushd faster & easier to maintain
|
||||
* Allow hush-cli stop to be run during RPC warmup
|
||||
* Update to libsodium 1.0.18
|
||||
* Removes VerusHash from the source code
|
||||
* Removed large amounts of Proof-of-Stake-related code not used in Hush
|
||||
* Ported AFL fuzzing features to our build system from Zcash
|
||||
* Changed max debug.log size from 10MB to 100MB
|
||||
* Added checkpoints for every 1000th Hush block
|
||||
* New contrib/checkpoints.pl script to automatically generate checkpoints
|
||||
* Deleted QT wallet code inherited from Bitcoin, which was old and broken
|
||||
* z_exportwallet can now optionally not rescan
|
||||
* New SHA256 SSE4 routines ported from KMD (which was ported from BTC),
|
||||
enabled with --enable-experimental-asm=yes
|
||||
* debug.log no longer containts a log2_stake column
|
||||
* New --hardfork-height CLI option for devs+notaries for testing
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Fri, 03 Jan 2020 10:13:17 -0700
|
||||
|
||||
hush (3.2.3) stable; urgency=low
|
||||
|
||||
* Update build dependencies to use own forks of libgmp, libsnark, libsodium
|
||||
* New RPC keys are now returned in getblockchaininfo : longestchain and
|
||||
notarized which are now used by the SDL backend
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Sat, 14 Dec 2019 04:59:59 -0700
|
||||
|
||||
hush (3.2.2) stable; urgency=medium
|
||||
|
||||
* Fix CVE-2017-18350 from ZEC and windows portability fix from KMD upstream
|
||||
* Removed some Sprout code
|
||||
* Fixed some rare edge case bugs in Sapling param finding code
|
||||
* New detection of "corrupt" Sapling params (invalid sizes) to helps give
|
||||
users the correct error in a GUI wallet (corrupt versus no params)
|
||||
* Fix Sapling params to support Mac DMGs being installed to /Applications
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Tue, 26 Nov 2019 12:17:17 -0700
|
||||
|
||||
hush (3.2.1) stable; urgency=low
|
||||
|
||||
* Fixes issues discovered in Hush 3.2.0
|
||||
* New DEVELOPING.md document for advice working on Hush codebase
|
||||
* Updated to latest upstream SuperLite/nSPV features
|
||||
* Merged in latest cryptocondition/Antara module updates from KMD upstream
|
||||
* Fixed a bug that corrupts the block index on second startup
|
||||
* Improved code to locate installed Sapling params, since Debian packages
|
||||
install them into /usr/share/hush
|
||||
* Updated DNSSeeds
|
||||
* Fix fees associated with transactions in the mempool with fSkipExpiry=0
|
||||
|
||||
-- Hush Core <myhushteam@gmail.com> Tue, 29 Oct 2019 22:34:35 -0700
|
||||
|
||||
hush (3.2.0) stable; urgency=medium
|
||||
|
||||
* 3.2.0.1 release.
|
||||
|
||||
@@ -13,4 +13,6 @@ Vcs-Browser: https://git.hush.is/hush/hush3
|
||||
Package: hush
|
||||
Architecture: amd64 arm64
|
||||
Depends: ${shlibs:Depends}
|
||||
Description: Hush cryptocoin full node. Speak And Transact Freely. Hush inherits from Bitcoin Protocol and Zcash Protocol and is focused on private communications.
|
||||
Description: Cryptocoin full node for Hush
|
||||
Speak And Transact Freely with Hush, which inherits from Bitcoin Protocol and
|
||||
Zcash Protocol and is focused on private communications.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Files: *
|
||||
Copyright: 2016-2020, The Hush developers
|
||||
Copyright: 2016-2024, The Hush developers
|
||||
2009-2016, Bitcoin Core developers
|
||||
License: GPLv3
|
||||
Comment: https://hush.is
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
# node1.hush.land
|
||||
91.208.127.81
|
||||
103.69.128.148
|
||||
|
||||
# node2.hush.land
|
||||
87.251.76.166
|
||||
194.29.100.208
|
||||
|
||||
# node3.hush.land
|
||||
45.82.68.233
|
||||
45.132.75.69
|
||||
|
||||
# node4.hush.land
|
||||
87.251.76.33
|
||||
170.205.39.39
|
||||
|
||||
# node5.hush.land
|
||||
178.250.189.141
|
||||
@@ -28,8 +28,11 @@ hushv3h6mbxd2pptj42reko3jcexcgnz5zvp3mqcu6myto3jhhn4yzyd.onion
|
||||
hushv3xvheqh42ms3ld2nh555muscietkib7gycb7s4psbrjsysfywqd.onion
|
||||
|
||||
# ipv6
|
||||
2a0c:b641:6f1:34::2
|
||||
2a0c:b641:6f1:c::2
|
||||
2a0c:b641:6f1:18e::2
|
||||
2406:ef80:3:1269::1
|
||||
2406:ef80:2:3b59::1
|
||||
2406:ef80:1:146e::1
|
||||
2406:ef80:4:2132::1
|
||||
|
||||
# i2p
|
||||
7oumuppuzgbzlkahavx7qrtjnvbhkixjqdmeg7f6fhndgfhz7mlq.b32.i2p
|
||||
|
||||
24
debug-build.sh
Executable file
24
debug-build.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (c) 2016-2024 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
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
echo "Compiling a debug build with --enable-debug..."
|
||||
|
||||
# run correct build script for detected OS
|
||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
# TODO: we only have debug builds on linux for now
|
||||
CONFIGURE_FLAGS=--enable-debug ./util/debug-build.sh --disable-tests $@
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
# code from ./util/build.sh needs to be ported to support --disable-tests
|
||||
#./util/build-mac.sh --disable-tests $@
|
||||
CONFIGURE_FLAGS=--enable-debug ./util/build-mac.sh $@
|
||||
elif [[ "$OSTYPE" == "msys"* ]]; then
|
||||
CONFIGURE_FLAGS=--enable-debug ./util/build-win.sh --disable-tests $@
|
||||
elif [[ "$OSTYPE" == "freebsd"* ]]; then
|
||||
CONFIGURE_FLAGS=--enable-debug ./util/build.sh --disable-tests $@
|
||||
else
|
||||
echo "Unable to detect your OS. What are you using?"
|
||||
fi
|
||||
@@ -13,7 +13,7 @@ define $(package)_preprocess_cmds
|
||||
endef
|
||||
|
||||
define $(package)_set_vars
|
||||
$(package)_config_opts=--disable-shared --disable-openssl --disable-libevent-regress
|
||||
$(package)_config_opts=--disable-shared --disable-openssl --disable-libevent-regress --disable-samples
|
||||
$(package)_config_opts_release=--disable-debug-mode
|
||||
$(package)_config_opts_linux=--with-pic
|
||||
endef
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
package=wolfssl
|
||||
|
||||
ifeq ($(host_os),mingw32)
|
||||
# this is the highest version known to compile on windows
|
||||
$(package)_version=4.8.1
|
||||
$(package)_file_name=wolfssl-$($(package)_version).tar.gz
|
||||
$(package)_sha256_hash=50db45f348f47e00c93dd244c24108220120cb3cc9d01434789229c32937c444
|
||||
else
|
||||
$(package)_version=5.2.0
|
||||
# BEWARE: Updating this version could cause weird bugs where nodes
|
||||
# hang after a few days or do not respond to the "stop" RPC . 5.2.0
|
||||
# definitely has problems, versions between 4.8.1 and 5.2.0 have not
|
||||
# been tested yet. Make sure to do extensive testing when changing this
|
||||
# package version
|
||||
$(package)_version=4.8.1
|
||||
$(package)_file_name=wolfssl-$($(package)_version).tar.gz
|
||||
$(package)_sha256_hash=409b4646c5f54f642de0e9f3544c3b83de7238134f5b1ff93fb44527bf119d05
|
||||
$(package)_sha256_hash=50db45f348f47e00c93dd244c24108220120cb3cc9d01434789229c32937c444
|
||||
endif
|
||||
|
||||
$(package)_download_path=https://github.com/wolfSSL/wolfssl/archive
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
BIPs that are implemented by Hush (up-to-date up to **v1.1.0**):
|
||||
|
||||
* Numerous historic BIPs were present in **v1.0.0** at launch; see [the protocol spec](https://github.com/zcash/zips/blob/master/protocol/protocol.pdf) for details.
|
||||
* [`BIP 111`](https://github.com/bitcoin/bips/blob/master/bip-0111.mediawiki): `NODE_BLOOM` service bit added, but only enforced for peer versions `>=170004` as of **v1.1.0** ([PR #2814](https://github.com/zcash/zcash/pull/2814)).
|
||||
@@ -1,10 +1,10 @@
|
||||
# Hush Smart Chains
|
||||
# Hush Arrakis Chains
|
||||
|
||||
An overview of HSCs can be found here:
|
||||
|
||||
https://git.hush.is/hush/hush-smart-chains
|
||||
|
||||
Hush Smart Chains allow you to create a privacy coin with no custom C++ code, just running one command!
|
||||
Hush Arrakis Chains allow you to create a privacy coin with no custom C++ code, just running one command!
|
||||
The new coin that is created can use either Equihash PoW (ASIC or GPU) or RandomX PoW (CPU).
|
||||
|
||||
## HSC Creator
|
||||
@@ -13,7 +13,7 @@ https://git.hush.is/hush/hsc-creator with its site https://hush.is/hsc-creator
|
||||
|
||||
## HSC HOWTO
|
||||
|
||||
https://git.hush.is/onryo/hush-smart-chain-how-to
|
||||
https://git.hush.is/onryo/hush-arrakis-chain-how-to
|
||||
|
||||
## HSC CLI
|
||||
|
||||
|
||||
BIN
doc/hush/earnhush.png
Normal file
BIN
doc/hush/earnhush.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
BIN
doc/hush/hush0.png
Normal file
BIN
doc/hush/hush0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@@ -1,9 +1,9 @@
|
||||
# RandomX
|
||||
|
||||
Hush Smart Chains support using RandomX as a Proof-Of-Work algorithm as of release 3.9.2 .
|
||||
Hush Arrakis Chains support using RandomX as a Proof-Of-Work algorithm as of release 3.9.2 .
|
||||
This means you can now launch a privacy coin with Hush tech that can be mined with a CPU
|
||||
instead of requiring an ASIC or GPU. RandomX is the same algorithm that Monero (XMR) and
|
||||
various other cryptocoins use. As far as we know, Hush Smart Chains are the first coins
|
||||
various other cryptocoins use. As far as we know, Hush Arrakis Chains are the first coins
|
||||
based on Zcash Protocol that can use the RandomX PoW algorithm. Many thanks to all the
|
||||
people who helped make this possible.
|
||||
|
||||
@@ -13,12 +13,12 @@ The following command can be used to launch an HSC on a single computer. Each op
|
||||
HSC CLI arguments that start with `-ac_` means they *Affect Consensus*.
|
||||
|
||||
```
|
||||
./src/hush-smart-chain -ac_halving=100 -ac_algo=randomx -ac_name=RANDOMX -ac_private=1 -ac_blocktime=15 -ac_reward=500000000 -ac_supply=55555 -gen=1 -genproclimit=1 -testnode=1
|
||||
./src/hush-arrakis-chain -ac_halving=100 -ac_algo=randomx -ac_name=RANDOMX -ac_private=1 -ac_blocktime=15 -ac_reward=500000000 -ac_supply=55555 -gen=1 -genproclimit=1 -testnode=1
|
||||
```
|
||||
|
||||
* `hush-smart-chain` is the script used to launch or connect to HSCs
|
||||
* `hush-arrakis-chain` is the script used to launch or connect to HSCs
|
||||
* It lives in the `./src` directory, next to `hushd` and `hush-cli`
|
||||
* It is called `hush-smart-chain.bat` on Windows
|
||||
* It is called `hush-arrakis-chain.bat` on Windows
|
||||
* `-ac_halving=100` means "the block reward halves every 100 blocks"
|
||||
* `-ac_algo=randomx` means "use RandomX for Proof-Of-Work
|
||||
* The default is Equihash (200,9)
|
||||
@@ -41,12 +41,12 @@ HSC CLI arguments that start with `-ac_` means they *Affect Consensus*.
|
||||
* One node would use
|
||||
```
|
||||
# first node
|
||||
./src/hush-smart-chain -ac_halving=100 -ac_algo=randomx -ac_name=RANDOMX -ac_private=1 -ac_blocktime=15 -ac_reward=500000000 -ac_supply=55555
|
||||
./src/hush-arrakis-chain -ac_halving=100 -ac_algo=randomx -ac_name=RANDOMX -ac_private=1 -ac_blocktime=15 -ac_reward=500000000 -ac_supply=55555
|
||||
```
|
||||
* And the second node would use:
|
||||
```
|
||||
# mining node. NOTE: This node will mine the genesis block and pre-mine, if any
|
||||
./src/hush-smart-chain -ac_halving=100 -ac_algo=randomx -ac_name=RANDOMX -ac_private=1 -ac_blocktime=15 -ac_reward=500000000 -ac_supply=55555 -gen=1 -genproclimit=1
|
||||
./src/hush-arrakis-chain -ac_halving=100 -ac_algo=randomx -ac_name=RANDOMX -ac_private=1 -ac_blocktime=15 -ac_reward=500000000 -ac_supply=55555 -gen=1 -genproclimit=1
|
||||
```
|
||||
|
||||
# Advanced Options
|
||||
@@ -67,7 +67,7 @@ HUSH RandomX currently has two advanced options that some may want to use:
|
||||
|
||||
This section is not required reading if you just want to use it as a PoW algorithm for an HSC. Here we will explain how the internals of RandomX works inside of the Hush codebase.
|
||||
|
||||
We use the official RandomX implementation from https://github.com/tevador/RandomX with custom configuration options. If some type of hardware is created to mine the XMR RandomX algorithm, it will not be compatible with the Hush RandomX algorithm. This is by design. All Hush Smart Chains use the same RandomX config options, so if a hardware device is created to mine one HSC that uses RandomX, it can be used to mine any HSC using RandomX. Every HSC with unique consensus parameters will start off with it's own unique key block with at least 9 bytes of entropy.
|
||||
We use the official RandomX implementation from https://github.com/tevador/RandomX with custom configuration options. If some type of hardware is created to mine the XMR RandomX algorithm, it will not be compatible with the Hush RandomX algorithm. This is by design. All Hush Arrakis Chains use the same RandomX config options, so if a hardware device is created to mine one HSC that uses RandomX, it can be used to mine any HSC using RandomX. Every HSC with unique consensus parameters will start off with it's own unique key block with at least 9 bytes of entropy.
|
||||
|
||||
The source code of RandomX is embedded in the Hush source code at `./src/RandomX` and the configuration options used are at `./src/RandomX/src/configuration.h` .
|
||||
|
||||
|
||||
@@ -111,20 +111,24 @@ Install deps on Linux:
|
||||
- Make sure git tag starts with a `v` such as `v3.9.2`
|
||||
- Use util/gen-linux-binary-release.sh to make a Linux release binary
|
||||
- Upload Linux binary to Gitea release and add SHA256 sum
|
||||
- Use util/build-debian-package.sh to make an x86 Debian package for the release
|
||||
- Create an x86 Debian package for the release:
|
||||
- Edit contrib/debian/changelog to add information about the new release
|
||||
- Use `util/build-debian-package.sh` to make an x86 Debian package for the release
|
||||
- Debian packages should be done after you make manpages, because those are included in Debian packages
|
||||
- `lintian` is an optional dependency, it's not needed to build the .deb
|
||||
- Upload .deb to Gitea release
|
||||
- Add SHA256 checksum of .deb to release
|
||||
- Use util/build-debian-package-ARM.sh (does this still work?) to make an ARM Debian package for the release
|
||||
- Upload the debian packages to the Gitea release page, with SHA256 sums
|
||||
- Figure out how to update https://faq.hush.is/rpc/ for new release
|
||||
- Update the rpc.hush.is repo for new release by [following these instructions](https://git.hush.is/hush/rpc.hush.is/src/branch/master/README.md)
|
||||
- Update https://faq.hush.is/rpc/ for new release after updating the rpc.hush.is repo
|
||||
|
||||
## Platform-specific notes
|
||||
|
||||
Use `./util/build-mac.sh` to compile on Apple/Mac systems, use `./util/build-win.sh` to build on Windows and `./util/build-arm.sh` to build on ARMv8 systems.
|
||||
|
||||
Use `./util/build-debian-package.sh aarch64` to build a Debian package for aarch64 .
|
||||
- Use `./util/build-mac.sh` to compile on Apple/Mac systems
|
||||
- Use `./util/build-win.sh` to build on Windows
|
||||
- Use [these cross compile instructions](https://git.hush.is/jahway603/hush-docs/src/branch/master/advanced/cross-compile-hush-full-node-to-aarch64-with-docker.md) to build the release for ARMv8 (aarch64) systems, as the current build system does not permit us to natively build this on the SBC device
|
||||
- Then use `./util/build-debian-package.sh aarch64` to build a Debian package for ARMv8 (aarch64)
|
||||
|
||||
## Optional things
|
||||
|
||||
|
||||
@@ -10,6 +10,23 @@ 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.
|
||||
|
||||
# Hush 3.10.3 "Persistent Pezoporus"
|
||||
|
||||
* Use WolfSSL 4.8.1 which prevents nodes from getting stuck in general 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.
|
||||
* Fixed various bugs relating to lock ordering and missing locks
|
||||
* Fixed RPC docs for addnode and disconnectnode having the 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
|
||||
* Fixed off-by-one bug in `newSietchRecipient`
|
||||
* Performance improvement to `ActivateBestChainStep` https://git.hush.is/hush/hush3/commit/ed86f2dd1da370fe2dbf7db475afc41b218cbc5f
|
||||
* Improved navigation in README for new users.
|
||||
* Updated doc/release-process.md to resolve Issue #407
|
||||
* Added build.sh checks for as and ld to be installed to resolve Issue #73
|
||||
|
||||
# Hush 3.10.2 "Fiendish Fenrir"
|
||||
|
||||
* RandomX mining is faster for various reasons
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
#!/usr/usr/bin/env bash
|
||||
# Copyright (c) 2016-2024 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
|
||||
# This script makes the neccesary transactions to migrate
|
||||
# coin between 2 assetchains on the same -ac_cc id
|
||||
set -e
|
||||
source=DERPZ
|
||||
target=DERPZ000
|
||||
address="Rxxx"
|
||||
amount=1
|
||||
|
||||
# Alias for running cli on source chain
|
||||
cli_source="hush-cli -ac_name=$source"
|
||||
|
||||
# Raw tx that we will work with
|
||||
txraw=`$cli_source createrawtransaction "[]" "{\"$address\":$amount}"`
|
||||
|
||||
# Convert to an export tx
|
||||
exportData=`$cli_source migrate_converttoexport $txraw $target $amount`
|
||||
exportRaw=`echo $exportData | jq -r .exportTx`
|
||||
exportPayouts=`echo $exportData | jq -r .payouts`
|
||||
|
||||
# Fund
|
||||
exportFundedData=`$cli_source fundrawtransaction $exportRaw`
|
||||
exportFundedTx=`echo $exportFundedData | jq -r .hex`
|
||||
|
||||
# Sign
|
||||
exportSignedData=`$cli_source signrawtransaction $exportFundedTx`
|
||||
exportSignedTx=`echo $exportSignedData | jq -r .hex`
|
||||
|
||||
# Send
|
||||
echo "Sending export tx"
|
||||
$cli_source sendrawtransaction $exportSignedTx
|
||||
|
||||
read -p "Wait for a notarization to HUSH, and then two more notarizations from the target chain, and then press enter to continue"
|
||||
|
||||
# Create import
|
||||
importTx=`$cli_source migrate_createimporttransaction $exportSignedTx $payouts`
|
||||
importTx=`hush-cli migrate_completeimporttransaction $importTx`
|
||||
|
||||
# Send import
|
||||
hush-cli -ac_name=$target sendrawtransaction $importTx
|
||||
@@ -162,10 +162,10 @@ class ComparisonTestFramework(BitcoinTestFramework):
|
||||
|
||||
def add_options(self, parser):
|
||||
parser.add_option("--testbinary", dest="testbinary",
|
||||
default=os.getenv("BITCOIND", "hush-smart-chain"),
|
||||
default=os.getenv("BITCOIND", "hush-arrakis-chain"),
|
||||
help="bitcoind binary to test")
|
||||
parser.add_option("--refbinary", dest="refbinary",
|
||||
default=os.getenv("BITCOIND", "hush-smart-chain"),
|
||||
default=os.getenv("BITCOIND", "hush-arrakis-chain"),
|
||||
help="bitcoind binary to use for reference nodes (if any)")
|
||||
|
||||
def setup_chain(self):
|
||||
|
||||
@@ -251,7 +251,7 @@ LIBHUSH_H = \
|
||||
|
||||
obj/build.h: FORCE
|
||||
@$(MKDIR_P) $(builddir)/obj
|
||||
@$(top_srcdir)/share/genbuild.sh $(abs_top_builddir)/src/obj/build.h \
|
||||
@$(top_srcdir)/util/genbuild.sh $(abs_top_builddir)/src/obj/build.h \
|
||||
$(abs_top_srcdir)
|
||||
libbitcoin_util_a-clientversion.$(OBJEXT): obj/build.h
|
||||
|
||||
|
||||
@@ -74,19 +74,6 @@ void WaitForShutdown(boost::thread_group* threadGroup)
|
||||
|
||||
while (!fShutdown)
|
||||
{
|
||||
//fprintf(stderr,"call passport iteration\n");
|
||||
if ( SMART_CHAIN_SYMBOL[0] == 0 )
|
||||
{
|
||||
if ( HUSH_NSPV_FULLNODE )
|
||||
hush_passport_iteration();
|
||||
for (i=0; i<10; i++)
|
||||
{
|
||||
fShutdown = ShutdownRequested();
|
||||
if ( fShutdown != 0 )
|
||||
break;
|
||||
MilliSleep(1000);
|
||||
}
|
||||
} else {
|
||||
//hush_longestchain();
|
||||
if ( ASSETCHAINS_CBOPRET != 0 )
|
||||
hush_cbopretupdate(0);
|
||||
@@ -97,7 +84,7 @@ void WaitForShutdown(boost::thread_group* threadGroup)
|
||||
break;
|
||||
MilliSleep(1000);
|
||||
}
|
||||
}
|
||||
|
||||
fShutdown = ShutdownRequested();
|
||||
}
|
||||
//fprintf(stderr,"%s: fShutdown=%d\n", __FUNCTION__, fShutdown);
|
||||
|
||||
@@ -19,11 +19,6 @@
|
||||
#include "key_io.h"
|
||||
#include "CCinclude.h"
|
||||
|
||||
int32_t CClib_initcp(struct CCcontract_info *cp,uint8_t evalcode)
|
||||
{
|
||||
return(-1);
|
||||
}
|
||||
|
||||
struct CCcontract_info *CCinit(struct CCcontract_info *cp, uint8_t evalcode)
|
||||
{
|
||||
return(cp);
|
||||
|
||||
@@ -216,7 +216,6 @@ int32_t CCgetspenttxid(uint256 &spenttxid,int32_t &vini,int32_t &height,uint256
|
||||
|
||||
/// @private
|
||||
UniValue CClib(struct CCcontract_info *cp,char *method,char *jsonstr);
|
||||
UniValue CClib_info(struct CCcontract_info *cp);
|
||||
|
||||
static const uint256 zeroid; //!< null uint256 constant
|
||||
|
||||
@@ -430,67 +429,6 @@ void CCaddr3set(struct CCcontract_info *cp,uint8_t evalcode,CPubKey pk,uint8_t *
|
||||
/// @see GetCCaddress1of2
|
||||
void CCaddr1of2set(struct CCcontract_info *cp, CPubKey pk1, CPubKey pk2,uint8_t *priv,char *coinaddr);
|
||||
|
||||
/// Creates a token transaction output with a cryptocondition that allows to spend it by one key.
|
||||
/// The resulting vout will have two eval codes (EVAL_TOKENS and evalcode parameter value).
|
||||
/// The returned output should be added to a transaction vout array.
|
||||
/// @param evalcode cryptocondition eval code (transactions with this eval code in cc inputs will be forwarded to the contract associated with this eval code)
|
||||
/// @param nValue value of the output in satoshi
|
||||
/// @param pk pubkey to spend the cc
|
||||
/// @returns vout object
|
||||
/// @see CCinit
|
||||
/// @see CCcontract_info
|
||||
CTxOut MakeTokensCC1vout(uint8_t evalcode, CAmount nValue, CPubKey pk);
|
||||
|
||||
/// Another MakeTokensCC1vout overloaded function that creates a token transaction output with a cryptocondition with two eval codes that allows to spend it by one key.
|
||||
/// Resulting vout will have three eval codes (EVAL_TOKENS, evalcode and evalcode2 parameter values).
|
||||
/// The returned output should be added to a transaction vout array.
|
||||
/// @param evalcode cryptocondition eval code (transactions with this eval code in cc inputs will be forwarded to the contract associated with this eval code)
|
||||
/// @param evalcode2 yet another cryptocondition eval code (transactions with this eval code in cc inputs will be forwarded to the contract associated with this eval code)
|
||||
/// @param nValue value of the output in satoshi
|
||||
/// @param pk pubkey to spend the cc
|
||||
/// @returns vout object
|
||||
/// @see CCinit
|
||||
/// @see CCcontract_info
|
||||
CTxOut MakeTokensCC1vout(uint8_t evalcode, uint8_t evalcode2, CAmount nValue, CPubKey pk);
|
||||
|
||||
/// MakeTokensCC1of2vout creates a token transaction output with a 1of2 cryptocondition that allows to spend it by either of two keys.
|
||||
/// The resulting vout will have two eval codes (EVAL_TOKENS and evalcode parameter value).
|
||||
/// The returned output should be added to a transaction vout array.
|
||||
/// @param evalcode cryptocondition eval code (transactions with this eval code in cc inputs will be forwarded to the contract associated with this eval code)
|
||||
/// @param nValue value of the output in satoshi
|
||||
/// @param pk1 one of two pubkeys to spend the cc
|
||||
/// @param pk2 second of two pubkeys to spend the cc
|
||||
/// @returns vout object
|
||||
/// @see CCinit
|
||||
/// @see CCcontract_info
|
||||
CTxOut MakeTokensCC1of2vout(uint8_t evalcode, CAmount nValue, CPubKey pk1, CPubKey pk2);
|
||||
|
||||
/// Another overload of MakeTokensCC1of2vout creates a token transaction output with a 1of2 cryptocondition with two eval codes that allows to spend it by either of two keys.
|
||||
/// The resulting vout will have three eval codes (EVAL_TOKENS, evalcode and evalcode2 parameter values).
|
||||
/// The returned output should be added to a transaction vout array.
|
||||
/// @param evalcode cryptocondition eval code (transactions with this eval code in cc inputs will be forwarded to the contract associated with this eval code)
|
||||
/// @param evalcode2 yet another cryptocondition eval code (transactions with this eval code in cc inputs will be forwarded to the contract associated with this eval code)
|
||||
/// @param nValue value of the output in satoshi
|
||||
/// @param pk1 one of two pubkeys to spend the cc
|
||||
/// @param pk2 second of two pubkeys to spend the cc
|
||||
/// @returns vout object
|
||||
/// @see CCinit
|
||||
/// @see CCcontract_info
|
||||
CTxOut MakeTokensCC1of2vout(uint8_t evalcode, uint8_t evalcode2, CAmount nValue, CPubKey pk1, CPubKey pk2);
|
||||
|
||||
/// Gets adddress for token cryptocondition vout
|
||||
/// @param cp CCcontract_info structure initialized with EVAL_TOKENS eval code
|
||||
/// @param[out] destaddr retrieved address
|
||||
/// @param pk public key to create the cryptocondition
|
||||
bool GetTokensCCaddress(struct CCcontract_info *cp, char *destaddr, CPubKey pk);
|
||||
|
||||
/// Gets adddress for token 1of2 cc vout
|
||||
/// @param cp CCcontract_info structure initialized with EVAL_TOKENS eval code
|
||||
/// @param[out] destaddr retrieved address
|
||||
/// @param pk first public key to create the cryptocondition
|
||||
/// @param pk2 second public key to create the cryptocondition
|
||||
bool GetTokensCCaddress1of2(struct CCcontract_info *cp, char *destaddr, CPubKey pk, CPubKey pk2);
|
||||
|
||||
/// 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
|
||||
@@ -501,9 +439,6 @@ bool GetTokensCCaddress1of2(struct CCcontract_info *cp, char *destaddr, CPubKey
|
||||
/// @see CCcontract_info
|
||||
void CCaddrTokens1of2set(struct CCcontract_info *cp, CPubKey pk1, CPubKey pk2, uint8_t *priv, char *coinaddr);
|
||||
|
||||
/// @private
|
||||
int32_t CClib_initcp(struct CCcontract_info *cp,uint8_t evalcode);
|
||||
|
||||
/// IsCCInput checks if scriptSig object contains a cryptocondition
|
||||
/// @param scriptSig scriptSig object with a cryptocondition
|
||||
/// @returns true if the scriptSig object contains a cryptocondition
|
||||
@@ -563,11 +498,6 @@ bool GetCustomscriptaddress(char *destaddr,const CScript &scriptPubKey,uint8_t t
|
||||
/// @returns public key as byte array
|
||||
std::vector<uint8_t> Mypubkey();
|
||||
|
||||
/// Returns my private key, that is private key for the my pubkey
|
||||
/// @returns private key as byte array
|
||||
/// @see Mypubkey
|
||||
bool Myprivkey(uint8_t myprivkey[]);
|
||||
|
||||
/// @private
|
||||
uint256 BitcoinGetProofMerkleRoot(const std::vector<uint8_t> &proofData, std::vector<uint256> &txids);
|
||||
|
||||
|
||||
@@ -102,34 +102,18 @@ uint32_t GetLatestTimestamp(int32_t height)
|
||||
|
||||
void CCaddr2set(struct CCcontract_info *cp,uint8_t evalcode,CPubKey pk,uint8_t *priv,char *coinaddr)
|
||||
{
|
||||
cp->unspendableEvalcode2 = evalcode;
|
||||
cp->unspendablepk2 = pk;
|
||||
memcpy(cp->unspendablepriv2,priv,32);
|
||||
strcpy(cp->unspendableaddr2,coinaddr);
|
||||
}
|
||||
|
||||
void CCaddr3set(struct CCcontract_info *cp,uint8_t evalcode,CPubKey pk,uint8_t *priv,char *coinaddr)
|
||||
{
|
||||
cp->unspendableEvalcode3 = evalcode;
|
||||
cp->unspendablepk3 = pk;
|
||||
memcpy(cp->unspendablepriv3,priv,32);
|
||||
strcpy(cp->unspendableaddr3,coinaddr);
|
||||
}
|
||||
|
||||
void CCaddr1of2set(struct CCcontract_info *cp, CPubKey pk1, CPubKey pk2, uint8_t *priv, char *coinaddr)
|
||||
{
|
||||
cp->coins1of2pk[0] = pk1;
|
||||
cp->coins1of2pk[1] = pk2;
|
||||
memcpy(cp->coins1of2priv,priv,32);
|
||||
strcpy(cp->coins1of2addr,coinaddr);
|
||||
}
|
||||
|
||||
void CCaddrTokens1of2set(struct CCcontract_info *cp, CPubKey pk1, CPubKey pk2, uint8_t *priv, char *tokenaddr)
|
||||
{
|
||||
cp->tokens1of2pk[0] = pk1;
|
||||
cp->tokens1of2pk[1] = pk2;
|
||||
memcpy(cp->tokens1of2priv,priv,32);
|
||||
strcpy(cp->tokens1of2addr, tokenaddr);
|
||||
}
|
||||
|
||||
bool Getscriptaddress(char *destaddr,const CScript &scriptPubKey)
|
||||
@@ -150,13 +134,6 @@ bool Getscriptaddress(char *destaddr,const CScript &scriptPubKey)
|
||||
|
||||
bool GetCustomscriptaddress(char *destaddr,const CScript &scriptPubKey,uint8_t taddr,uint8_t prefix, uint8_t prefix2)
|
||||
{
|
||||
CTxDestination address; txnouttype whichType;
|
||||
if ( ExtractDestination(scriptPubKey,address) != 0 )
|
||||
{
|
||||
strcpy(destaddr,(char *)CCustomBitcoinAddress(address,taddr,prefix,prefix2).ToString().c_str());
|
||||
return(true);
|
||||
}
|
||||
//fprintf(stderr,"ExtractDestination failed\n");
|
||||
return(false);
|
||||
}
|
||||
|
||||
@@ -170,23 +147,7 @@ bool pubkey2addr(char *destaddr,uint8_t *pubkey33)
|
||||
|
||||
bool ConstrainVout(CTxOut vout, int32_t CCflag, char *cmpaddr, int64_t nValue)
|
||||
{
|
||||
char destaddr[64];
|
||||
if ( vout.scriptPubKey.IsPayToCryptoCondition() != CCflag )
|
||||
{
|
||||
fprintf(stderr,"constrain vout error isCC %d vs %d CCflag\n", vout.scriptPubKey.IsPayToCryptoCondition(), CCflag);
|
||||
return(false);
|
||||
}
|
||||
else if ( cmpaddr != 0 && (Getscriptaddress(destaddr, vout.scriptPubKey) == 0 || strcmp(destaddr, cmpaddr) != 0) )
|
||||
{
|
||||
fprintf(stderr,"constrain vout error: check addr %s vs script addr %s\n", cmpaddr!=0?cmpaddr:"", destaddr!=0?destaddr:"");
|
||||
return(false);
|
||||
}
|
||||
else if ( nValue != 0 && nValue != vout.nValue ) //(nValue == 0 && vout.nValue < 10000) || (
|
||||
{
|
||||
fprintf(stderr,"constrain vout error nValue %.8f vs %.8f\n",(double)nValue/COIN,(double)vout.nValue/COIN);
|
||||
return(false);
|
||||
}
|
||||
else return(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool priv2addr(char *coinaddr,uint8_t *buf33,uint8_t priv32[32])
|
||||
@@ -219,60 +180,6 @@ extern char NSPV_wifstr[],NSPV_pubkeystr[];
|
||||
extern uint32_t NSPV_logintime;
|
||||
#define NSPV_AUTOLOGOUT 777
|
||||
|
||||
bool Myprivkey(uint8_t myprivkey[])
|
||||
{
|
||||
char coinaddr[64],checkaddr[64]; std::string strAddress; char *dest; int32_t i,n; CBitcoinAddress address; CKeyID keyID; CKey vchSecret; uint8_t buf33[33];
|
||||
if ( HUSH_NSPV_SUPERLITE )
|
||||
{
|
||||
if ( NSPV_logintime == 0 || time(NULL) > NSPV_logintime+NSPV_AUTOLOGOUT )
|
||||
{
|
||||
fprintf(stderr,"need to be logged in to get myprivkey\n");
|
||||
return false;
|
||||
}
|
||||
vchSecret = DecodeSecret(NSPV_wifstr);
|
||||
memcpy(myprivkey,vchSecret.begin(),32);
|
||||
//for (i=0; i<32; i++)
|
||||
// fprintf(stderr,"%02x",myprivkey[i]);
|
||||
//fprintf(stderr," myprivkey %s\n",NSPV_wifstr);
|
||||
memset((uint8_t *)vchSecret.begin(),0,32);
|
||||
return true;
|
||||
}
|
||||
if ( Getscriptaddress(coinaddr,CScript() << Mypubkey() << OP_CHECKSIG) != 0 )
|
||||
{
|
||||
n = (int32_t)strlen(coinaddr);
|
||||
strAddress.resize(n+1);
|
||||
dest = (char *)strAddress.data();
|
||||
for (i=0; i<n; i++)
|
||||
dest[i] = coinaddr[i];
|
||||
dest[i] = 0;
|
||||
if ( address.SetString(strAddress) != 0 && address.GetKeyID(keyID) != 0 )
|
||||
{
|
||||
#ifdef ENABLE_WALLET
|
||||
if ( pwalletMain->GetKey(keyID,vchSecret) != 0 )
|
||||
{
|
||||
memcpy(myprivkey,vchSecret.begin(),32);
|
||||
memset((uint8_t *)vchSecret.begin(),0,32);
|
||||
if ( 0 )
|
||||
{
|
||||
for (i=0; i<32; i++)
|
||||
fprintf(stderr,"0x%02x, ",myprivkey[i]);
|
||||
fprintf(stderr," found privkey for %s!\n",dest);
|
||||
}
|
||||
if ( priv2addr(checkaddr,buf33,myprivkey) != 0 )
|
||||
{
|
||||
if ( buf2pk(buf33) == Mypubkey() && strcmp(checkaddr,coinaddr) == 0 )
|
||||
return(true);
|
||||
else printf("mismatched privkey -> addr %s vs %s\n",checkaddr,coinaddr);
|
||||
}
|
||||
return(false);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
fprintf(stderr,"privkey for the -pubkey= address is not in the wallet, importprivkey!\n");
|
||||
return(false);
|
||||
}
|
||||
|
||||
CPubKey GetUnspendable(struct CCcontract_info *cp,uint8_t *unspendablepriv)
|
||||
{
|
||||
if ( unspendablepriv != 0 )
|
||||
@@ -423,39 +330,13 @@ bool hush_txnotarizedconfirmed(uint256 txid)
|
||||
// returns total of normal inputs signed with this pubkey
|
||||
int64_t TotalPubkeyNormalInputs(const CTransaction &tx, const CPubKey &pubkey)
|
||||
{
|
||||
int64_t total = 0;
|
||||
for (auto vin : tx.vin) {
|
||||
CTransaction vintx;
|
||||
uint256 hashBlock;
|
||||
if (!IsCCInput(vin.scriptSig) && myGetTransaction(vin.prevout.hash, vintx, hashBlock)) {
|
||||
typedef std::vector<unsigned char> valtype;
|
||||
std::vector<valtype> vSolutions;
|
||||
txnouttype whichType;
|
||||
|
||||
if (Solver(vintx.vout[vin.prevout.n].scriptPubKey, whichType, vSolutions)) {
|
||||
switch (whichType) {
|
||||
case TX_PUBKEY:
|
||||
if (pubkey == CPubKey(vSolutions[0])) // is my input?
|
||||
total += vintx.vout[vin.prevout.n].nValue;
|
||||
break;
|
||||
case TX_PUBKEYHASH:
|
||||
if (pubkey.GetID() == CKeyID(uint160(vSolutions[0]))) // is my input?
|
||||
total += vintx.vout[vin.prevout.n].nValue;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return total;
|
||||
return 0;
|
||||
}
|
||||
|
||||
// returns total of CC inputs signed with this pubkey
|
||||
int64_t TotalPubkeyCCInputs(const CTransaction &tx, const CPubKey &pubkey)
|
||||
{
|
||||
int64_t total = 0;
|
||||
return total;
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern struct CCcontract_info CCinfos[0x100];
|
||||
extern std::string MYCCLIBNAME;
|
||||
bool CClib_validate(struct CCcontract_info *cp,int32_t height,Eval *eval,const CTransaction tx,unsigned int nIn);
|
||||
|
||||
@@ -40,70 +40,6 @@ extern std::string MYCCLIBNAME;
|
||||
|
||||
char *CClib_name() { return((char *)MYCCLIBNAME.c_str()); }
|
||||
|
||||
struct CClib_rpcinfo
|
||||
{
|
||||
char *CCname,*method,*help;
|
||||
int32_t numrequiredargs,maxargs;
|
||||
uint8_t funcid,evalcode;
|
||||
}
|
||||
|
||||
CClib_methods[] =
|
||||
{
|
||||
{ (char *)"faucet2", (char *)"fund", (char *)"amount", 1, 1, 'F', EVAL_FAUCET2 },
|
||||
{ (char *)"faucet2", (char *)"get", (char *)"<no args>", 0, 0, 'G', EVAL_FAUCET2 },
|
||||
#ifdef BUILD_CUSTOMCC
|
||||
RPC_FUNCS
|
||||
#endif
|
||||
};
|
||||
|
||||
std::string CClib_rawtxgen(struct CCcontract_info *cp,uint8_t funcid,cJSON *params);
|
||||
|
||||
cJSON *cclib_reparse(int32_t *nump,char *jsonstr) // assumes origparams will be freed by caller
|
||||
{
|
||||
cJSON *params; char *newstr; int32_t i,j;
|
||||
*nump = 0;
|
||||
if ( jsonstr != 0 )
|
||||
{
|
||||
if ( jsonstr[0] == '"' && jsonstr[strlen(jsonstr)-1] == '"' )
|
||||
{
|
||||
jsonstr[strlen(jsonstr)-1] = 0;
|
||||
jsonstr++;
|
||||
}
|
||||
newstr = (char *)malloc(strlen(jsonstr)+1);
|
||||
for (i=j=0; jsonstr[i]!=0; i++)
|
||||
{
|
||||
if ( jsonstr[i] == '%' && jsonstr[i+1] == '2' && jsonstr[i+2] == '2' )
|
||||
{
|
||||
newstr[j++] = '"';
|
||||
i += 2;
|
||||
}
|
||||
else if ( jsonstr[i] == '\'' )
|
||||
newstr[j++] = '"';
|
||||
else newstr[j++] = jsonstr[i];
|
||||
}
|
||||
newstr[j] = 0;
|
||||
params = cJSON_Parse(newstr);
|
||||
if ( 0 && params != 0 )
|
||||
printf("new.(%s) -> %s\n",newstr,jprint(params,0));
|
||||
free(newstr);
|
||||
*nump = cJSON_GetArraySize(params);
|
||||
//free(origparams);
|
||||
} else params = 0;
|
||||
return(params);
|
||||
}
|
||||
|
||||
UniValue CClib_method(struct CCcontract_info *cp,char *method,char *jsonstr)
|
||||
{
|
||||
UniValue result(UniValue::VOBJ);
|
||||
return(result);
|
||||
}
|
||||
|
||||
UniValue CClib_info(struct CCcontract_info *cp)
|
||||
{
|
||||
UniValue result(UniValue::VOBJ);
|
||||
return(result);
|
||||
}
|
||||
|
||||
UniValue CClib(struct CCcontract_info *cp,char *method,char *jsonstr)
|
||||
{
|
||||
UniValue result(UniValue::VOBJ);
|
||||
@@ -120,11 +56,6 @@ bool CClibExactAmounts(struct CCcontract_info *cp,Eval* eval,const CTransaction
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CClib_validate(struct CCcontract_info *cp,int32_t height,Eval *eval,const CTransaction tx,unsigned int nIn)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
int64_t AddCClibInputs(struct CCcontract_info *cp,CMutableTransaction &mtx,CPubKey pk,int64_t total,int32_t maxinputs,char *cmpaddr,int32_t CCflag)
|
||||
{
|
||||
return 0;
|
||||
@@ -135,21 +66,6 @@ int64_t AddCClibtxfee(struct CCcontract_info *cp,CMutableTransaction &mtx,CPubKe
|
||||
return(0);
|
||||
}
|
||||
|
||||
std::string Faucet2Fund(struct CCcontract_info *cp,uint64_t txfee,int64_t funds)
|
||||
{
|
||||
return("");
|
||||
}
|
||||
|
||||
std::string CClib_rawtxgen(struct CCcontract_info *cp,uint8_t funcid,cJSON *params)
|
||||
{
|
||||
return("");
|
||||
}
|
||||
|
||||
UniValue cclib_error(UniValue &result,const char *errorstr)
|
||||
{
|
||||
return(result);
|
||||
}
|
||||
|
||||
uint256 juint256(cJSON *obj)
|
||||
{
|
||||
uint256 tmp; bits256 t = jbits256(obj,0);
|
||||
@@ -157,11 +73,6 @@ uint256 juint256(cJSON *obj)
|
||||
return(revuint256(tmp));
|
||||
}
|
||||
|
||||
int32_t cclib_parsehash(uint8_t *hash32,cJSON *item,int32_t len)
|
||||
{
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
#if BUILD_CUSTOMCC
|
||||
#include "customcc.cpp"
|
||||
|
||||
@@ -1,88 +1,15 @@
|
||||
// Copyright (c) 2016-2024 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
|
||||
/*
|
||||
simple stub custom cc
|
||||
|
||||
Just update the functions in this file, then from ~/hush3/src/cc
|
||||
|
||||
../hush-cli -ac_name=CUSTOM stop
|
||||
./makecustom
|
||||
../hush-smart-chain -ac_name=CUSTOM -ac_cclib=custom -ac_cc=2 ...
|
||||
|
||||
The above will rebuild hushd and get it running again
|
||||
*/
|
||||
|
||||
CScript custom_opret(uint8_t funcid,CPubKey pk)
|
||||
{
|
||||
CScript opret; uint8_t evalcode = EVAL_CUSTOM;
|
||||
opret << OP_RETURN << E_MARSHAL(ss << evalcode << funcid << pk);
|
||||
return(opret);
|
||||
}
|
||||
|
||||
uint8_t custom_opretdecode(CPubKey &pk,CScript scriptPubKey)
|
||||
{
|
||||
std::vector<uint8_t> vopret; uint8_t e,f;
|
||||
GetOpReturnData(scriptPubKey,vopret);
|
||||
if ( vopret.size() > 2 && E_UNMARSHAL(vopret,ss >> e; ss >> f; ss >> pk) != 0 && e == EVAL_CUSTOM )
|
||||
{
|
||||
return(f);
|
||||
}
|
||||
return(0);
|
||||
}
|
||||
|
||||
UniValue custom_rawtxresult(UniValue &result,std::string rawtx,int32_t broadcastflag)
|
||||
{
|
||||
CTransaction tx;
|
||||
if ( rawtx.size() > 0 )
|
||||
{
|
||||
result.push_back(Pair("hex",rawtx));
|
||||
if ( DecodeHexTx(tx,rawtx) != 0 )
|
||||
{
|
||||
if ( broadcastflag != 0 && myAddtomempool(tx) != 0 )
|
||||
RelayTransaction(tx);
|
||||
result.push_back(Pair("txid",tx.GetHash().ToString()));
|
||||
result.push_back(Pair("result","success"));
|
||||
} else result.push_back(Pair("error","decode hex"));
|
||||
} else result.push_back(Pair("error","couldnt finalize CCtx"));
|
||||
return(result);
|
||||
}
|
||||
|
||||
UniValue custom_func0(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
|
||||
{
|
||||
UniValue result(UniValue::VOBJ);
|
||||
result.push_back(Pair("result","success"));
|
||||
result.push_back(Pair("message","just an example of an information returning rpc"));
|
||||
return(result);
|
||||
}
|
||||
|
||||
// send yourself 1 coin to your CC address using normal utxo from your -pubkey
|
||||
|
||||
UniValue custom_func1(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
|
||||
{
|
||||
CMutableTransaction mtx = CreateNewContextualCMutableTransaction(Params().GetConsensus(), hush_nextheight()); std::string rawtx;
|
||||
UniValue result(UniValue::VOBJ); CPubKey mypk; int64_t amount = COIN; int32_t broadcastflag=0;
|
||||
if ( txfee == 0 )
|
||||
txfee = CUSTOM_TXFEE;
|
||||
mypk = pubkey2pk(Mypubkey());
|
||||
if ( AddNormalinputs2(mtx,COIN+txfee,64) >= COIN+txfee ) // add utxo to mtx
|
||||
{
|
||||
// make op_return payload as normal.
|
||||
CScript opret = custom_opret('1',mypk);
|
||||
std::vector<std::vector<unsigned char>> vData = std::vector<std::vector<unsigned char>>();
|
||||
if ( makeCCopret(opret, vData) )
|
||||
{
|
||||
// make vout0 with op_return included as payload.
|
||||
mtx.vout.push_back(MakeCC1vout(cp->evalcode,amount,mypk,&vData));
|
||||
fprintf(stderr, "vout size2.%li\n", mtx.vout.size());
|
||||
rawtx = FinalizeCCTx(0,cp,mtx,mypk,txfee,CScript());
|
||||
return(custom_rawtxresult(result,rawtx,broadcastflag));
|
||||
}
|
||||
}
|
||||
UniValue result(UniValue::VOBJ);
|
||||
return(result);
|
||||
}
|
||||
|
||||
bool custom_validate(struct CCcontract_info *cp,int32_t height,Eval *eval,const CTransaction tx)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,20 +1,6 @@
|
||||
// Copyright (c) 2016-2024 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
|
||||
/*
|
||||
to create a custom libcc.so:
|
||||
|
||||
1. change "func0" and "func1" to method names that fit your custom cc. Of course, you can create more functions by adding another entry to RPC_FUNCS. there is not any practical limit to the number of methods.
|
||||
|
||||
2. For each method make sure there is a UniValue function declaration and CUSTOM_DISPATCH has an if statement checking for it that calls the custom_func
|
||||
|
||||
3. write the actual custom_func0, custom_func1 and custom_validate in customcc.cpp
|
||||
|
||||
4. ./makecustom, which builds cclib.cpp with -DBUILD_CUSTOMCC and puts the libcc.so in ~/hush3/src and rebuilds hushd
|
||||
|
||||
5. launch your chain with -ac_cclib=customcc -ac_cc=2
|
||||
|
||||
*/
|
||||
|
||||
std::string MYCCLIBNAME = (char *)"customcc";
|
||||
|
||||
@@ -27,22 +13,3 @@ std::string MYCCLIBNAME = (char *)"customcc";
|
||||
{ (char *)MYCCNAME, (char *)"func0", (char *)"<parameter help>", 1, 1, '0', EVAL_CUSTOM }, \
|
||||
{ (char *)MYCCNAME, (char *)"func1", (char *)"<no args>", 0, 0, '1', EVAL_CUSTOM },
|
||||
|
||||
bool custom_validate(struct CCcontract_info *cp,int32_t height,Eval *eval,const CTransaction tx);
|
||||
UniValue custom_func0(uint64_t txfee,struct CCcontract_info *cp,cJSON *params);
|
||||
UniValue custom_func1(uint64_t txfee,struct CCcontract_info *cp,cJSON *params);
|
||||
|
||||
#define CUSTOM_DISPATCH \
|
||||
if ( cp->evalcode == EVAL_CUSTOM ) \
|
||||
{ \
|
||||
if ( strcmp(method,"func0") == 0 ) \
|
||||
return(custom_func0(txfee,cp,params)); \
|
||||
else if ( strcmp(method,"func1") == 0 ) \
|
||||
return(custom_func1(txfee,cp,params)); \
|
||||
else \
|
||||
{ \
|
||||
result.push_back(Pair("result","error")); \
|
||||
result.push_back(Pair("error","invalid customcc method")); \
|
||||
result.push_back(Pair("method",method)); \
|
||||
return(result); \
|
||||
} \
|
||||
}
|
||||
|
||||
@@ -339,7 +339,7 @@ cJSON *get_hushcli(char *refcoin,char **retstrp,char *acname,char *method,char *
|
||||
if ( acname[0] != 0 ) {
|
||||
if ( refcoin[0] != 0 && strcmp(refcoin,"HUSH3") != 0 && strcmp(refcoin,acname) != 0 )
|
||||
printf("unexpected: refcoin.(%s) acname.(%s)\n",refcoin,acname);
|
||||
sprintf(cmdstr,"hush-smart-chain -ac_name=%s %s %s %s %s %s %s %s %s > %s\n",acname,method,arg0,arg1,arg2,arg3,arg4,arg5,arg6,fname);
|
||||
sprintf(cmdstr,"hush-arrakis-chain -ac_name=%s %s %s %s %s %s %s %s %s > %s\n",acname,method,arg0,arg1,arg2,arg3,arg4,arg5,arg6,fname);
|
||||
}
|
||||
else if ( strcmp(refcoin,"HUSH3") == 0 )
|
||||
sprintf(cmdstr,"hush-cli %s %s %s %s %s %s %s %s > %s\n",method,arg0,arg1,arg2,arg3,arg4,arg5,arg6,fname);
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "cJSON.c"
|
||||
|
||||
/*
|
||||
NOTE: HUSH nor any Hush Smart Chain has any sprout outputs. This code is kept for historical and educational purposes.
|
||||
NOTE: HUSH nor any Hush Arrakis Chain has any sprout outputs. This code is kept for historical and educational purposes.
|
||||
|
||||
z_migrate: the purpose of z_migrate is to make converting of all sprout outputs into sapling. the usage would be for the user to specify a sapling address and call z_migrate zsaddr, until it returns that there is nothing left to be done.
|
||||
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
char *CClib_name();
|
||||
|
||||
Eval* EVAL_TEST = 0;
|
||||
struct CCcontract_info CCinfos[0x100];
|
||||
extern pthread_mutex_t HUSH_CC_mutex;
|
||||
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ public:
|
||||
consensus.nPowMaxAdjustDown = 32; // 32% adjustment down
|
||||
consensus.nPowMaxAdjustUp = 16; // 16% adjustment up
|
||||
// we are emulating old node behavior at startup, they used 150s
|
||||
consensus.nPowTargetSpacing = 150; // 75; // HUSH is 75 seconds, Hush Smart Chains are 60 seconds by default
|
||||
consensus.nPowTargetSpacing = 150; // 75; // HUSH is 75 seconds, Hush Arrakis Chains are 60 seconds by default
|
||||
consensus.nPowAllowMinDifficultyBlocksAfterHeight = boost::none;
|
||||
// HUSH never had Sprout in our blockchain history, but some internals require *knowing* about Sprout
|
||||
// or it breaks backward compatibility. We do what we can.
|
||||
@@ -492,13 +492,14 @@ void UpdateNetworkUpgradeParameters(Consensus::UpgradeIndex idx, int nActivation
|
||||
|
||||
int32_t MAX_BLOCK_SIZE(int32_t height)
|
||||
{
|
||||
int32_t saplinght = pCurrentParams->consensus.vUpgrades[Consensus::UPGRADE_SAPLING].nActivationHeight;
|
||||
// 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) )
|
||||
{
|
||||
//if ( height <= 0 || (saplinght > 0 && height >= saplinght) )
|
||||
//{
|
||||
return(_MAX_BLOCK_SIZE);
|
||||
}
|
||||
else return(2000000);
|
||||
//}
|
||||
//else return(2000000);
|
||||
}
|
||||
|
||||
// Change the Hush blocktime at run-time(!)
|
||||
@@ -1995,9 +1996,230 @@ void *chainparams_commandline() {
|
||||
(1693000, uint256S("0x000000010dc70ae11c82e34000cd7d1a344bbf9fcf6344b3ac04f3173d1703d0"))
|
||||
(1694000, uint256S("0x000000027e5cb8c5bfd613100811708f7d180b994650d3ca6900a81683d50fa0"))
|
||||
(1695000, uint256S("0x000000014325867b388dc34843b695536eb9185c6782707f1c86edf0b5b89e9d"))
|
||||
,(int64_t) 1709499985, // time of last checkpointed block
|
||||
(int64_t) 2539894, // total txs
|
||||
(double) 1801 // txs in the last day before block 1695599
|
||||
// Generated at 1726148271 via hush3 util/checkpoints.pl by onryo
|
||||
(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"))
|
||||
,(int64_t) 1726139145, // time of last checkpointed block
|
||||
(int64_t) 2777375, // total txs
|
||||
(double) 1226 // txs in the last day before block 1915132
|
||||
};
|
||||
// END HUSH mainnet checkpoint data
|
||||
} else if (strcmp(SMART_CHAIN_SYMBOL,"DRAGONX") == 0) {
|
||||
@@ -3148,9 +3370,471 @@ void *chainparams_commandline() {
|
||||
(1140000, uint256S("0x0000012c87cc87745fe70667c7a2eca8b03dac27a8424b0830c06a18fdf9fc77"))
|
||||
(1141000, uint256S("0x00006bf655db63cb0e89eb631a25d198d80d593cd4d35c8c9de2b62003a8f4f2"))
|
||||
(1142000, uint256S("0x00000949c0348276363e0aabc6895b7a5298ba2ba1f003c2a4a23be5c6d843a7"))
|
||||
,(int64_t) 1709532066, // time of last checkpointed block
|
||||
(int64_t) 1170154, // total txs
|
||||
(double) 2511 // txs in the last day before block 1142288
|
||||
// Generated at 1726147945 via hush3 util/checkpoints.pl by onryo
|
||||
(1143000, uint256S("0x0000559866cc5a14cf418bec8754ac4790dd538fefb17cbfad7ba5d186dc8f31"))
|
||||
(1144000, uint256S("0x00004f970b2fc229ea23e0294ff43e7858e00a6ef2ccad15d48c7b8e5bf9e270"))
|
||||
(1145000, uint256S("0x00000a8c950b018ed9517b58f2559fd4a5a9213dcd552e78ca25b3c76b8456df"))
|
||||
(1146000, uint256S("0x00002be2e2e097c68eb85b60ec0ebbe4e87438a25affd4ed2dc29387d5069ba6"))
|
||||
(1147000, uint256S("0x0000474f086d74c4a20bbb6131bc75aea1bbc2ff5a32f462fae87a2375b85d26"))
|
||||
(1148000, uint256S("0x000054292fe108d54727c31aacf212b6697dc6aed6d14140e75d3982458f6af1"))
|
||||
(1149000, uint256S("0x00004d8a8bc4a47f060fa8903ea8d73528f83873f878516e7554decbbfd1b3c8"))
|
||||
(1150000, uint256S("0x0000383d666b6039ad272fadc0e6375def512cdaa0d958ef03369eb286f7f790"))
|
||||
(1151000, uint256S("0x000011afd8e3a4920090b635cacad14e12c61d9b64b12498dc533bc3ea7a2c07"))
|
||||
(1152000, uint256S("0x00000992f60aa90c6f8f17d9b1e3e22500cb13d254d1a736dd34fd4838ea5dc0"))
|
||||
(1153000, uint256S("0x000027c82a655f31c8614ca71b2ca7913379b735e6800abe41634ca9a778bc49"))
|
||||
(1154000, uint256S("0x00001800e1d84ba053d1cecbf92e02577c06b05f5963c13df01802eab626448f"))
|
||||
(1155000, uint256S("0x00005254625752fad08e9a965f7b8e2c44710250782d307c02a6a97ae011d76a"))
|
||||
(1156000, uint256S("0x000051ee7e11ebb76f6e27e1d4fd206f5527a6dd3ec58e0bbed04f75b6462339"))
|
||||
(1157000, uint256S("0x00002dd6c9a7fd522d5a2c9810da28dc8d456fac65e4faa377f6247f37b08978"))
|
||||
(1158000, uint256S("0x00007ce77f64fbf985fc4e2e90dc6bec6ca17845eb7f9096d7f8e463540dd394"))
|
||||
(1159000, uint256S("0x000029591fa14c002a6befeb3d567ab73be62600f40e337c525eca3412b6c8d9"))
|
||||
(1160000, uint256S("0x000033a737dae6e4c83b3cc5eb9cfab2d69119096dd958a620b3d4d28505461c"))
|
||||
(1161000, uint256S("0x00006f6989a5cae0b1974edc9d9b9eeb028208a285820429f3fa63ed8bc9466a"))
|
||||
(1162000, uint256S("0x00004329014090653fe61bc5760b392730d2d4926228538d322f3c10d5d00fd6"))
|
||||
(1163000, uint256S("0x000050ed4d90504ee338510f3fa404411a6c124561b1d697042b3644101d73df"))
|
||||
(1164000, uint256S("0x00001733edfd42ca5d95d039ff31eb28cdeb72bb6a63a6f797d097bc850cf874"))
|
||||
(1165000, uint256S("0x00006132cc449bcc44ac4cc8077991419558463b936cd2dcd498d7d384de957c"))
|
||||
(1166000, uint256S("0x0000233926a59b4b5b859af2f89159d72fdaf70b4d291bfd28376efb5b1af8b5"))
|
||||
(1167000, uint256S("0x00006cf8e4257f5ac086e112f1bad8e5d119220545ed98dbaf17b6585cc8f8b3"))
|
||||
(1168000, uint256S("0x00005dea4f2ff28f229bf3fb9ab4c8d5aecd79417acaf9c1fe875c223030b228"))
|
||||
(1169000, uint256S("0x000009472a9a906e93ab907a41f5b67466e64d19142ed6889c769b8ec0941603"))
|
||||
(1170000, uint256S("0x000015438fdf9acff1bfb51f49362ae1c1573c278f5048def1dc5b3f6ebb4d46"))
|
||||
(1171000, uint256S("0x00002e38ea63b3e4b6a7cd5d8034f0e3f6fcfe9640c0d5d9ef1ea657788c88be"))
|
||||
(1172000, uint256S("0x00001affe5e20f07596836762c185c83e6a80b1e61f6c3f6b75c19cf78756f7c"))
|
||||
(1173000, uint256S("0x000062ac3dbdcc95b2419b9bb887bfe51b2517fde6e17bfd0d7108a704878c74"))
|
||||
(1174000, uint256S("0x00003efdb7414f360b533f699d4af99a93f1d2752617a21cc2f780b54d8bab6b"))
|
||||
(1175000, uint256S("0x000017520993990f7cab94d7047d745d533252d577479e22fd630dd4df0943b4"))
|
||||
(1176000, uint256S("0x000024bd3f052e52f37d15a9e71729a85c2f06adbb99cb38e95f48ab658aa331"))
|
||||
(1177000, uint256S("0x00004a741fdc39082def272557e0cb43996b917707190b8203dbd8d98df6502c"))
|
||||
(1178000, uint256S("0x0000123fab19710ddc712ff96a8fa813a4b8ce174dc6a4015f63957cac36e276"))
|
||||
(1179000, uint256S("0x000007e82b343a8b76a0964206a34f5cb0c5765f7b02fe4c538b2a45b36d9b09"))
|
||||
(1180000, uint256S("0x0000649ca5e4674aaafd4a4ba0471871174ea06c10509d112eea15ee99fe8daf"))
|
||||
(1181000, uint256S("0x000029fb97da343e7e6402af6cc9b4f3796be80b2896a54fb579e471c6bf115a"))
|
||||
(1182000, uint256S("0x00002af27c646a7b0fa7c96ea6edf9c098d6fde6ff35f1e793820dc5b808280d"))
|
||||
(1183000, uint256S("0x00003e2f509c57db42106586345b8a1078223ef43f6b29aed8ec1cfefcaee17c"))
|
||||
(1184000, uint256S("0x0000073e3365f8b253334d549ca50a5adedce9f97427bef3ebe314c04f983b63"))
|
||||
(1185000, uint256S("0x000001ce36b5afec8ad1771670f9a17755efbd78b169c17c8f1977903d7942b6"))
|
||||
(1186000, uint256S("0x0000572991b2ab1139dd0e06d6d326dc924536f62d563a3f6b4bb31d5f8da850"))
|
||||
(1187000, uint256S("0x00000e430150aca093ddd310bffffbd4c28fa65423d6f5491c902c7fe5bb3c50"))
|
||||
(1188000, uint256S("0x000063da1fbcf413ea1a8664352c409ea2b2eee698fc953313e04e8f9c4c13f6"))
|
||||
(1189000, uint256S("0x00005bbc9f9803ca56d18da09b6e8158a9efd9795753e477636948049fb6b077"))
|
||||
(1190000, uint256S("0x00002245226551549ffa162c710225978f840faa0970916927ba949cfc9abd11"))
|
||||
(1191000, uint256S("0x00000750a1a7f0b9f320c07e4239c8266ca8203184cf2840d2117e06da625e2d"))
|
||||
(1192000, uint256S("0x00000340cc881b0ff9a1045da2e513e1dfaa9784d5c74b71d06a69ba08f9bdc6"))
|
||||
(1193000, uint256S("0x00004af98432b689093039aa7bb31407320db379bb7a1af401f4ab3b50b4c7cb"))
|
||||
(1194000, uint256S("0x00002811098dabbf8b0d9a187a7d6aa946eee22ca7a2d4fc0e2db05c85d9e7ee"))
|
||||
(1195000, uint256S("0x000023354ca74ce1d65c067a43bc287b178db1accc68d0e255affb783d28fb1e"))
|
||||
(1196000, uint256S("0x000022f383c401cdd9b5428a35d2912c32da96ee75d9ca11d6c950bd26a85ae4"))
|
||||
(1197000, uint256S("0x00006128dee332a6b6a60bbec4cb87a21a7caa4d998bd50e4e17f93a9fafa947"))
|
||||
(1198000, uint256S("0x000040c6d3b8a3056f809beb6fe99193c95fb1e675217fc4c672947e4ad28b5b"))
|
||||
(1199000, uint256S("0x00000526a9c4e9c16dd17b43fedd5c93484bcaff8c659fd8c590c4150674fefe"))
|
||||
(1200000, uint256S("0x000013ad8b897aa023a26864bc8499fadc17c37214b46f0d4b84dc4744a3f270"))
|
||||
(1201000, uint256S("0x00005499d0c4695da60fddd08c03f2f88fc73bce71fc2db01287afb58f6c0be8"))
|
||||
(1202000, uint256S("0x00002fd7cf1273183ee655a1453d99accf4911134f14819ed04af6a22e4869f2"))
|
||||
(1203000, uint256S("0x00000c5686cbe6e542dfadb8a8c72f5fbd6f3e4c4151363dd5ffed5ed4e0de93"))
|
||||
(1204000, uint256S("0x000011645bb9c42eaccdf0736c7cbb9d446cb0ce42b9298824fad5a9c896cf1b"))
|
||||
(1205000, uint256S("0x000037b4659afc89a6c0c31773590af066cbd8cefd257f4f97d6715589196230"))
|
||||
(1206000, uint256S("0x00006401cfc88a271056704d6820a97e30d32e1f55f045070f1f2864e37477bc"))
|
||||
(1207000, uint256S("0x0000384c8c430ec912faf02763b45908661c49a09d957e04fd666c1853a445f0"))
|
||||
(1208000, uint256S("0x00001272213359e1fa3986880da18000d1dbeb472794b6ef3e119f1f924dd0d5"))
|
||||
(1209000, uint256S("0x00004ea7dcd4baa421d2f25cdd3d154fbeb80b48bef575bc1abf7be30b531782"))
|
||||
(1210000, uint256S("0x000014155338aa216d649ff656fa174fa2ef31f709ff6733a6dca2cac5fbfaac"))
|
||||
(1211000, uint256S("0x000050cfccf156ec081627ea46874a77f210dbcf5f815e67476104a49d2234ae"))
|
||||
(1212000, uint256S("0x000002361f8cdb0ef51cab2067b81285e5ad470876eda334357c1becb4e14a0e"))
|
||||
(1213000, uint256S("0x0000148363d3feb29f88b422299e0b6c4d02579a390f2ba5f813d8b834c6c9ba"))
|
||||
(1214000, uint256S("0x000014dfe478cea8044551facc7a21e3cd150d1bbe36b240567c3e605d240f78"))
|
||||
(1215000, uint256S("0x000066ab5b4c8ca88603b375dadfd7437e82afe4c0becf0c823ea52389c95592"))
|
||||
(1216000, uint256S("0x0000192d568f61af06e235d325ed8a25e338ecde8ebb7550168c3eda7271f8b9"))
|
||||
(1217000, uint256S("0x0000082ce9b9bf87cd52d99fa606276cfe37f3735f87e6124929d1904f9a8e59"))
|
||||
(1218000, uint256S("0x0000664551fda17ca48d894328a14ee1ad6cfbe3b093cfe2af5cfa6c326385b3"))
|
||||
(1219000, uint256S("0x0000567bc2fba439fa518ace0e3e1a3de20dd681787c55cd47fc5fc3270dd689"))
|
||||
(1220000, uint256S("0x000032c41595c1d0856b5f42cc223f718fc39730a8ccc7da12979eeb16843b17"))
|
||||
(1221000, uint256S("0x000068a6d0e870f3066eb53fff971a3bd2ed5e6be356aa60b5471acddbab1463"))
|
||||
(1222000, uint256S("0x0000501c420637240ced9e7b1ac94d1ed6628c32df44516b3cee7e362f68bcf7"))
|
||||
(1223000, uint256S("0x000017febc9a274e74e08e1bcc0d2437502c2367565cc66a41418750f14996ed"))
|
||||
(1224000, uint256S("0x00001cdd2659af3594e105128d614ed88275a3aaf17ebebb7462efac3d7a8308"))
|
||||
(1225000, uint256S("0x00004c9e0b767f0af5af5ee53f0815c1250412a6da9b095d71bdc4b1d04aacf1"))
|
||||
(1226000, uint256S("0x000040ccb928b631aaa50329c3aa6c261e0e259be89bc44d241d32a06906b7d2"))
|
||||
(1227000, uint256S("0x00000636ff452b4189d3e504317cd1e0565f6989c08689876f175976c8e5f6d5"))
|
||||
(1228000, uint256S("0x00003922ee1388e9dd42ec9085be131adac3cb192889573c7dc95f0d5b10fb2a"))
|
||||
(1229000, uint256S("0x00000d6cc5c06405e558d1586ba42cb7a7a33658e806ae84956c501da672b15a"))
|
||||
(1230000, uint256S("0x0000172fe9a0cdfa70d80e99586ac8a26034d7100a74c45aa5cb832be780b602"))
|
||||
(1231000, uint256S("0x000042423636e41f92ed92e94573a7757c5683c71d794ca329f4dc250d496562"))
|
||||
(1232000, uint256S("0x000030db4f249f0a8a0cc452f7c286346193a9b9a58c612a3026cc5196f34b65"))
|
||||
(1233000, uint256S("0x000008739a594e05fe74e78016df5a8cc9f534c35f476f31cc53c1f728ddbd0b"))
|
||||
(1234000, uint256S("0x00005686cacd29d4b25154f85a59b96ad38f76b1dc50189ccd7c2ff64916d500"))
|
||||
(1235000, uint256S("0x00004dd1ed8cc9d9fae3dda3dac545c1013888053d7d172c93243bafc12ab6bf"))
|
||||
(1236000, uint256S("0x000039da72e90fdf62c5058186ece9f625a6fb752468dfcb554cce91de40533e"))
|
||||
(1237000, uint256S("0x000051b553a4247a192a3c467cca2761c03b083e72d3b3876e00cfdbae61ee1c"))
|
||||
(1238000, uint256S("0x0000470a1946478d605cd8de5837f6605bbb783d8e20437b4a72574d9c8135cc"))
|
||||
(1239000, uint256S("0x00002b7de55538a8b5a5d7f3869e24585a7da48da6770900620f37e3ae3cb067"))
|
||||
(1240000, uint256S("0x00005dd97b8aa7bba0d0a2743f39b6a483884db7397b65abedb866bdb27acdb6"))
|
||||
(1241000, uint256S("0x00005370d77990c5391a2bad8c76eb21ac87642f70ce4cb859e2998f327c76c7"))
|
||||
(1242000, uint256S("0x000013e9aebc799c5feb3a8048d663f698ea1e2ea69f0f493fa5f0051fb63a1a"))
|
||||
(1243000, uint256S("0x0000149885bc1668a1993b87def2c16c546cbff364cac2aa9bffbf98dacfab30"))
|
||||
(1244000, uint256S("0x00002c685cda1ff8c394cac9d350a58edf7202a8f0d28a6ee08cd72ca052cbfd"))
|
||||
(1245000, uint256S("0x0000102705046f777fac46a021ad9658c4413fcfc45079c4f2d72a4628317a87"))
|
||||
(1246000, uint256S("0x00000fa7de6082201c2367a3fbce4dc81f68442bcd953053e495cd546791e589"))
|
||||
(1247000, uint256S("0x0000154a5c84fe71a13ce57bb79d10a96c87cae33377e7964b23ae94a2253a17"))
|
||||
(1248000, uint256S("0x000000be86b23e43ff6a25bc0762054094c9610de62e7f402ef6d5fbf997ab1e"))
|
||||
(1249000, uint256S("0x00005b543b6fc0104ff434f493e9e40e6c60e2dfcdf64fad44418ccf6b186b5c"))
|
||||
(1250000, uint256S("0x000040801b1c63452f1fe4a0549d5062b24f9d96ae8813e38e5310f2feab28f4"))
|
||||
(1251000, uint256S("0x000057fb0a2062247b3a8536b4890ef2474e9a0e995a834feea2e51eaf43829b"))
|
||||
(1252000, uint256S("0x00004e2b5964a7b44110b6ffa12aba62d497333c41216e2a177d49593181d5a6"))
|
||||
(1253000, uint256S("0x0000319fa7a3b0ed79476b6568f4e64136a5d427d1ae00aaa38f2db6113ec7ef"))
|
||||
(1254000, uint256S("0x000019a583a766c17f6d107bb941752783b3b595ea5cb02279b2915645782881"))
|
||||
(1255000, uint256S("0x00002001eba0b7c49990435285721c5e8d8dfe087a33a0149bfaa138ebdb11b7"))
|
||||
(1256000, uint256S("0x00002932656be7b66c9a751d8da9b20e54972a7c0c260976cc47f4a48ec8e0d9"))
|
||||
(1257000, uint256S("0x00000a8566c990bd741caae3dde65b624b884b463b9bbb5cacc4078fbf0339e8"))
|
||||
(1258000, uint256S("0x000039e1f356f63faf24d72e9ff9c29f77df9f40756d5dd524a3b250ae2e871f"))
|
||||
(1259000, uint256S("0x00001eb035d147edeaf8d88049502b2044e2d8da4750f5c1b9a7aef9c6943195"))
|
||||
(1260000, uint256S("0x000012c037027810296ce25642167daf3d0495e1ef9292544f47599531244bd2"))
|
||||
(1261000, uint256S("0x00002abb17fa2d045456b3961696f7b36b1443603ccbadf2e6395dc1d1fb140d"))
|
||||
(1262000, uint256S("0x0000088736c35e41ff0566ff9fe6d76e0cc142e99beb5854bd8f589d90d7ef0a"))
|
||||
(1263000, uint256S("0x00001ed2d037a67a4ec8aa01138726214016edf506251c6b454404e98cb766df"))
|
||||
(1264000, uint256S("0x000005e40cd01ce160b4fe154922162fd3d492aa52951bf44337a139409a4452"))
|
||||
(1265000, uint256S("0x0000676839db3008652bef92beea49cb82abad08c7eccc57284094fad7feca13"))
|
||||
(1266000, uint256S("0x000013074b6318eb49001ece9fc669438b0e77c686c5a43b3744d0cf47a0beb1"))
|
||||
(1267000, uint256S("0x000022aa82205b1067a9a2ebc5930b70b6881d984d0ce1a8b029fd6f0bd88f45"))
|
||||
(1268000, uint256S("0x000031b0063d7f9063d54bb07fe9e56cbc3b75022080fe7a5c25cfa78e867d24"))
|
||||
(1269000, uint256S("0x000060c8a2b63b45fbf8a359485425c0ae083d4654d2d062f1a9dbb4a1b4a1e6"))
|
||||
(1270000, uint256S("0x000022d4eefaaed23d27ad85bb00e92349b53c3f81d4d308acc53434dafdf731"))
|
||||
(1271000, uint256S("0x0000077b6614dba2b69bae84afbe8d11e3beb9b12c869c8a9160f3dccbd833ee"))
|
||||
(1272000, uint256S("0x0000359829c6014d0707fd13bb5f66e1906346fcf6a64fb5e81a29d7efcd52c4"))
|
||||
(1273000, uint256S("0x000044586991e1f5cee09e2c0b3e175845e659945b8f680d2bc148c495156395"))
|
||||
(1274000, uint256S("0x0000460b6b756e425a9ec78111b4c3dac21fd61027f4cd4ba557d7cace76f400"))
|
||||
(1275000, uint256S("0x00000c6fc0db70726dc0a40e9b12f636cb4830c42c1b06de34d8dbc618685cfa"))
|
||||
(1276000, uint256S("0x00001d7679c574c9c5dc3cadf6bd27f67126db8f79e5190f8ddb9acfaf85209a"))
|
||||
(1277000, uint256S("0x0000355d71b43c37b2426466692eadb1a425a1dbaa15960cd99b1b9935a90006"))
|
||||
(1278000, uint256S("0x00004c7ad5faffd431bff2e9f3de5f7e89ab8fee40c0a5c997bb999a6c5b4cda"))
|
||||
(1279000, uint256S("0x0000474d6f4ea13eb5559ad26b7adbb580c6a44dfae04beeb49bb4f994da4fd2"))
|
||||
(1280000, uint256S("0x0000187b49dbd8b87d68adc0070413d3ba904df45d27d1837aede0aa50993df5"))
|
||||
(1281000, uint256S("0x000053c0c7c2df5c493b6c94c90f7d54c9d16182f673f0d79697dc4bf56b551c"))
|
||||
(1282000, uint256S("0x000032a389674742454fe3410cf839a0a761cfa46dfa126cb1a32da994d272de"))
|
||||
(1283000, uint256S("0x000034e46e23ea151912514e0736c9b27efbf9be08dbf8d931f9686092534280"))
|
||||
(1284000, uint256S("0x00000a5df550a85eac7892811fee5473ff7a9c8308d70671e6c279500ad731df"))
|
||||
(1285000, uint256S("0x000015935070956de8543a6d36d7b97436e1b8b933c308c3929a404b15a56dc9"))
|
||||
(1286000, uint256S("0x00001a57e5646201963da0f7e3d130ec1ea70e017883f677a7cee17d6abae9d0"))
|
||||
(1287000, uint256S("0x00004a92e3671588fcb49a8db0283320b13138edd92e19fbf1c843df9e5ab2ae"))
|
||||
(1288000, uint256S("0x00002c10244eb91ecfb44089ec47cc3594b6876f1db247ca49f378ad4b216dba"))
|
||||
(1289000, uint256S("0x000050a8a6902ec83acbd97c599b0cb1b503437ed964c98e9bfeb8a0f2bbcc62"))
|
||||
(1290000, uint256S("0x00000ed28be2c4c802b598a19ed177364bf86029e8b20e43338c721f231e4279"))
|
||||
(1291000, uint256S("0x00004d122c9a324995e3246836d0bac61f731d82331c2a62b47f78ca45cd09bf"))
|
||||
(1292000, uint256S("0x0000088be22cde734cea1d67f8a3f1d5297fd79b1c9e5fe44be483057b08439f"))
|
||||
(1293000, uint256S("0x00001b62d2ae6cec0a041b5d6b7ab112b618354e4788476d2b0fe6abf138fd03"))
|
||||
(1294000, uint256S("0x00000a13aea1a99a8167cd04ec6c0363de67f49ab6b1a7e5d76612dea2ca0cf5"))
|
||||
(1295000, uint256S("0x000033982767c8bcc47dd13c5be0f843e1385bc51aeb87debdd5258bbcde9d2c"))
|
||||
(1296000, uint256S("0x0000125c70cfad5ac088c0043509f659f59878758234b89cf31010e2ad028a82"))
|
||||
(1297000, uint256S("0x0000259af057d1738063700bbdb1352a381c01092d6aca3380218ed6a5fca750"))
|
||||
(1298000, uint256S("0x00000441c838672326020f9b1e1036f108254216d50af05bddb4b19357d95855"))
|
||||
(1299000, uint256S("0x000018fb87a76ae93b2c9f8052442c875a68b474dd81af0c59221eee714c9e6e"))
|
||||
(1300000, uint256S("0x000009b6907f7923dc9b784b0077bb713a8856ca9d940f57078b44d0f83ac312"))
|
||||
(1301000, uint256S("0x00004289784e21a386a8190738da51c2d3f77900259414860b5e81539e9558e5"))
|
||||
(1302000, uint256S("0x0000289a30b70cf0ec123814a18ff6f0d87165f762207ee4e931a355afe452e6"))
|
||||
(1303000, uint256S("0x000023cf6ecda684faa7500e030e6dcbdf63af8a26dc498d94364df7bfdae0d7"))
|
||||
(1304000, uint256S("0x000034c8fe4345599dcb66d08bc7595d99cf70f3f8a53628b43eb27fc849ea0d"))
|
||||
(1305000, uint256S("0x000043b3c599734e3c7c3fe8223fba99d1362f3a5cbcf92b6a5965fec8eb14e5"))
|
||||
(1306000, uint256S("0x00003c914f7c29699e4532cb69a7cf806e76bd93bce5a16802bd6fcb72cf0869"))
|
||||
(1307000, uint256S("0x00004b4b26da50b96f76b2bc4fb2a86d9770998e8e5d4150e1d6b747eba925e9"))
|
||||
(1308000, uint256S("0x00002fc77f9b68d13c067311e6ca0ef116eaf711823d4b1b584f9acd7f0ce82a"))
|
||||
(1309000, uint256S("0x00002d1b444197e533f8025ef5ebb6ccb279094c1ebe1dc999d6604554f0c91e"))
|
||||
(1310000, uint256S("0x0000136813f4498435a9f1d740616be5aa8a7dc5fe1fd893a86400959f2667c4"))
|
||||
(1311000, uint256S("0x000015aa7a373c271f2761066a9fce067540bedca683e0cb2e7cb075c2f7ae56"))
|
||||
(1312000, uint256S("0x000049027d369fba3fe3a0dc4c34a8f19ceb7c728aa8a01863368e65a74a0402"))
|
||||
(1313000, uint256S("0x000021265084f0017f10af2adec81ad77fdff31e99109787af283cd6ce276d86"))
|
||||
(1314000, uint256S("0x00001dc5b690ef30a433b9b92aa2f53083e7f97ace9e7efa3b66c6e45237539d"))
|
||||
(1315000, uint256S("0x00003b70d6876046d2815d25c254e7a28687344d8d8d881b5a2cb490dbe1b7b0"))
|
||||
(1316000, uint256S("0x0000035c58cfcf4e3bffa99a55195ec63519b41d2158cf35a98e31f0b2ff4fb1"))
|
||||
(1317000, uint256S("0x00002871c10c82a4b527d460036b93a3218ea8f4c0d4d5962000b21fac6ce5c2"))
|
||||
(1318000, uint256S("0x0000523e5cc8af99515b772098780d643ecf8d1bb60a44e9ed01e1e6ac05fbbc"))
|
||||
(1319000, uint256S("0x00007649faacbc98ca50131914a671cac3449faf45efc358687bf46daf01bfc3"))
|
||||
(1320000, uint256S("0x000054f5e7a90e9b5e70336442e07c569da53095163b6e6029c2cf7012737654"))
|
||||
(1321000, uint256S("0x000073d0f551b3e768bf3435d170b1299e8abbde276127e7f73d070421cb7f9f"))
|
||||
(1322000, uint256S("0x00004ee980bd008cc453ed43891ead6f4047a5b26eacfed37368c44784027e65"))
|
||||
(1323000, uint256S("0x00006a06db6521b45b0e6aad0576294d6eae7f0f88f64bfee971fa83847dfa2d"))
|
||||
(1324000, uint256S("0x000052748d09b26b13adfd512ce2ab015cb4d82e171afff48c28908017a63f9a"))
|
||||
(1325000, uint256S("0x0000243fc652997bc4b6a2315b9384a54e312678d09fb00c068981456ad76449"))
|
||||
(1326000, uint256S("0x00000b1efbae985fe97c5664bb006b2a5d9c929502619cdc6a08488427b8bfd8"))
|
||||
(1327000, uint256S("0x00003eab5ef74d212a6031d1333a8e32a7476618639eeb9709601247dcf28b52"))
|
||||
(1328000, uint256S("0x0000205d5addc63d62805bf598664eee091b52d3222a5b5fb5494a6efb584cd6"))
|
||||
(1329000, uint256S("0x00004b5a5e95536ac8036a4b3e95df41f372699387600a7f3bd340a0c04c8d5f"))
|
||||
(1330000, uint256S("0x0000190c2db32da38586594ee3c67a95fd1ebf4b6fa288c8407decefc23eb420"))
|
||||
(1331000, uint256S("0x00003ed190a2570d494dee7e966544c3d3981a1c4dfcf25f6f1c5b543bd3aa71"))
|
||||
(1332000, uint256S("0x0000151e66c75701e9040b8bed59abebaa51e7c2465773f1b07c7063c2ef9c02"))
|
||||
(1333000, uint256S("0x00002c5a586b74cb3c2595441f48e4ce62997b86e997cb87fa6e5eddbfa9ac52"))
|
||||
(1334000, uint256S("0x00002a52be65eb1c9dc8bbe85d68583a74e0ec93a518ab1b5e2cb24a5a80bd19"))
|
||||
(1335000, uint256S("0x000021fd0d351efa9e040a873c446e1302a5ac5b5025084563b3e7a60ff2c2c6"))
|
||||
(1336000, uint256S("0x000053d767bc40e54e6b1aef2f51ee7755b36209a2c283d50827c05b92fb0e0a"))
|
||||
(1337000, uint256S("0x000013d91d3baf584f200f050564b5efd2cd098d378d448643e21601a56504d2"))
|
||||
(1338000, uint256S("0x0000413db692b66b4db2ddd2e55f53dcc7e6e1c1784373a0b67fadadddff5aa1"))
|
||||
(1339000, uint256S("0x00005c660d497cdfb5a13be94b69226077506128b46a0659b6ea4d5b3c8d9d1a"))
|
||||
(1340000, uint256S("0x000025a875bb614824947cfefc70701ae1bf573a38f5fd5255d97238947d4d46"))
|
||||
(1341000, uint256S("0x00000ae023b2b24a6f8bbea6268100bca725b8da415eeef679b1c35f8a836787"))
|
||||
(1342000, uint256S("0x00000201c23daa15a0241c0e1291fac68143ac9fe72f66370bc9c151a109da98"))
|
||||
(1343000, uint256S("0x0000305946c0b179db2aab47885b509fbc931874a89cafd046dffab5266d9432"))
|
||||
(1344000, uint256S("0x00000317b608a52b734a7b3aad36143b761f34e47f26ab1c7c05c75c3af31a24"))
|
||||
(1345000, uint256S("0x000034f335b83c243f68ff7be160dee32e1faa6b6f05094946f0f169fa6770fe"))
|
||||
(1346000, uint256S("0x0000207f8a87af0453b46fed4fff804419fb1ffa178ee0086be40d61bbc5d304"))
|
||||
(1347000, uint256S("0x00001f72cb20b6197b3de236eb3d57bd46878bee758787e75af50b963dacb863"))
|
||||
(1348000, uint256S("0x00005b521b1d95b13625a9e349354cea391e8caf58db86e07c86642ef9d5b433"))
|
||||
(1349000, uint256S("0x000064bc53df71822fd8f7a451cdcf6a4837631aa208675e64cfa4fc8f3ee284"))
|
||||
(1350000, uint256S("0x00001b9b8fa3e8f35dbc95a27c88ae13b6c5d70ad81c7d4353e7f2b0096d8cc3"))
|
||||
(1351000, uint256S("0x000008939e57dd2d369604bcfbbff892fbd89a4f8526ad0b021fffb01f06a2b4"))
|
||||
(1352000, uint256S("0x00006f4f0458341f0fb67de2542818a688a772c4e3b785d00336de59c9947b0c"))
|
||||
(1353000, uint256S("0x0000727e0460a180bd36f387e28a2bc0c24ea5dc34910e1f59c430861e810882"))
|
||||
(1354000, uint256S("0x0000502d7a840217c1310c002a10dbb9e38826b9bcca353efb318e3712ebc1ad"))
|
||||
(1355000, uint256S("0x000063fb9048dd54c0350c3f14ca94d561b24ba64e339eac3b741666b2a7ae58"))
|
||||
(1356000, uint256S("0x00004f08f17e3543181de2cba7842dece3ba3fa7c6014c6b4b43095481646c08"))
|
||||
(1357000, uint256S("0x000025fa2b0bcd25cdf5877561579f0e394f5129cae461c3a817af816e0d458d"))
|
||||
(1358000, uint256S("0x000034f582b22ba9a754b83197b6c09fd811dc6a24d7ae80d28d4e405fd44bc0"))
|
||||
(1359000, uint256S("0x00006317029a3817cd40290b1d7a5f6c88f3c0d33ec2131f5b25dd798b1ecbfc"))
|
||||
(1360000, uint256S("0x00005be02850d4d4fcc57f1af06934459b2beb0c3e218e41f31b44383e3bc6b6"))
|
||||
(1361000, uint256S("0x0000477079b78868204a9065bb1f55a3e1b2231ba95421bbd656a4de648583f7"))
|
||||
(1362000, uint256S("0x00002effd551c67a9ff3b4a83eb19bfd9bcf899ad021fb749524c2889e3e0f84"))
|
||||
(1363000, uint256S("0x000030de375a7891acc79ed08c5f1f2e462391e825e24bf367283ff761c8a0c5"))
|
||||
(1364000, uint256S("0x00001a67a194321cc66ac092354827207ccb6b163a094bc670a1e0266024ef85"))
|
||||
(1365000, uint256S("0x00003f3ae3ef89b9d1f196f47e8b3e42c7f1d4947c518a61239584d1fd1c5efb"))
|
||||
(1366000, uint256S("0x00000b2c437d78f45eff553c1200e4c017cec07e825359842a764e5fe7f0c8be"))
|
||||
(1367000, uint256S("0x0000211500a4981a24ab387a229440741f7bb1d230fd41152fa1a2ce55f13d9e"))
|
||||
(1368000, uint256S("0x00003c915106dce5166bec267e52beed2b998eec834817eafa9fe90e5636e62b"))
|
||||
(1369000, uint256S("0x0000549ef7cc9bb848c447bc326977798dd599aa25c224c94ee36bc8e568b6b2"))
|
||||
(1370000, uint256S("0x00000156aa005f16d2c49557dde9ab4e8c8f7988ad3d742349ac7d8e5a540dbe"))
|
||||
(1371000, uint256S("0x000026010d2b966d1c844d51fca19f808ba9ac595b7f6e67e92d1c57fcf96002"))
|
||||
(1372000, uint256S("0x0000229d1a4c8ee6fcc5d4a8a8185466f8d9cda1eedbf06e8fd42916def5a00c"))
|
||||
(1373000, uint256S("0x00000183822f5fd258a0546bf0d99679b6b6250a6dfd00ec41950fa607d80b21"))
|
||||
(1374000, uint256S("0x00004121cbde3764685f88becc2f76cc82bf267b8e2c6cfb290705286d35a963"))
|
||||
(1375000, uint256S("0x00004f01f0471283f9e3539aeea5a7fdde6e262bbbac7371ead9f8be817b57b5"))
|
||||
(1376000, uint256S("0x00005e3524bbf76ca54513bebe1543728110d24b7b57ed29df454d0b5ae9113e"))
|
||||
(1377000, uint256S("0x000038495b87d9f88798b8c4d9ef076e77533df730af15c59ed2099a22a0132b"))
|
||||
(1378000, uint256S("0x00000e07849388d96f40d68bfef4eb519cba87b83502fa3ec7b3ad19b7b5e3d7"))
|
||||
(1379000, uint256S("0x000027f63bf39af6977c10274283d3d9f323fbe265f6947f7281aeffefdc5ba4"))
|
||||
(1380000, uint256S("0x00005505fc6e9964c5046bfdcba3ed94b981c39d81057fd1e159066d86503b0b"))
|
||||
(1381000, uint256S("0x000010c64d196f9eaa408a041ca83f4f302f55f3ac336a622ee71305c3b29388"))
|
||||
(1382000, uint256S("0x00001643b8cc9dae02bece65ff6522bbfd6c376d714d7f6fd49e382d9df42db5"))
|
||||
(1383000, uint256S("0x00000e8168f5c7315866986466a2c798e5310dbed27fd07fa0985f5c341a86a6"))
|
||||
(1384000, uint256S("0x0000631b02985c7f9a4c4f6687f5ae7f099c12f03f6bd2a5eb1aa7eee1f97a94"))
|
||||
(1385000, uint256S("0x00005de1bda0086f5536e4541c116f782c4fcf288d4f28ed8871be8649dd54bf"))
|
||||
(1386000, uint256S("0x000016ecc09da98c1adc4cde6ffdf6b1e5b34be2392ddd49d917e12268159c9a"))
|
||||
(1387000, uint256S("0x000016b0710e0f91f24b6307fd32163358e844ca729e1f02e4ce8e99cbdb79bc"))
|
||||
(1388000, uint256S("0x00007746c4cd4567c2215530e3f617c1cd533d89025d50ca39aeaa5e6bcdfd44"))
|
||||
(1389000, uint256S("0x00007e6e74437b5e17b8b3c758009957ca4a865fe23e5c33e0099e6f0d8ee845"))
|
||||
(1390000, uint256S("0x00007250c54dea4de6ae66a06b19a5538a64a98475c1f890e2845cfd0b0f6f87"))
|
||||
(1391000, uint256S("0x000043385abbf08e4f0aa190078923bc7d27254b6c93256c8f56d026992de23e"))
|
||||
(1392000, uint256S("0x0000264465ee861672764b4328d3e0a1bb4f2ebe168eaf3bf2e3c7bd68e47057"))
|
||||
(1393000, uint256S("0x00002bdc46d2a233b0643e8c5b4eb5b4805e94d846b7a3543a72cd184b556e88"))
|
||||
(1394000, uint256S("0x00001d7e7ef3992f2c2a90dc163a75868cb922762653c92d4e339d63e478f67e"))
|
||||
(1395000, uint256S("0x000002cb974dbeacf08022dd44eb46648d5aec77cbcb72e04f6b5a511f4221d4"))
|
||||
(1396000, uint256S("0x00006a978b1ae0aa4dc8b8b7ef6c864ad4f1be7da453480d2f088698810ea735"))
|
||||
(1397000, uint256S("0x00002f68dd57c62f1086876fec0d9082c3da2566c2f0e6a22bdc429968209197"))
|
||||
(1398000, uint256S("0x00008031c280fc082ddc06f14750f865da4d885b60f0fc6354481d7a00a52c63"))
|
||||
(1399000, uint256S("0x00003a8a94de485da24caf7dc18fd923d27bcb07d29a5a4701c9930cf4f98d46"))
|
||||
(1400000, uint256S("0x000011096de8cdd5942f4bdb443bdb8ad336342b3173ef8fa05307a9c8cf58ee"))
|
||||
(1401000, uint256S("0x00001a22b299474069d4d834ec72a8a26f18640701c575500e0b5fb6b02fd021"))
|
||||
(1402000, uint256S("0x00005dea39ad54b2862ae95657164f650e28ba250a4e1c9663b2fbc3db76a53e"))
|
||||
(1403000, uint256S("0x000055857eed6134a03b6f5fcfb9112dd75b809ca8f579e11cd7b5846fb87c3a"))
|
||||
(1404000, uint256S("0x000049548a6d09685e90375c2476674ca6e27453a8e05f8874fe0ba6e93d28c9"))
|
||||
(1405000, uint256S("0x00000aeda49c9635b1079d3497d51e4ae1af507b16eaa4b7337bfde0f4e7ae6a"))
|
||||
(1406000, uint256S("0x00003ae2cbae0d61d8dfb474f124cf2f6a994e5dcbfb3633bb1e357e358a3404"))
|
||||
(1407000, uint256S("0x00004f41a6bc783f7c0d1f0c958e360a62ff50c6a40cc18b6a40bcd3a6add2a0"))
|
||||
(1408000, uint256S("0x000031fe6e28dba476f91e83402b912c47df4002b97ed2f6999c30fa985996fd"))
|
||||
(1409000, uint256S("0x0000727d07f32206cf915066e9fdb9907c3d25d49ba660db641494d5155a8127"))
|
||||
(1410000, uint256S("0x0000405c1dc5e1e9bcc44a2c21c1bea6c2fe9b61ce3383ca2bc8051e954bc7e9"))
|
||||
(1411000, uint256S("0x000035579f681bc9587ed9bb15a692da25409cfbefa79a1a89c5cb80fd3c0571"))
|
||||
(1412000, uint256S("0x0000508dfbad47ff590c35883c493a875fa012d13bd1347d98a0a1a2bb7902f5"))
|
||||
(1413000, uint256S("0x000017f5eb3f35a0d31d56b7adf60526a8ae44cc5c30b78e1416e633f7e8d5d3"))
|
||||
(1414000, uint256S("0x0000808b8460ffb966b6313507830f6737c030f220e071de5619f21dfc8da78b"))
|
||||
(1415000, uint256S("0x00001b587ffb3f55a7ea904532a213c2a4284b872c0ab9e803f320f195834db8"))
|
||||
(1416000, uint256S("0x00001a140ad86b1b89f133819fd2ebc32729659a10489d0e7563c258fb67834b"))
|
||||
(1417000, uint256S("0x0000459938d0e333ce98ece0a10cbed2f8ab955a2f70b1638e367049fe03b039"))
|
||||
(1418000, uint256S("0x00002775ccbfb25998045102ad45a4a8b60403e877f9a60684a37fb9f1e24ac7"))
|
||||
(1419000, uint256S("0x00001d4c713389cda24457fdbf22d1c513829e59ebaab09788b66c450574017b"))
|
||||
(1420000, uint256S("0x0000716e6829dcda9d949cca382e41034a038b018a418bb6cec025bd7aa6b6a9"))
|
||||
(1421000, uint256S("0x000016072ac6ceb3d2b8835be8e3276ea3fdca6082c922fbf4a2d66cc0b2de1f"))
|
||||
(1422000, uint256S("0x00003cdeb85dd131660109a77b32ff072cce5119268524f7ff4e363b26e38f9d"))
|
||||
(1423000, uint256S("0x00003facc7586105dcdaa31deafb1df8d3599e9fa93b1580856e2339148c506d"))
|
||||
(1424000, uint256S("0x00005fb14795c1157ff1a95988d3defd1e39ac720ecf8595b99e413c7435130c"))
|
||||
(1425000, uint256S("0x00005bb58f776f79f1a524ad3145b20114a12c5a620b9073b0e0f0730fd07bcb"))
|
||||
(1426000, uint256S("0x0000607570d3c5d7ead43017397804b87868398256f2af8e61c24b62af3dce1a"))
|
||||
(1427000, uint256S("0x000071c76f0aef33c1324393d145bf2c794162cce33e992bfc65b75765c6a0bc"))
|
||||
(1428000, uint256S("0x00006018fc369b3af83b17854e093c9087ddd77802c21fb12497e94a1bc5afd4"))
|
||||
(1429000, uint256S("0x00002a4e85b18e3dd7c4a07d0730bab0eda36a97a7eba58b7397a026083bbeee"))
|
||||
(1430000, uint256S("0x000009d80d24169a4bc873c9f878ba7b08a0fefc85a40c1048721b343f249dbf"))
|
||||
(1431000, uint256S("0x000026f094183a7f07bd8756f7becffd05cd4e7634a5b213ef3c23e5b6f97ef9"))
|
||||
(1432000, uint256S("0x00007f7ddf1e1ceef2c23ed49e5fba39bfe33a2beb0189049e91cd475eb9f155"))
|
||||
(1433000, uint256S("0x000060ea03b0e8aa7899d0d1b98b52b4a4c33b205983812d14b81ef09287b19e"))
|
||||
(1434000, uint256S("0x00002284a454241cdcb0e95f0d9c0d247f6d915ba2214ed5a314a0225977199c"))
|
||||
(1435000, uint256S("0x00001dd2d4d2dad999376d08dd1e2c472dc1e3455cf7d7221eeff8f6cf9fb114"))
|
||||
(1436000, uint256S("0x00007bf3f632d51fea6cc6f20bc2f0fb85874a789dc3cd6a1f0f2dc66b5538bf"))
|
||||
(1437000, uint256S("0x00000db26fa1ec1619344134d24dd24b5a29d510c3f06216630f4dbf73565dd4"))
|
||||
(1438000, uint256S("0x000047a4145ee353646f39e1a6a6225214630f4e8cb4875e910809f6cb5a767a"))
|
||||
(1439000, uint256S("0x00004267abb63e82ba97d51ffed3dd98e1460a5baba5aeff17bb941cd5e4240c"))
|
||||
(1440000, uint256S("0x00005242530b3faa4c464a684aa360213d185b5532279e50048c22478b587e4d"))
|
||||
(1441000, uint256S("0x00000f7ecbab8367bdcedd3882a469e95dc02a104bf9fe21c3493f6e7eb7678b"))
|
||||
(1442000, uint256S("0x0000259a5a60df413dabe2177c51574ad856024bf02cab06404d9bf3979f255e"))
|
||||
(1443000, uint256S("0x000019b6d30bf30393118deb097d33ccb1a296a297bb56efa95a0edcb823778b"))
|
||||
(1444000, uint256S("0x000001e7d450d911390dd0d21a727f3963c6e2787ab48c9eb52f5f8805bcca43"))
|
||||
(1445000, uint256S("0x00001ddda6fc26a28b6156c72aef52d46c9cf6f131da11aabc296ab737e84e12"))
|
||||
(1446000, uint256S("0x00007ef41d460d18ffd70624ffb716b47daeb1fdf1ef8c749e5c6cfeda7e2fd9"))
|
||||
(1447000, uint256S("0x00003cc8059291cc699032ab2ee35cd58630e91d538f80171e28f3c574eaa72c"))
|
||||
(1448000, uint256S("0x00005b329cd2f049e697abf9d740d8181ef501357c7bfc1ca0980d15d127c079"))
|
||||
(1449000, uint256S("0x0000145558665a6e1c6698240d7921c09a80df1265e0316dbccd6427c8cbd0ad"))
|
||||
(1450000, uint256S("0x00002ab142f116f52000cacdd3f05da45dc7d1a188d04cf57095dde1e10e7c45"))
|
||||
(1451000, uint256S("0x00002ed9d3dc2d60ebc8fd71bf958f7a16c99c1073ddfd06ca3d3964bf8d0fcc"))
|
||||
(1452000, uint256S("0x00006c99a63588e991244cb16d65241e7f8c8a51c69f27013972cdfb627ef469"))
|
||||
(1453000, uint256S("0x00005d800553e59397fd1852bc11ab440d40202a1514d47786e45538debc727e"))
|
||||
(1454000, uint256S("0x000015d919078132a9919315c6cbc1f016fa32912f6e6d765b57caa64a038c69"))
|
||||
(1455000, uint256S("0x00001e7eb6d77f2fc2cb60cf49581b18ed0704686a5b9c0d9681f84ad67af3c5"))
|
||||
(1456000, uint256S("0x000050f68cb35ba10b95d3542d1d1cd7299805675f52870b54a2b35da6a47376"))
|
||||
(1457000, uint256S("0x00002d3b75f6416e72777492b18de9c487cdc209f82750bf9bb0c61d79830ae2"))
|
||||
(1458000, uint256S("0x00004d39813c667b84fa19e1ba8934b197accb59141d3b407c8e6310a2be353c"))
|
||||
(1459000, uint256S("0x00003f9968f692a32404d64403d7574d4053d75d28c73bc4832ede6363a37815"))
|
||||
(1460000, uint256S("0x0000457bf2734cdb31c828d467d6678140942cd27fe84091543a33c1a786ff0e"))
|
||||
(1461000, uint256S("0x00003640de8991d2dce4dfbc5aaa40195c1d248d70e4ece748bf3841aa68a9cd"))
|
||||
(1462000, uint256S("0x000038feafbcf1b9c8fe8b07ede5051a04b9a3f935b5b63796b9b822c2af6f7c"))
|
||||
(1463000, uint256S("0x00002933fd1e62ab5cd54a40efd87091c057886fc0ccb5e8865ff53583ba3134"))
|
||||
(1464000, uint256S("0x00004a7bc1706346d7fc51fda7d5dcc993592fe683d2f17bf594868c0ac7e6e4"))
|
||||
(1465000, uint256S("0x0000620221261d65b72fd31fcb2ccbf37f743282455312a5013ec58901bea574"))
|
||||
(1466000, uint256S("0x000017ec19979da76669b4dc9bc3c20ea74d0a9ee3d8c93dbbd45393f4278510"))
|
||||
(1467000, uint256S("0x000030cd35ee603269884c9fea00e6fe9abd8a58a2ed15a72ca909f67c9ade24"))
|
||||
(1468000, uint256S("0x0000576c624d94aa124844c995943a953fc9ef249783a76f1bb10ea5246a3309"))
|
||||
(1469000, uint256S("0x00000bceda549d22ff52a7f21769aa9cafba2adfb5f2039b71536c841d72fe80"))
|
||||
(1470000, uint256S("0x000027cf3973376f2e39711853c969763b3a9a5f614c479d36a82328b4034714"))
|
||||
(1471000, uint256S("0x00005477303f498253b92eb410b9ce73e377edba795013722a8d84f8141ad872"))
|
||||
(1472000, uint256S("0x000053a3db0b7b34004610d7cfdf59e72fe278468dfea1f5faadb251a0304f3e"))
|
||||
(1473000, uint256S("0x00001e515ef508874a83e6e75906dc64c2ee25fb5c462b6712f947ce725195e5"))
|
||||
(1474000, uint256S("0x000037d40334077f5387ad4e5aacc41fe720d5593e2d75fa6e7a12d23dd2251d"))
|
||||
(1475000, uint256S("0x00003ff337fba64eec0d5f2374194d8764dab3c173c7ab593490fe0dba23ba6e"))
|
||||
(1476000, uint256S("0x00000f028d26078a5beb3ee987635bdaa93d4d8a4addc0bd82d185844f4c78db"))
|
||||
(1477000, uint256S("0x0000337fc9cf8d52b2ab171460cbb3976ccfbc34e2366b50c65ef86f4a8058d3"))
|
||||
(1478000, uint256S("0x00001e75d7b55d58122fcf44ae97243fad28993ba9ecf8e29b57cd8d726dc448"))
|
||||
(1479000, uint256S("0x00001bbfca4da29a52407aa2d8b49c77b5bc48ed0f62e59fe37d513cc51e2c8f"))
|
||||
(1480000, uint256S("0x00006f49e804684d1c7e50bf8e1234fc1fbd123af27ba7459f20c07203b93054"))
|
||||
(1481000, uint256S("0x000025bb119aa40cc5a1064366b832a489fee8ec615e8a57b9b5c6fcb9989160"))
|
||||
(1482000, uint256S("0x00004e4df74223c0aa441425d08fd3e9eb3d6c54a12b3060d99e9b5ae3009399"))
|
||||
(1483000, uint256S("0x00001d35a5f1960bdd484ce1c3e4a51163d4fe153f6f0fdbd8286c6834e59ba3"))
|
||||
(1484000, uint256S("0x000027928236cc6cb5403e3cbf3157d4146de4d34e12bcf8af233918f3c6d52d"))
|
||||
(1485000, uint256S("0x000064be474b3ec1e860f61848bdab8a01bf0412bbc7c979d8b4b05a18b1ce6e"))
|
||||
(1486000, uint256S("0x00003f75f24012a202f6916ac20ebedbe14e6fd1ef09b037404565a311643307"))
|
||||
(1487000, uint256S("0x000055c76e5db476d20d9a5fd219fce2c9c8586bc69750a66c19407947ebe0eb"))
|
||||
(1488000, uint256S("0x00000ba35f0ccd2e8fc94caecb8e034b39aaef28bc68cf268033e765edb8670c"))
|
||||
(1489000, uint256S("0x000037b5608bfd9417c5aaaac6dd4689a2e286f61e046421aabfcd27c42fcbd6"))
|
||||
(1490000, uint256S("0x000047018d94461b91f86e2591f8a175b54d797fab29e8cdd07a38d546cd2ae5"))
|
||||
(1491000, uint256S("0x0000339ebc81a4d1c99266c1ad4c0bd9e60bdf9f3f7a5fc2b7d7c0ff1023a20e"))
|
||||
(1492000, uint256S("0x000034f2be651c725a501710b90dfc7ac2a7439a7790d178f37e635339582d19"))
|
||||
(1493000, uint256S("0x00004e36b6c7820cec761cf75c6be0817a893dd2c28ecadc52fe9570276c6676"))
|
||||
(1494000, uint256S("0x0000436de2198200c988fb5329dd0629693ea351099e6a7ee54f2fcd15fc848f"))
|
||||
(1495000, uint256S("0x000030e54f3e42971065cfb365889092df67c4f4cbd8d9882309d408beaef4be"))
|
||||
(1496000, uint256S("0x00002c91d87c10542b3db4d339f84ca3d6f537c631f4d3a545fcc63c242d47c2"))
|
||||
(1497000, uint256S("0x00000e03462a161ce11c317d3c3959d057f4dfdb72ca767d3ea92dec5381f4ae"))
|
||||
(1498000, uint256S("0x00000b00fef2c10cbb333e159bd725051cb2b8868c3fa7794180a862b8c4bc2b"))
|
||||
(1499000, uint256S("0x00003b1c63ff1b19cc6579c949f4e3a8a70257b61cb13cba980470cda9296a40"))
|
||||
(1500000, uint256S("0x0000324248e01dbc3a4dcf9d3065e5e1eb6c81fa8586d4b82b32e97cc43d8356"))
|
||||
(1501000, uint256S("0x000043493acb1081ca68732119a37f8a37bbd98875aed14da785180190be64f1"))
|
||||
(1502000, uint256S("0x0000560985bff5d7439e08ce1dad6deb423279192f27ced560c3a01e037f95c1"))
|
||||
(1503000, uint256S("0x00000f4203bcef4cd3199e40f90e164de773436eaaec87cd8a9dd932d08c01a2"))
|
||||
(1504000, uint256S("0x00001a20bfdbec3a4640a5a0b494d8850326fbed04d790fb552198ef2b081782"))
|
||||
(1505000, uint256S("0x00003ef1fdd6eb80ac9a5d58ae0323795e0ca7ff3942ef0b7738cc6c6af3ae27"))
|
||||
(1506000, uint256S("0x00002c0517b5619ccc18ea8ac5717dc57cc3b613de03b040490199e463db2738"))
|
||||
(1507000, uint256S("0x000051e4b0a891542c75f463c089d4e5f0e5af64a8d1aea734de1d28acfd2fb6"))
|
||||
(1508000, uint256S("0x0000533831066724eab70c56e2ff2ea6d91a4af4c455b41f9dc6bd3072189fc9"))
|
||||
(1509000, uint256S("0x00001305d4a25f67fc5365df6403a6caf3b44199cd7499da724eae6f2ccf65d5"))
|
||||
(1510000, uint256S("0x000029fd6680e674dad7ad6a5fd3f44e73287062d47bb97c7644db3489a4fa36"))
|
||||
(1511000, uint256S("0x00000e8c0c7c707dfde3d1b31a3290f8c90e709698e79c70c0c692d31a11ddde"))
|
||||
(1512000, uint256S("0x0000619dc165673789b342d1840fdf31dbd3a0a1593513cafa3bb63af729402f"))
|
||||
(1513000, uint256S("0x0000459b32b8f32c9f6744e4d7efe9dd2f387140cb1b0f9d4b6e9357f10ad16e"))
|
||||
(1514000, uint256S("0x00006f522875038fce8852a8846919f8206026dca7932c996d5f32f49e31a35f"))
|
||||
(1515000, uint256S("0x000039e9c41476289108b9b4c69adc07451a35fc9f156db6e7267cf2bd160d33"))
|
||||
(1516000, uint256S("0x00003bf37101566dd38384ef39896ac740fb0d5cdfcdacab406bc89f3c3a1b1d"))
|
||||
(1517000, uint256S("0x00004932a3e8b7a39d1af6e5687a73cdccc1da437bf14995c023f5f0d3cd66f2"))
|
||||
(1518000, uint256S("0x0000637f5d64d8a2517a806c784086134630d740b932be18d45ae20f130e996a"))
|
||||
(1519000, uint256S("0x00005340b308a63376f46ac08ebd71c70aebddaba4705122aa0a3019331bfc63"))
|
||||
(1520000, uint256S("0x0000037445ddb55d5c28f2a4446780e4be0c7f47cccb626bb0fbb8a3a10f728a"))
|
||||
(1521000, uint256S("0x00006946ca6a97c12f2b8e6009f40bf670914f9867fa846cab06f1e0a674c65b"))
|
||||
(1522000, uint256S("0x000004827524135eab105b368e2aa794224de498f31392c0a6fd3a4aea38c837"))
|
||||
(1523000, uint256S("0x000036e8232c944a7b9b2a2068555c91fd6529fdf335fa9626c5e096b2271ea8"))
|
||||
(1524000, uint256S("0x000023c8cbb293fb6a3a973b5d7610ae3d88f7c8b6402248d8b81024d5cc5fcb"))
|
||||
(1525000, uint256S("0x00005cd2813b417613f5dae9692064e6aa7fb8c74b71afc649f06128df62d0cf"))
|
||||
(1526000, uint256S("0x00001ba5005432017e83161723a376e787796e66b66c65cf0cdb2a01dbe2040f"))
|
||||
(1527000, uint256S("0x00001d5c090338beef5d6218e8f1b452098cad822f656e9c4c42188806d20b46"))
|
||||
(1528000, uint256S("0x00000a466b5e366cebd5a05f4791664b692e7795bb432e860a7e6e9f51a7ec67"))
|
||||
(1529000, uint256S("0x00005d9434f77694bc50168a7568a6bd8be685c9346dbe2e500ceaf188e43bb4"))
|
||||
(1530000, uint256S("0x000059d5ff92b926dbff5b3d54f35a544b02501851c58d1abe75bffbd41dfc5e"))
|
||||
(1531000, uint256S("0x000058b961b0a4c0bf3e3ef170d4a292fadcb35542b473a2427100e6438bcdf8"))
|
||||
(1532000, uint256S("0x00002bb6b5aa24b3d8cef0a87fd2433e4a71044337af7d4b8efa2de3165c545d"))
|
||||
(1533000, uint256S("0x00002f998ff8c1796e20a4a0fda67042a9536932631e36453fb0d572044b1236"))
|
||||
(1534000, uint256S("0x000005b39e2588b0bde112382f92fa3c31b46fb8db4b9cf807aa6d55f4c8d818"))
|
||||
(1535000, uint256S("0x000043743d50a88fa433397d198a0a7d695d38ba765ed10d256506e866b5a3de"))
|
||||
(1536000, uint256S("0x00002c52d80c50f3a11bbea52bd8df8a79a09c7dff6f9d9bac57ef7af3a0f9f5"))
|
||||
(1537000, uint256S("0x0000540162434470999d0b649f28f5372fa0a1e8ac0e1377fbb7cd4741b266c1"))
|
||||
(1538000, uint256S("0x0000616aa7db059317abdf3474912a9d924b66dc2b5937b9b21810baf553237a"))
|
||||
(1539000, uint256S("0x00003c64995ff3c589a2ac3f0471ebeb1542a7efc907c818081a41bbc803e429"))
|
||||
(1540000, uint256S("0x00006e5ef028324567cb084b819d13b8ff2ba8d2d1f4d682cfba675455007a3d"))
|
||||
(1541000, uint256S("0x00003d5fe2645115ea34279ce8fa1999e77242ee194cc0f8f28d6939cfe54e5b"))
|
||||
(1542000, uint256S("0x00006fb56c95b6fc0b371d5028d26269c2f80bb8adaa2cc6521ee3e22db04b0b"))
|
||||
(1543000, uint256S("0x00003f1d51f1135bc204c22bcf3401b580efb17b08a164c60d6d66ba2b6d58de"))
|
||||
(1544000, uint256S("0x0000112c5a0b02d5258361bd4ca4e859c2cfaeb80caef4fb6dd6a79f1856d85b"))
|
||||
(1545000, uint256S("0x0000369839fcf820ca45525787abc752a54826fd0a2ac5f6a4da13a1aefaa562"))
|
||||
(1546000, uint256S("0x00006200ddb88ab631c1a2fe6b3fa3b19e7568069e0381e061af26c3578fef7c"))
|
||||
(1547000, uint256S("0x000056f960fda0ec23bd1102a9b28d513e1f927449cc23a5e68f7e6ac9fee73f"))
|
||||
(1548000, uint256S("0x0000528915ed9c5b205fa0c8d1e3e354df58d87facd66bb441c0b572416bc668"))
|
||||
(1549000, uint256S("0x000058d83f9d7347a849e1097c45de1b2a3d8b0d66c2c9ffac1ef50d5f8f2e35"))
|
||||
(1550000, uint256S("0x00002f2255e089937ae2c11e0bf2f096dd2e4602b9d1e2c10747ade07629b45b"))
|
||||
(1551000, uint256S("0x00000b75bab95db82fe97910341f75a403ecd8ad7226e4cd20a1fdbe6e22c099"))
|
||||
(1552000, uint256S("0x00006c630f876f9d8c511c56ece86f6649dfc4e431c10e1b07d6adbcf35083b0"))
|
||||
(1553000, uint256S("0x000058856c3e68ed63195a8da5814c7a1163068e1431d2d956790a4ecf107f02"))
|
||||
(1554000, uint256S("0x00006269759675c42f0fef86e5a638b8ffe8e8e0a93ea08483398dc70a1dd32f"))
|
||||
(1555000, uint256S("0x00001350376b081909694bfabd00f0e87276bc896440f23ed0252f2e2a5194f5"))
|
||||
(1556000, uint256S("0x00003d7079ef71e7c159e6ab1cd92f3af5ac9e362e42a14530f1c31a8b74f5b0"))
|
||||
(1557000, uint256S("0x0000595ac7499c1fb41bd90a175c31ec50570d948491270931bd07e1492e251c"))
|
||||
(1558000, uint256S("0x00000e52e16cbc10f302a8b1676eccc61a687d7e595830afd37a9e6a2a553673"))
|
||||
(1559000, uint256S("0x000016ea90eaa3e6ed5ec1c0df2a9db32d4f5a3f85ef3ae276aa9aefca29d9cb"))
|
||||
(1560000, uint256S("0x0000280433109582ea0c96fa1867c86f70600dac6f9914a91ea049969594b809"))
|
||||
(1561000, uint256S("0x00006d64f133b1b715f1e8ba259f452e068d935216b52006623615cdeb5364bf"))
|
||||
(1562000, uint256S("0x00005ce06c254d44629cb5c7e1444a2662e74a39020e05c43c64f4a0315e362a"))
|
||||
(1563000, uint256S("0x000052fb949f15f05421f6682171802a7aa2138aafcc95d5f22bfb22542d59f4"))
|
||||
(1564000, uint256S("0x000057d41a403a9f0c0ec301f45ca86e4cb3df50bcfda7d7b0bab86ba9122205"))
|
||||
(1565000, uint256S("0x000051dad695df837258e4ab91db4f08efbaee1556a80b69a9c06461e1874a6f"))
|
||||
(1566000, uint256S("0x000007d82ca32972994e90aa8e2cd9555e31f9f8277949405249f15d45e963ea"))
|
||||
(1567000, uint256S("0x00002ddd9c4656c7d78d8917434f94070c0672967ae255d6f57646b9b09506ce"))
|
||||
(1568000, uint256S("0x00006bca7a17c03734dfeca39f23510a8eb8f25030034c99daa52111119d6331"))
|
||||
(1569000, uint256S("0x00007066b928536fc27343c0fec355ad0c52b59906223f48308e41c4ffd22339"))
|
||||
(1570000, uint256S("0x00001e8f4d2fd86654189f494ace0a835f855c960358d901b51a0eacbb391543"))
|
||||
(1571000, uint256S("0x00001309773bc979bed740fa624ed136241c8e492825b6ecfbdc39c025b24550"))
|
||||
(1572000, uint256S("0x000038cfb767f3b97dd3b546f1e9e6e52d7a623dcb41c5a7454597cecc1db4b7"))
|
||||
(1573000, uint256S("0x00008032108731e660a00b2812cb8b9a75f0ec16b143f9bceaf6410294c75904"))
|
||||
(1574000, uint256S("0x00002f7c6593ffc9e2ad1eabb1c9b3ba04f43f433ca62e93c9f318c6fe5ee3d9"))
|
||||
(1575000, uint256S("0x0000174e15f30ef6a742622af6659ad1c0641833156ac4c64144b54773cb7e30"))
|
||||
(1576000, uint256S("0x000081f693a5455a8b28883eb4c97ae09440bfe6c81a0f8253bccc76cb644fb9"))
|
||||
(1577000, uint256S("0x00006080530e97ff85b33784ea5fc8195320a4cb329e49a773df0a9f604a9aaa"))
|
||||
(1578000, uint256S("0x00002821144963291e50d22046bf65f5c01ebbe1607746b34461013664039a93"))
|
||||
(1579000, uint256S("0x00004cf0fa901f1e16bd5f0963773e5a5df0e210168a44a13be9398bfd7ca112"))
|
||||
(1580000, uint256S("0x00001e5033df33216358904bbbf6cb9cb3b03b2956893cfd8c032b4e5c4ca08a"))
|
||||
(1581000, uint256S("0x000087635ea70c8b1ccaa3754106dfb4f5d92219f522e7e7609b4dc75f404634"))
|
||||
(1582000, uint256S("0x00007745f61f8e388b3d0ae55b6313a695cc8622d8d76497ea4745e294061f7e"))
|
||||
(1583000, uint256S("0x0000636ab289c2287033066f8bea4222c5ee9dbdf3eab7945830d8779650a471"))
|
||||
(1584000, uint256S("0x000004128d5a5cf452ef9aff1a87f39613ead76508367786c72679be963a6d4b"))
|
||||
(1585000, uint256S("0x00000920f2773b73d275fef0ac909578d7d436423533c58b70201b552e010e74"))
|
||||
(1586000, uint256S("0x000018fda4e4ca2e4f0716e30c9f743cd415947bff1a8eb384dd50c92b2f0143"))
|
||||
(1587000, uint256S("0x00000aefb81fcf668e42994c46c961215518f712df4aa5556b7004a0c0bdc2c1"))
|
||||
(1588000, uint256S("0x000037177927587a0e5903dbf93408ca263bcf868018d827f7b248bb36394a7d"))
|
||||
(1589000, uint256S("0x00007e364a90288aae61feefbe6dcc218458c98ed9d4ab62a522a727f9dbd7e6"))
|
||||
(1590000, uint256S("0x000047707a12173afcfff8dfa0ab9790c84a2f233630adb35187656cdce4dbfa"))
|
||||
(1591000, uint256S("0x00001660b1ee772ad34fb435f8939f669ab3aa4e49c839f3c19fc380ce1bdb08"))
|
||||
(1592000, uint256S("0x000016d5ee6370b9e4e3d7fdd60c5791032c6df4b396a1bfed2a517444955f6e"))
|
||||
(1593000, uint256S("0x00002fd99027c0d83531ecd1b940f4c81b8f72796fba37f05f4f57cf788d2d90"))
|
||||
(1594000, uint256S("0x0000075f6c2da6e0f6323d083fd69ad0ec7119356aaf50b6d02f859af1f868ae"))
|
||||
(1595000, uint256S("0x0000a7ffc5b96746369c1a04dd062cc4ededf64f2a9ef11cf4b3bcab99946f55"))
|
||||
(1596000, uint256S("0x0000930876f4fdaeb5e7ff316214247ab7d47fee47f6d3c65b93639f7fbea0a1"))
|
||||
(1597000, uint256S("0x000064a14bdf8276b1ec884a0c9983f277a0bfeeeef5782b4e79dc7deae3c19e"))
|
||||
(1598000, uint256S("0x000084c89eb1776d748687f2e180d6640e5a7cc8c8de75706b02e29f87fef8be"))
|
||||
(1599000, uint256S("0x00001cdb7ec465e5edb8aaf78570970a425309f050fdb9ed376ad4b98a888b11"))
|
||||
(1600000, uint256S("0x000026c04739309ae03a6578613b71fca0572c9793521809967ada579cc1830b"))
|
||||
(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
|
||||
};
|
||||
} else {
|
||||
// all other HSC's with no checkpoints
|
||||
|
||||
@@ -11,10 +11,10 @@
|
||||
// Each line contains a BIP155 serialized address.
|
||||
//
|
||||
static const uint8_t chainparams_seed_main[] = {
|
||||
0x01,0x04,0x5b,0xd0,0x7f,0x51,0x00,0x00, // 91.208.127.81
|
||||
0x01,0x04,0x57,0xfb,0x4c,0xa6,0x00,0x00, // 87.251.76.166
|
||||
0x01,0x04,0x2d,0x52,0x44,0xe9,0x00,0x00, // 45.82.68.233
|
||||
0x01,0x04,0x57,0xfb,0x4c,0x21,0x00,0x00, // 87.251.76.33
|
||||
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,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
|
||||
@@ -22,8 +22,11 @@ static const uint8_t chainparams_seed_main[] = {
|
||||
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
|
||||
0x02,0x10,0x2a,0x0c,0xb6,0x41,0x06,0xf1,0x00,0x34,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00, // 2a0c:b641:6f1:34::2
|
||||
0x02,0x10,0x2a,0x0c,0xb6,0x41,0x06,0xf1,0x00,0x0c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00, // 2a0c:b641:6f1:c::2
|
||||
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
|
||||
0x02,0x10,0x24,0x06,0xef,0x80,0x00,0x01,0x14,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, // 2406:ef80:1:146e::1
|
||||
0x02,0x10,0x24,0x06,0xef,0x80,0x00,0x04,0x21,0x32,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, // 2406:ef80:4:2132::1
|
||||
0x05,0x20,0xfb,0xa8,0xca,0x3d,0xf4,0xc9,0x83,0x95,0xa8,0x07,0x05,0x6f,0xf8,0x46,0x69,0x6d,0x42,0x75,0x22,0xe9,0x80,0xd8,0x43,0x7c,0xbe,0x29,0xda,0x33,0x14,0xf9,0xfb,0x17,0x00,0x00, // 7oumuppuzgbzlkahavx7qrtjnvbhkixjqdmeg7f6fhndgfhz7mlq.b32.i2p
|
||||
};
|
||||
|
||||
|
||||
@@ -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 2
|
||||
#define CLIENT_VERSION_REVISION 3
|
||||
#define CLIENT_VERSION_BUILD 50
|
||||
|
||||
//! Set to true for release, false for prerelease or test build
|
||||
|
||||
@@ -563,11 +563,6 @@ CAmount CCoinsViewCache::GetValueIn(int32_t nHeight,int64_t *interestp,const CTr
|
||||
return 0;
|
||||
for (unsigned int i = 0; i < tx.vin.size(); i++)
|
||||
{
|
||||
//if (tx.IsPegsImport() && i==0)
|
||||
//{
|
||||
// nResult = GetCoinImportValue(tx);
|
||||
// continue;
|
||||
//}
|
||||
value = GetOutputFor(tx.vin[i]).nValue;
|
||||
nResult += value;
|
||||
}
|
||||
@@ -599,7 +594,7 @@ bool CCoinsViewCache::HaveInputs(const CTransaction& tx) const
|
||||
{
|
||||
if (!tx.IsMint()) {
|
||||
for (unsigned int i = 0; i < tx.vin.size(); i++) {
|
||||
if (tx.IsPegsImport() && i==0) continue;
|
||||
//if (tx.IsPegsImport() && i==0) continue;
|
||||
const COutPoint &prevout = tx.vin[i].prevout;
|
||||
const CCoins* coins = AccessCoins(prevout.hash);
|
||||
if (!coins || !coins->IsAvailable(prevout.n)) {
|
||||
@@ -621,7 +616,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 || tx.IsCoinImport() ) { // || tx.IsPegsImport()) {
|
||||
return MAX_PRIORITY;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,4 +13,4 @@ cd $DIR
|
||||
SEEDNODE=176.126.87.241
|
||||
|
||||
# Remember Remember the 5th November for freedom of speech is not free!!
|
||||
./hush-smart-chain -ac_name=DRAGONX -ac_algo=randomx -ac_halving=3500000 -ac_reward=300000000 -ac_blocktime=36 -ac_private=1 -addnode=$SEEDNODE $@
|
||||
./hush-arrakis-chain -ac_name=DRAGONX -ac_algo=randomx -ac_halving=3500000 -ac_reward=300000000 -ac_blocktime=36 -ac_private=1 -addnode=$SEEDNODE $@
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#include "tlsmanager.h"
|
||||
#include "utiltls.h"
|
||||
|
||||
extern bool ShutdownRequested();
|
||||
|
||||
using namespace std;
|
||||
// store our preferred cipherlist so we can use it for debug/etc later on
|
||||
std::string TLS_CIPHERLIST;
|
||||
@@ -85,6 +87,10 @@ int TLSManager::waitFor(SSLConnectionRoutine eRoutine, SOCKET hSocket, WOLFSSL*
|
||||
|
||||
while (true)
|
||||
{
|
||||
if(ShutdownRequested()) {
|
||||
LogPrintf("%s: shutdown requested, exiting\n", __func__);
|
||||
return retOp;
|
||||
}
|
||||
// clear the current thread's error queue
|
||||
wolfSSL_ERR_clear_error();
|
||||
|
||||
|
||||
@@ -24,6 +24,19 @@
|
||||
#include "cc/CCinclude.h"
|
||||
#include "sietch.h"
|
||||
|
||||
// This is the address for pubkey = 0x000000000000000000000000000000000 (33 bytes)
|
||||
// Funds sent to a burn address can never be spent because the pubkey is invalid
|
||||
// because it is not a point on the elliptic curve we use (secp256k1, like all other
|
||||
// Bitcoin-derived codebases). secp256k1 is defined by the equation y^2 = x^3 + 7 .
|
||||
// Using pubkey=0 also implies privkey=0 and the (pubkey,privkey) pair are the same
|
||||
// as the (x,y) pair in the equation. If you plug in (0,0) to the equation you get
|
||||
// 0^2 = 0^3 + 7 or 0=7 which is false. This means that (0,0) is not a valid point
|
||||
// on the secp256k1 curve. Therefore there is no valid signature to spend the funds
|
||||
// sent to the burn address, because a valid signature must use a valid point on the
|
||||
// elliptic curve being used. For these reasons, we can prove that the burn address
|
||||
// receives funds which can never be spent.
|
||||
#define BURN_ADDRESS "RD6GgnrMpPaTSMn8vai6yiGA7mN4QGPVMY"
|
||||
|
||||
int32_t hush_notaries(uint8_t pubkeys[64][33],int32_t height,uint32_t timestamp);
|
||||
int32_t hush_findnotary(int32_t *numnotariesp,uint8_t *pubkey33,int32_t height,uint32_t timestamp);
|
||||
int32_t hush_voutupdate(bool fJustCheck,int32_t *isratificationp,int32_t notaryid,uint8_t *scriptbuf,int32_t scriptlen,int32_t height,uint256 txhash,int32_t i,int32_t j,uint64_t *voutmaskp,int32_t *specialtxp,int32_t *notarizedheightp,uint64_t value,int32_t notarized,uint64_t signedmask,uint32_t timestamp);
|
||||
@@ -948,7 +961,7 @@ CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams);
|
||||
// This function defines the Hush Founders Reward (AKA Dev Tax)
|
||||
// 10% of all block rewards go towards Hush core team
|
||||
// If you do not like this, you are encouraged to fork the chain
|
||||
// or start your own Hush Smart Chain: https://git.hush.is/hush/hush-smart-chains
|
||||
// or start your own Hush Arrakis Chain: https://git.hush.is/hush/hush-arrakis-chains
|
||||
// HUSH supply curve cannot be exactly represented via CLI args, so we do it ourselves.
|
||||
// You specify the BR, and the FR % gets added so 10% of 12.5 is 1.25
|
||||
// but to tell the AC params, I need to say "11% of 11.25" is 1.25
|
||||
@@ -1798,15 +1811,15 @@ int64_t hush_newcoins(int64_t *zfundsp,int32_t nHeight,CBlock *pblock)
|
||||
{
|
||||
for (j=0; j<m-1; j++)
|
||||
{
|
||||
// This is an example address used in docs
|
||||
if ( ExtractDestination(tx.vout[j].scriptPubKey,address) != 0 && strcmp("RD6GgnrMpPaTSMn8vai6yiGA7mN4QGPVMY",CBitcoinAddress(address).ToString().c_str()) != 0 )
|
||||
// This address is a burn address which is used in some RPC documentation
|
||||
if ( ExtractDestination(tx.vout[j].scriptPubKey,address) != 0 && strcmp(BURN_ADDRESS,CBitcoinAddress(address).ToString().c_str()) != 0 )
|
||||
voutsum += tx.vout[j].nValue;
|
||||
else printf("skip %.8f -> %s\n",dstr(tx.vout[j].nValue),CBitcoinAddress(address).ToString().c_str());
|
||||
}
|
||||
script = (uint8_t *)&tx.vout[j].scriptPubKey[0];
|
||||
if ( script == 0 || script[0] != 0x6a )
|
||||
{
|
||||
if ( ExtractDestination(tx.vout[j].scriptPubKey,address) != 0 && strcmp("RD6GgnrMpPaTSMn8vai6yiGA7mN4QGPVMY",CBitcoinAddress(address).ToString().c_str()) != 0 )
|
||||
if ( ExtractDestination(tx.vout[j].scriptPubKey,address) != 0 && strcmp(BURN_ADDRESS,CBitcoinAddress(address).ToString().c_str()) != 0 )
|
||||
voutsum += tx.vout[j].nValue;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1611,7 +1611,7 @@ uint64_t hush_block_subsidy(int height)
|
||||
return subsidy;
|
||||
}
|
||||
|
||||
// wrapper for more general supply curves of Hush Smart Chains
|
||||
// wrapper for more general supply curves of Hush Arrakis Chains
|
||||
uint64_t hush_sc_block_subsidy(int nHeight)
|
||||
{
|
||||
// Find current era, start from beginning reward, and determine current subsidy
|
||||
@@ -1796,29 +1796,40 @@ void hush_args(char *argv0)
|
||||
fprintf(stderr,".oO Starting %s Full Node (Extreme Privacy!) with genproc=%d notary=%d\n",name.c_str(),HUSH_MININGTHREADS, IS_HUSH_NOTARY);
|
||||
|
||||
vector<string> HUSH_nodes = {};
|
||||
vector<string> DRAGONX_nodes = {};
|
||||
// Only HUSH3 and DRAGONX connect to these by default, other HACs must opt-in via -connect/-addnode
|
||||
const bool ishush3 = strncmp(name.c_str(), "HUSH3",5) == 0 ? true : false;
|
||||
const bool isdragonx = strncmp(name.c_str(), "DRAGONX",7) == 0 ? true : false;
|
||||
|
||||
LogPrint("net", "%s: ishush3=%d isdragonx=%d\n", __func__, ishush3, isdragonx);
|
||||
if (ishush3 || isdragonx) {
|
||||
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"};
|
||||
"node2.hush.land","node3.hush.land","node4.hush.land",
|
||||
"node5.hush.land","node6.hush.land","node7.hush.land"};
|
||||
}
|
||||
|
||||
if (isdragonx) {
|
||||
DRAGONX_nodes = {"node1.dragonx.is","node2.dragonx.is","node3.dragonx.is",
|
||||
"node4.dragonx.is","node5.dragonx.is","node6.dragonx.is"};
|
||||
}
|
||||
|
||||
vector<string> more_nodes = mapMultiArgs["-addnode"];
|
||||
if (more_nodes.size() > 0) {
|
||||
fprintf(stderr,"%s: Adding %lu more nodes via custom -addnode arguments\n", __func__, more_nodes.size() );
|
||||
}
|
||||
// Add default HUSH nodes after custom addnodes, if applicable
|
||||
// Add default HUSH and DRAGONX nodes after custom addnodes, if applicable
|
||||
if(HUSH_nodes.size() > 0) {
|
||||
LogPrint("net", "%s: adding %d hostname-based nodes\n", __func__, HUSH_nodes.size() );
|
||||
LogPrint("net", "%s: adding %d HUSH3 hostname-based nodes\n", __func__, HUSH_nodes.size() );
|
||||
more_nodes.insert( more_nodes.end(), HUSH_nodes.begin(), HUSH_nodes.end() );
|
||||
}
|
||||
|
||||
if(DRAGONX_nodes.size() > 0) {
|
||||
LogPrint("net", "%s: adding %d DRAGONX hostname-based nodes\n", __func__, DRAGONX_nodes.size() );
|
||||
more_nodes.insert( more_nodes.end(), DRAGONX_nodes.begin(), DRAGONX_nodes.end() );
|
||||
}
|
||||
|
||||
mapMultiArgs["-addnode"] = more_nodes;
|
||||
HUSH_STOPAT = GetArg("-stopat",0);
|
||||
MAX_REORG_LENGTH = GetArg("-maxreorg",MAX_REORG_LENGTH);
|
||||
|
||||
10
src/init.cpp
10
src/init.cpp
@@ -479,7 +479,6 @@ std::string HelpMessage(HelpMessageMode mode)
|
||||
if (showDebug)
|
||||
strUsage += HelpMessageOpt("-mintxfee=<amt>", strprintf("Fees (in %s/kB) smaller than this are considered zero fee for transaction creation (default: %s)",
|
||||
CURRENCY_UNIT, FormatMoney(CWallet::minTxFee.GetFeePerK())));
|
||||
strUsage += HelpMessageOpt("-opretmintxfee=<amt>", strprintf(_("Minimum fee (in %s/kB) to allow for OP_RETURN transactions (default: %s)"), CURRENCY_UNIT, 400000 ));
|
||||
strUsage += HelpMessageOpt("-paytxfee=<amt>", strprintf(_("Fee (in %s/kB) to add to transactions you send (default: %s)"), CURRENCY_UNIT, FormatMoney(payTxFee.GetFeePerK())));
|
||||
// If this is used incorrectly (-rescanheight too large), then the local wallet may attempt to spend funds which it does not have witness data about
|
||||
// which will cause a "missing inputs" error when added to the mempool. Rescanning from correct height will fix this.
|
||||
@@ -1085,6 +1084,13 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
||||
LogPrintf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
|
||||
LogPrintf("Hush version %s (%s)\n", FormatFullVersion());
|
||||
|
||||
|
||||
#ifdef DEBUG_LOCKORDER
|
||||
LogPrintf("DEBUG_LOCKORDER enabled\n");
|
||||
#else
|
||||
LogPrintf("DEBUG_LOCKORDER disabled\n");
|
||||
#endif
|
||||
|
||||
// when specifying an explicit binding address, you want to listen on it
|
||||
// even when -connect or -proxy is specified
|
||||
if (mapArgs.count("-bind")) {
|
||||
@@ -1128,7 +1134,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
||||
LogPrintf("%s: parameter interaction: -externalip set -> setting -discover=0\n", __func__);
|
||||
}
|
||||
|
||||
// Read asmap file by default for HUSH3 and all Hush Smart Chains
|
||||
// Read asmap file by default for HUSH3 and all Hush Arrakis Chains
|
||||
if (GetArg("-asmap",1)) {
|
||||
fs::path asmap_path = fs::path(GetArg("-asmap", ""));
|
||||
|
||||
|
||||
103
src/main.cpp
103
src/main.cpp
@@ -33,6 +33,7 @@
|
||||
#include "net.h"
|
||||
#include "netmessagemaker.h"
|
||||
#include "pow.h"
|
||||
#include "time.h"
|
||||
#include "script/interpreter.h"
|
||||
#include "txdb.h"
|
||||
#include "txmempool.h"
|
||||
@@ -106,7 +107,7 @@ size_t nCoinCacheUsage = 5000 * 300;
|
||||
uint64_t nPruneTarget = 0;
|
||||
// If the tip is older than this (in seconds), the node is considered to be in initial block download.
|
||||
int64_t nMaxTipAge = DEFAULT_MAX_TIP_AGE;
|
||||
bool ishush3 = strncmp(SMART_CHAIN_SYMBOL, "HUSH3",5) == 0 ? true : false;
|
||||
const bool ishush3 = strncmp(SMART_CHAIN_SYMBOL, "HUSH3",5) == 0 ? true : false;
|
||||
int32_t nFirstHalvingHeight = 340000;
|
||||
|
||||
unsigned int expiryDelta = DEFAULT_TX_EXPIRY_DELTA;
|
||||
@@ -815,7 +816,7 @@ bool hush_dailysnapshot(int32_t height)
|
||||
for (unsigned int j = tx.vin.size(); j-- > 0;)
|
||||
{
|
||||
uint256 blockhash; CTransaction txin;
|
||||
if (tx.IsPegsImport() && j==0) continue;
|
||||
//if (tx.IsPegsImport() && j==0) continue;
|
||||
if ( !tx.IsCoinImport() && !tx.IsCoinBase() && myGetTransaction(tx.vin[j].prevout.hash,txin,blockhash) )
|
||||
{
|
||||
int vout = tx.vin[j].prevout.n;
|
||||
@@ -1107,7 +1108,7 @@ bool AreInputsStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs,
|
||||
|
||||
for (unsigned int i = 0; i < tx.vin.size(); i++)
|
||||
{
|
||||
if (tx.IsPegsImport() && i==0) continue;
|
||||
//if (tx.IsPegsImport() && i==0) continue;
|
||||
const CTxOut& prev = mapInputs.GetOutputFor(tx.vin[i]);
|
||||
|
||||
vector<vector<unsigned char> > vSolutions;
|
||||
@@ -1185,7 +1186,7 @@ unsigned int GetP2SHSigOpCount(const CTransaction& tx, const CCoinsViewCache& in
|
||||
unsigned int nSigOps = 0;
|
||||
for (unsigned int i = 0; i < tx.vin.size(); i++)
|
||||
{
|
||||
if (tx.IsPegsImport() && i==0) continue;
|
||||
//if (tx.IsPegsImport() && i==0) continue;
|
||||
const CTxOut &prevout = inputs.GetOutputFor(tx.vin[i]);
|
||||
if (prevout.scriptPubKey.IsPayToScriptHash())
|
||||
nSigOps += prevout.scriptPubKey.GetSigOpCount(tx.vin[i].scriptSig);
|
||||
@@ -1428,7 +1429,7 @@ int32_t hush_isnotaryvout(char *coinaddr,uint32_t tiptime) {
|
||||
bool istush = strncmp(SMART_CHAIN_SYMBOL, "TUSH",4) == 0 ? true : false;
|
||||
int32_t height = chainActive.LastTip()->GetHeight();
|
||||
int32_t season = (ishush3 || istush) ? gethushseason(height) : getacseason(tiptime);
|
||||
fprintf(stderr,"%s: season=%d, tiptime=%d\n", __func__, season,tiptime);
|
||||
fprintf(stderr,"%s: coinaddr=%s season=%d, tiptime=%d\n", __func__, coinaddr, season,tiptime);
|
||||
if ( NOTARY_ADDRESSES[season-1][0][0] == 0 ) {
|
||||
uint8_t pubkeys[64][33];
|
||||
hush_notaries(pubkeys,0,tiptime);
|
||||
@@ -1731,22 +1732,6 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa
|
||||
tiptime = (uint32_t)time(NULL);
|
||||
else tiptime = (uint32_t)chainActive.LastTip()->nTime;
|
||||
|
||||
/*
|
||||
// Node operator can choose to reject tx by number of transparent inputs
|
||||
static_assert(std::numeric_limits<size_t>::max() >= std::numeric_limits<int64_t>::max(), "size_t too small");
|
||||
const size_t limit = 0; //(size_t) GetArg("-mempooltxinputlimit", 0);
|
||||
// Limit is ignored if Overwinter is active, which is the case on HUSH3 and all HAC's
|
||||
if (NetworkUpgradeActive(nextBlockHeight, Params().GetConsensus(), Consensus::UPGRADE_OVERWINTER)) {
|
||||
limit = 0;
|
||||
}
|
||||
if (limit > 0) {
|
||||
size_t n = tx.vin.size();
|
||||
if (n > limit) {
|
||||
LogPrint("mempool", "Dropping txid %s : too many transparent inputs %zu > limit %zu\n", tx.GetHash().ToString(), n, limit );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
*/
|
||||
auto verifier = libzcash::ProofVerifier::Strict();
|
||||
|
||||
if (!CheckTransaction(tiptime,tx, state, verifier, 0, 0))
|
||||
@@ -1853,11 +1838,6 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa
|
||||
return state.Invalid(false, REJECT_DUPLICATE, "already have coins");
|
||||
}
|
||||
|
||||
//if (tx.IsCoinImport() || tx.IsPegsImport()) {
|
||||
// // Inverse of normal case; if input exists, it's been spent
|
||||
// if (ExistsImportTombstone(tx, view))
|
||||
// return state.Invalid(false, REJECT_DUPLICATE, "import tombstone exists");
|
||||
//} else
|
||||
{
|
||||
// do all inputs exist?
|
||||
// Note that this does not check for the presence of actual outputs (see the next check for that),
|
||||
@@ -1919,7 +1899,7 @@ 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()) {
|
||||
if (!tx.IsCoinImport()) { // && !tx.IsPegsImport()) {
|
||||
BOOST_FOREACH(const CTxIn &txin, tx.vin) {
|
||||
const CCoins *coins = view.AccessCoins(txin.prevout.hash);
|
||||
if (coins->IsCoinBase()) {
|
||||
@@ -1957,7 +1937,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() && !tx.IsPegsImport())
|
||||
if (fLimitFree && nFees < ::minRelayTxFee.GetFee(nSize) && !tx.IsCoinImport() )
|
||||
{
|
||||
static CCriticalSection csFreeLimiter;
|
||||
static double dFreeCount;
|
||||
@@ -1980,7 +1960,17 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa
|
||||
dFreeCount += nSize;
|
||||
}
|
||||
|
||||
if (!tx.IsCoinImport() && !tx.IsPegsImport() && 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
|
||||
// transactions (z2z) are protected from absurd fees, it is only users who are storing
|
||||
// arbitrary data via a z2t transaction are allowed to (or potentially required) to pay high fees
|
||||
// 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(),
|
||||
@@ -2579,7 +2569,7 @@ void UpdateCoins(const CTransaction& tx, CCoinsViewCache& inputs, CTxUndo &txund
|
||||
{
|
||||
txundo.vprevout.reserve(tx.vin.size());
|
||||
BOOST_FOREACH(const CTxIn &txin, tx.vin) {
|
||||
if (tx.IsPegsImport() && txin.prevout.n==10e8) continue;
|
||||
//if (tx.IsPegsImport() && txin.prevout.n==10e8) continue;
|
||||
CCoinsModifier coins = inputs.ModifyCoins(txin.prevout.hash);
|
||||
unsigned nPos = txin.prevout.n;
|
||||
|
||||
@@ -2601,12 +2591,6 @@ void UpdateCoins(const CTransaction& tx, CCoinsViewCache& inputs, CTxUndo &txund
|
||||
inputs.SetNullifiers(tx, true);
|
||||
|
||||
inputs.ModifyCoins(tx.GetHash())->FromTx(tx, nHeight); // add outputs
|
||||
|
||||
// Unorthodox state
|
||||
//if (tx.IsCoinImport() || tx.IsPegsImport()) {
|
||||
// // add a tombstone for the burnTx
|
||||
// AddImportTombstone(tx, inputs, nHeight);
|
||||
//}
|
||||
}
|
||||
|
||||
void UpdateCoins(const CTransaction& tx, CCoinsViewCache& inputs, int nHeight)
|
||||
@@ -2647,13 +2631,6 @@ namespace Consensus {
|
||||
CAmount nFees = 0;
|
||||
for (unsigned int i = 0; i < tx.vin.size(); i++)
|
||||
{
|
||||
/*
|
||||
if (tx.IsPegsImport() && i==0)
|
||||
{
|
||||
nValueIn=GetCoinImportValue(tx);
|
||||
continue;
|
||||
}
|
||||
*/
|
||||
const COutPoint &prevout = tx.vin[i].prevout;
|
||||
const CCoins *coins = inputs.AccessCoins(prevout.hash);
|
||||
assert(coins);
|
||||
@@ -2741,7 +2718,7 @@ bool ContextualCheckInputs(
|
||||
// still computed and checked, and any change will be caught at the next checkpoint.
|
||||
if (fScriptChecks) {
|
||||
for (unsigned int i = 0; i < tx.vin.size(); i++) {
|
||||
if (tx.IsPegsImport() && i==0) continue;
|
||||
//if (tx.IsPegsImport() && i==0) continue;
|
||||
const COutPoint &prevout = tx.vin[i].prevout;
|
||||
const CCoins* coins = inputs.AccessCoins(prevout.hash);
|
||||
assert(coins);
|
||||
@@ -2777,15 +2754,6 @@ bool ContextualCheckInputs(
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
if (tx.IsCoinImport() || tx.IsPegsImport())
|
||||
{
|
||||
LOCK(cs_main);
|
||||
ServerTransactionSignatureChecker checker(&tx, 0, 0, false, txdata);
|
||||
return VerifyCoinImport(tx.vin[0].scriptSig, checker, state);
|
||||
}
|
||||
*/
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -3021,11 +2989,11 @@ bool DisconnectBlock(CBlock& block, CValidationState& state, CBlockIndex* pindex
|
||||
// restore inputs
|
||||
if (!tx.IsMint()) {
|
||||
CTxUndo &txundo = blockUndo.vtxundo[i-1];
|
||||
if (tx.IsPegsImport()) txundo.vprevout.insert(txundo.vprevout.begin(),CTxInUndo());
|
||||
//if (tx.IsPegsImport()) txundo.vprevout.insert(txundo.vprevout.begin(),CTxInUndo());
|
||||
if (txundo.vprevout.size() != tx.vin.size())
|
||||
return error("DisconnectBlock(): transaction and undo data inconsistent");
|
||||
for (unsigned int j = tx.vin.size(); j-- > 0;) {
|
||||
if (tx.IsPegsImport() && j==0) continue;
|
||||
//if (tx.IsPegsImport() && j==0) continue;
|
||||
const COutPoint &out = tx.vin[j].prevout;
|
||||
const CTxInUndo &undo = txundo.vprevout[j];
|
||||
if (!ApplyTxInUndo(undo, view, out))
|
||||
@@ -3059,12 +3027,6 @@ bool DisconnectBlock(CBlock& block, CValidationState& state, CBlockIndex* pindex
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
else if (tx.IsCoinImport() || tx.IsPegsImport())
|
||||
{
|
||||
RemoveImportTombstone(tx, view);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
// set the old best Sprout anchor back
|
||||
@@ -3372,7 +3334,7 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
|
||||
{
|
||||
for (size_t j = 0; j < tx.vin.size(); j++)
|
||||
{
|
||||
if (tx.IsPegsImport() && j==0) continue;
|
||||
//if (tx.IsPegsImport() && j==0) continue;
|
||||
const CTxIn input = tx.vin[j];
|
||||
const CTxOut &prevout = view.GetOutputFor(tx.vin[j]);
|
||||
|
||||
@@ -4333,7 +4295,15 @@ bool ActivateBestChain(bool fSkipdpow, CValidationState &state, CBlock *pblock)
|
||||
CBlockIndex *pindexMostWork = NULL;
|
||||
const CChainParams& chainParams = Params();
|
||||
do {
|
||||
boost::this_thread::interruption_point();
|
||||
// Sleep briefly to allow other threads a chance at grabbing cs_main if
|
||||
// we are connecting a long chain of blocks and would otherwise hold the
|
||||
// lock almost continuously. This helps
|
||||
// the internal wallet, if it is enabled, to keep up with the connected
|
||||
// blocks, reducing the overall time until the node becomes usable.
|
||||
//
|
||||
// This is defined to be an interruption point.
|
||||
// <https://www.boost.org/doc/libs/1_72_0/doc/html/thread/thread_management.html#interruption_points>
|
||||
boost::this_thread::sleep_for(boost::chrono::microseconds(200));
|
||||
|
||||
if (ShutdownRequested())
|
||||
break;
|
||||
@@ -6886,7 +6856,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
|
||||
LogPrintf("dropmessagestest DROPPING RECV MESSAGE\n");
|
||||
return true;
|
||||
}
|
||||
auto p2pdebug = GetArg("-p2pdebug",0);
|
||||
const bool p2pdebug = GetArg("-p2pdebug",0);
|
||||
|
||||
if(p2pdebug)
|
||||
fprintf(stderr,"%s: netmsg: %s from %s\n", __func__, strCommand.c_str(), pfrom->addr.ToString().c_str() );
|
||||
@@ -6913,10 +6883,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
|
||||
CAddress addrFrom;
|
||||
uint64_t nNonce = 1;
|
||||
int nVersion; // use temporary for version, don't set version number until validated as connected
|
||||
int minVersion = MIN_PEER_PROTO_VERSION;
|
||||
const int minVersion = ishush3 ? MIN_HUSH_PEER_PROTO_VERSION : MIN_PEER_PROTO_VERSION;
|
||||
vRecv >> nVersion >> pfrom->nServices >> nTime >> addrMe;
|
||||
if (nVersion == 10300)
|
||||
nVersion = 300;
|
||||
|
||||
if (nVersion < minVersion)
|
||||
{
|
||||
// disconnect from peers older than this proto version
|
||||
|
||||
@@ -308,12 +308,7 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
|
||||
bool fMissingInputs = false;
|
||||
bool fNotarization = false;
|
||||
std::vector<int8_t> TMP_NotarizationNotaries;
|
||||
//if (tx.IsCoinImport())
|
||||
//{
|
||||
// CAmount nValueIn = GetCoinImportValue(tx); // burn amount
|
||||
// nTotalIn += nValueIn;
|
||||
// dPriority += (double)nValueIn * 1000; // flat multiplier... max = 1e16.
|
||||
//} else
|
||||
|
||||
{
|
||||
TMP_NotarizationNotaries.clear();
|
||||
bool fToCryptoAddress = false;
|
||||
@@ -322,15 +317,6 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
|
||||
|
||||
BOOST_FOREACH(const CTxIn& txin, tx.vin)
|
||||
{
|
||||
/*
|
||||
if (tx.IsPegsImport() && txin.prevout.n==10e8)
|
||||
{
|
||||
CAmount nValueIn = GetCoinImportValue(tx); // burn amount
|
||||
nTotalIn += nValueIn;
|
||||
dPriority += (double)nValueIn * 1000; // flat multiplier... max = 1e16.
|
||||
continue;
|
||||
}
|
||||
*/
|
||||
// Read prev transaction
|
||||
if (!view.HaveCoins(txin.prevout.hash))
|
||||
{
|
||||
@@ -489,14 +475,10 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
|
||||
// fprintf(stderr,"%s: nTxSize = %u\n", __func__, nTxSize);
|
||||
|
||||
// Opret spam limits
|
||||
if (mapArgs.count("-opretmintxfee"))
|
||||
const bool opretminfee = true;
|
||||
if (opretminfee)
|
||||
{
|
||||
CAmount n = 0;
|
||||
CFeeRate opretMinFeeRate;
|
||||
if (ParseMoney(mapArgs["-opretmintxfee"], n) && n > 0)
|
||||
opretMinFeeRate = CFeeRate(n);
|
||||
else
|
||||
opretMinFeeRate = CFeeRate(400000); // default opretMinFeeRate (1 HUSH per 250 Kb = 0.004 per 1 Kb = 400000 puposhis per 1 Kb)
|
||||
CFeeRate opretMinFeeRate = CFeeRate(10000000); // default opretMinFeeRate 0.1 HUSH
|
||||
|
||||
bool fSpamTx = false;
|
||||
unsigned int nTxSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION);
|
||||
@@ -515,9 +497,13 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
|
||||
}
|
||||
}
|
||||
|
||||
if ((nTxOpretSize > 256) && (feeRate < opretMinFeeRate)) fSpamTx = true;
|
||||
// std::cerr << tx.GetHash().ToString() << " nTxSize." << nTxSize << " nTxOpretSize." << nTxOpretSize << " feeRate." << feeRate.ToString() << " opretMinFeeRate." << opretMinFeeRate.ToString() << " fSpamTx." << fSpamTx << std::endl;
|
||||
if (fSpamTx) continue;
|
||||
// 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;
|
||||
}
|
||||
|
||||
@@ -711,7 +697,7 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
|
||||
if ( totalsats == 0 )
|
||||
{
|
||||
fprintf(stderr, "Could not create notary payment, trying again.\n");
|
||||
if ( SMART_CHAIN_SYMBOL[0] == 0 || (SMART_CHAIN_SYMBOL[0] != 0 && !isStake) )
|
||||
if ( !isStake )
|
||||
{
|
||||
LEAVE_CRITICAL_SECTION(cs_main);
|
||||
LEAVE_CRITICAL_SECTION(mempool.cs);
|
||||
@@ -756,52 +742,14 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
|
||||
}
|
||||
pblock->nSolution.clear();
|
||||
pblocktemplate->vTxSigOps[0] = GetLegacySigOpCount(pblock->vtx[0]);
|
||||
/*
|
||||
if ( SMART_CHAIN_SYMBOL[0] == 0 && IS_HUSH_NOTARY != 0 && My_notaryid >= 0 )
|
||||
{
|
||||
uint32_t r; CScript opret; void **ptr=0;
|
||||
|
||||
CMutableTransaction txNotary = CreateNewContextualCMutableTransaction(Params().GetConsensus(), chainActive.Height() + 1);
|
||||
if ( pblock->nTime < pindexPrev->nTime+60 )
|
||||
pblock->nTime = pindexPrev->nTime + 60;
|
||||
if ( gpucount < 33 )
|
||||
{
|
||||
uint8_t tmpbuffer[40]; uint32_t r; int32_t n=0; uint256 randvals;
|
||||
memcpy(&tmpbuffer[n],&My_notaryid,sizeof(My_notaryid)), n += sizeof(My_notaryid);
|
||||
memcpy(&tmpbuffer[n],&Mining_height,sizeof(Mining_height)), n += sizeof(Mining_height);
|
||||
memcpy(&tmpbuffer[n],&pblock->hashPrevBlock,sizeof(pblock->hashPrevBlock)), n += sizeof(pblock->hashPrevBlock);
|
||||
vcalc_sha256(0,(uint8_t *)&randvals,tmpbuffer,n);
|
||||
memcpy(&r,&randvals,sizeof(r));
|
||||
pblock->nTime += (r % (33 - gpucount)*(33 - gpucount));
|
||||
}
|
||||
if ( hush_notaryvin(txNotary,NOTARY_PUBKEY33,ptr) > 0 )
|
||||
{
|
||||
CAmount txfees = 5000;
|
||||
pblock->vtx.push_back(txNotary);
|
||||
pblocktemplate->vTxFees.push_back(txfees);
|
||||
pblocktemplate->vTxSigOps.push_back(GetLegacySigOpCount(txNotary));
|
||||
nFees += txfees;
|
||||
pblocktemplate->vTxFees[0] = -nFees;
|
||||
//*(uint64_t *)(&pblock->vtx[0].vout[0].nValue) += txfees;
|
||||
//fprintf(stderr,"added notaryvin\n");
|
||||
} else {
|
||||
fprintf(stderr,"error adding notaryvin, need to create 0.0001 utxos\n");
|
||||
if ( SMART_CHAIN_SYMBOL[0] == 0 || (SMART_CHAIN_SYMBOL[0] != 0 && !isStake) )
|
||||
{
|
||||
LEAVE_CRITICAL_SECTION(cs_main);
|
||||
LEAVE_CRITICAL_SECTION(mempool.cs);
|
||||
}
|
||||
return(0);
|
||||
}
|
||||
} else */
|
||||
|
||||
if ( ASSETCHAINS_CC == 0 && pindexPrev != 0 && ASSETCHAINS_STAKED == 0 && (SMART_CHAIN_SYMBOL[0] != 0 || IS_HUSH_NOTARY == 0 || My_notaryid < 0) )
|
||||
if ( ASSETCHAINS_CC == 0 && pindexPrev != 0 && ASSETCHAINS_STAKED == 0 && (IS_HUSH_NOTARY == 0 || My_notaryid < 0) )
|
||||
{
|
||||
CValidationState state;
|
||||
//fprintf(stderr,"%s: check validity\n", __func__);
|
||||
if ( !TestBlockValidity(state, *pblock, pindexPrev, false, false)) // invokes CC checks
|
||||
{
|
||||
if ( (SMART_CHAIN_SYMBOL[0] != 0 && !isStake) )
|
||||
if ( !isStake )
|
||||
{
|
||||
LEAVE_CRITICAL_SECTION(cs_main);
|
||||
LEAVE_CRITICAL_SECTION(mempool.cs);
|
||||
@@ -813,7 +761,7 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
|
||||
//fprintf(stderr,"valid\n");
|
||||
}
|
||||
}
|
||||
if ( (SMART_CHAIN_SYMBOL[0] != 0 && !isStake) )
|
||||
if ( !isStake )
|
||||
{
|
||||
LEAVE_CRITICAL_SECTION(cs_main);
|
||||
LEAVE_CRITICAL_SECTION(mempool.cs);
|
||||
@@ -931,6 +879,7 @@ static bool ProcessBlockFound(CBlock* pblock)
|
||||
|
||||
// Found a solution
|
||||
{
|
||||
LOCK(cs_main);
|
||||
if (pblock->hashPrevBlock != chainActive.LastTip()->GetBlockHash())
|
||||
{
|
||||
uint256 hash; int32_t i;
|
||||
@@ -1128,7 +1077,7 @@ void static RandomXMiner()
|
||||
char randomxHash[RANDOMX_HASH_SIZE];
|
||||
rxdebug("%s: created randomxHash of size %d\n", RANDOMX_HASH_SIZE);
|
||||
char randomxKey[82]; // randomx spec says keysize of >60 bytes is implementation-specific
|
||||
// initial randomx key is unique to every Hush Smart Chain, and has at least 9 bytes (2^9=128 bits) of entropy
|
||||
// initial randomx key is unique to every Hush Arrakis Chain, and has at least 9 bytes (2^9=128 bits) of entropy
|
||||
// since magic is 4 bytes, rpc port is 4 bytes and smart chain symbol must be at least 1 character long
|
||||
snprintf(randomxKey, 81, "%08x%s%08x", ASSETCHAINS_MAGIC, SMART_CHAIN_SYMBOL, ASSETCHAINS_RPCPORT);
|
||||
|
||||
@@ -1174,7 +1123,11 @@ void static RandomXMiner()
|
||||
|
||||
// Create new block
|
||||
unsigned int nTransactionsUpdatedLast = mempool.GetTransactionsUpdated();
|
||||
CBlockIndex* pindexPrev = chainActive.LastTip();
|
||||
CBlockIndex* pindexPrev;
|
||||
{
|
||||
LOCK(cs_main);
|
||||
pindexPrev = chainActive.LastTip();
|
||||
}
|
||||
|
||||
// If we don't have a valid chain tip to work from, wait and try again.
|
||||
if (pindexPrev == nullptr) {
|
||||
@@ -1367,6 +1320,7 @@ void static RandomXMiner()
|
||||
}
|
||||
|
||||
CValidationState state;
|
||||
//{ LOCK(cs_main);
|
||||
if ( !TestBlockValidity(state,B, chainActive.LastTip(), true, false))
|
||||
{
|
||||
h = UintToArith256(B.GetHash());
|
||||
@@ -1377,6 +1331,7 @@ void static RandomXMiner()
|
||||
fprintf(stderr,"\n");
|
||||
return(false);
|
||||
}
|
||||
//}
|
||||
SetThreadPriority(THREAD_PRIORITY_NORMAL);
|
||||
LogPrintf("HushRandomXMiner:\n");
|
||||
LogPrintf("proof-of-work found \n hash: %s \ntarget: %s\n", B.GetHash().GetHex(), HASHTarget.GetHex());
|
||||
@@ -1735,6 +1690,8 @@ void static BitcoinMiner()
|
||||
fprintf(stderr," mined %s block %d!\n",SMART_CHAIN_SYMBOL,Mining_height);
|
||||
}
|
||||
CValidationState state;
|
||||
|
||||
//{ LOCK(cs_main);
|
||||
if ( !TestBlockValidity(state,B, chainActive.LastTip(), true, false))
|
||||
{
|
||||
h = UintToArith256(B.GetHash());
|
||||
@@ -1744,6 +1701,8 @@ void static BitcoinMiner()
|
||||
gotinvalid = 1;
|
||||
return(false);
|
||||
}
|
||||
|
||||
//}
|
||||
HUSH_CHOSEN_ONE = 1;
|
||||
// Found a solution
|
||||
SetThreadPriority(THREAD_PRIORITY_NORMAL);
|
||||
|
||||
@@ -2733,7 +2733,7 @@ bool CNode::GetTlsValidate()
|
||||
{
|
||||
if (tlsValidate == eTlsOption::FALLBACK_UNSET)
|
||||
{
|
||||
// This is useful for private Hush Smart Chains, that want to exist
|
||||
// This is useful for private Hush Arrakis Chains, that want to exist
|
||||
// on a closed VPN with an internal CA or trusted cert system, or
|
||||
// various other use cases
|
||||
if ( GetBoolArg("-tlsvalidate", false)) {
|
||||
@@ -2927,6 +2927,7 @@ void SetNetworkActive(bool active)
|
||||
if (!fNetworkActive) {
|
||||
LOCK(cs_vNodes);
|
||||
// Close sockets to all nodes
|
||||
LogPrint("net", "%s: closing sockets to all nodes\n", __func__);
|
||||
for (CNode* pnode : vNodes) {
|
||||
pnode->CloseSocketDisconnect();
|
||||
}
|
||||
|
||||
@@ -578,7 +578,7 @@ unsigned int CalculateNextWorkRequired(arith_uint256 bnAvg,
|
||||
return bnNew.GetCompact();
|
||||
}
|
||||
|
||||
// HUSH does not use these functions but Hush Smart Chains can opt-in to using more bleeding edge DAA's
|
||||
// HUSH does not use these functions but Hush Arrakis Chains can opt-in to using more bleeding edge DAA's
|
||||
// ASIC chains do not need these protections as much -- Duke Leto
|
||||
unsigned int lwmaGetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params& params)
|
||||
{
|
||||
|
||||
@@ -1620,12 +1620,12 @@ UniValue getchaintxstats(const UniValue& params, bool fHelp, const CPubKey& mypk
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid block count: should be between 0 and the block's height - 1");
|
||||
}
|
||||
}
|
||||
LogPrintf("%s: blockcount = %d\n", __func__, blockcount);
|
||||
// LogPrintf("%s: blockcount = %d\n", __func__, blockcount);
|
||||
|
||||
const CBlockIndex* pindexPast = pindex->GetAncestor(pindex->GetHeight() - blockcount);
|
||||
int nTimeDiff = pindex->GetMedianTimePast() - pindexPast->GetMedianTimePast();
|
||||
int nTxDiff = pindex->nChainTx - pindexPast->nChainTx;
|
||||
LogPrintf("%s: pindexPast.height = %d, pindex.height = %d\n", __func__, pindexPast->GetHeight(), pindex->GetHeight() );
|
||||
// LogPrintf("%s: pindexPast.height = %d, pindex.height = %d\n", __func__, pindexPast->GetHeight(), pindex->GetHeight() );
|
||||
|
||||
UniValue ret(UniValue::VOBJ);
|
||||
ret.pushKV("time", (int64_t)pindex->nTime);
|
||||
@@ -1657,7 +1657,7 @@ UniValue getchaintxstats(const UniValue& params, bool fHelp, const CPubKey& mypk
|
||||
ret.pushKV("window_tx_count", nTxDiff);
|
||||
ret.pushKV("window_interval", nTimeDiff);
|
||||
int64_t nPaymentsDiff = pindex->nChainPayments - pindexPast->nChainPayments;
|
||||
LogPrintf("%s: pindexPast.nChainPayments = %d, pindex.nChainPayments = %d\n", __func__, pindexPast->nChainPayments, pindex->nChainPayments );
|
||||
//LogPrintf("%s: pindexPast.nChainPayments = %d, pindex.nChainPayments = %d\n", __func__, pindexPast->nChainPayments, pindex->nChainPayments );
|
||||
int64_t nShieldedTxDiff = pindex->nChainShieldedTx - pindexPast->nChainShieldedTx;
|
||||
int64_t nShieldingTxDiff = pindex->nChainShieldingTx - pindexPast->nChainShieldingTx;
|
||||
int64_t nDeshieldingTxDiff = pindex->nChainDeshieldingTx - pindexPast->nChainDeshieldingTx;
|
||||
|
||||
@@ -231,11 +231,12 @@ UniValue getinfo(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
||||
+ HelpExampleCli("getinfo", "")
|
||||
+ HelpExampleRpc("getinfo", "")
|
||||
);
|
||||
//#ifdef ENABLE_WALLET
|
||||
// LOCK2(cs_main, pwalletMain ? &pwalletMain->cs_wallet : NULL);
|
||||
//#else
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
LOCK2(cs_main, pwalletMain ? &pwalletMain->cs_wallet : NULL);
|
||||
#else
|
||||
LOCK(cs_main);
|
||||
//#endif
|
||||
#endif
|
||||
|
||||
proxyType proxy;
|
||||
GetProxy(NET_IPV4, proxy);
|
||||
@@ -482,7 +483,7 @@ UniValue validateaddress(const UniValue& params, bool fHelp, const CPubKey& mypk
|
||||
if (fHelp || params.size() != 1)
|
||||
throw runtime_error(
|
||||
"validateaddress \"addr\"\n"
|
||||
"\nReturn information about the given Hush or Hush Smart Chain (HSC) address.\n"
|
||||
"\nReturn information about the given Hush or Hush Arrakis Chain (HAC) address.\n"
|
||||
"\nArguments:\n"
|
||||
"1. \"addr\" (string, required) The address to validate\n"
|
||||
"\nResult:\n"
|
||||
|
||||
@@ -31,6 +31,8 @@
|
||||
#include <boost/foreach.hpp>
|
||||
#include <univalue.h>
|
||||
|
||||
extern uint16_t ASSETCHAINS_P2PPORT,ASSETCHAINS_RPCPORT;
|
||||
|
||||
using namespace std;
|
||||
using namespace hush;
|
||||
|
||||
@@ -276,8 +278,8 @@ UniValue addnode(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
||||
"1. \"node\" (string, required) The node (see getpeerinfo for nodes)\n"
|
||||
"2. \"command\" (string, required) 'add' to add a node to the list, 'remove' to remove a node from the list, 'onetry' to try a connection to the node once\n"
|
||||
"\nExamples:\n"
|
||||
+ HelpExampleCli("addnode", "\"192.168.0.6:18030\" \"onetry\"")
|
||||
+ HelpExampleRpc("addnode", "\"192.168.0.6:18030\", \"onetry\"")
|
||||
+ HelpExampleCli("addnode", "\"192.168.0.6:" + to_string(ASSETCHAINS_P2PPORT) + "\" \"onetry\"")
|
||||
+ HelpExampleRpc("addnode", "\"192.168.0.6:" + to_string(ASSETCHAINS_P2PPORT) + "\", \"onetry\"")
|
||||
);
|
||||
|
||||
string strNode = params[0].get_str();
|
||||
@@ -320,8 +322,8 @@ UniValue disconnectnode(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
||||
"\nArguments:\n"
|
||||
"1. \"node\" (string, required) The node (see getpeerinfo for nodes)\n"
|
||||
"\nExamples:\n"
|
||||
+ HelpExampleCli("disconnectnode", "\"192.168.0.6:18030\"")
|
||||
+ HelpExampleRpc("disconnectnode", "\"192.168.0.6:18030\"")
|
||||
+ HelpExampleCli("disconnectnode", "\"192.168.0.6:" + to_string(ASSETCHAINS_P2PPORT) + "\"")
|
||||
+ HelpExampleRpc("disconnectnode", "\"192.168.0.6:" + to_string(ASSETCHAINS_P2PPORT) + "\"")
|
||||
);
|
||||
|
||||
CNode* pNode = FindNode(params[0].get_str());
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (c) 2018-2024 The Hush developers
|
||||
./hush-smart-chain -ac_name=KOOLAID $@
|
||||
./hush-arrakis-chain -ac_name=KOOLAID $@
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (c) 2018-2024 The Hush developers
|
||||
./hush-smart-chain -ac_name=KUSH $@
|
||||
./hush-arrakis-chain -ac_name=KUSH $@
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (c) 2018-2024 The Hush developers
|
||||
./hush-smart-chain -ac_name=ZEX $@
|
||||
./hush-arrakis-chain -ac_name=ZEX $@
|
||||
|
||||
@@ -29,8 +29,8 @@ SendManyRecipient newSietchRecipient(string zaddr) {
|
||||
// Sietch zouts have random data in their memos so they are indistinguishable from
|
||||
// encrypted data being stored in the memo field
|
||||
char hex[] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
|
||||
// memo field is 512 bytes or 1024 hex chars
|
||||
char str[1024];
|
||||
// memo field is 512 bytes or 1024 hex chars plus a null byte
|
||||
char str[1025];
|
||||
for(int i=0;i<1024;i++) {
|
||||
str[i] = hex[GetRandInt(16)];
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ set -eo pipefail
|
||||
source pubkey.txt
|
||||
overide_args="$@"
|
||||
seed_ip=$(SEEDNODE)
|
||||
hsc='./hush-smart-chain'
|
||||
hsc='./hush-arrakis-chain'
|
||||
|
||||
if [ -z "$delay" ]; then delay=20; fi
|
||||
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (c) 2018-2024 The Hush developers
|
||||
set -x
|
||||
delay=60
|
||||
source pubkey.txt
|
||||
echo $pubkey
|
||||
echo "jl777 is a traitor to his village of cypherpunks, ca333 is his obedient servant"
|
||||
|
||||
hsc="./hush-smart-chain"
|
||||
ip=$(HUSHDEX_SEEDNODE)
|
||||
|
||||
# this chain helps power HushDEX
|
||||
$hsc -pubkey=$pubkey -ac_name=ZEX -ac_supply=100000000 -addnode=$ip $@ &
|
||||
|
||||
# these are testcoins, like ARRR
|
||||
$hsc -pubkey=$pubkey -ac_name=ZUSH -ac_supply=100000000 -addnode=$ip $@ &
|
||||
$hsc -pubkey=$pubkey -ac_name=KOOLAID -ac_supply=100000000 -addnode=$ip $@ &
|
||||
20
src/sync.cpp
20
src/sync.cpp
@@ -25,6 +25,15 @@
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/thread.hpp>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#include <dbghelp.h>
|
||||
#else
|
||||
#include <execinfo.h> /* backtrace, backtrace_symbols_fd */
|
||||
#endif
|
||||
|
||||
#include <unistd.h> /* STDOUT_FILENO */
|
||||
|
||||
#ifdef DEBUG_LOCKCONTENTION
|
||||
void PrintLockContention(const char* pszName, const char* pszFile, int nLine)
|
||||
{
|
||||
@@ -177,12 +186,23 @@ std::string LocksHeld()
|
||||
return result;
|
||||
}
|
||||
|
||||
void print_stacktrace(void) {
|
||||
size_t size;
|
||||
enum Constexpr { MAX_SIZE = 1024 };
|
||||
void *array[MAX_SIZE];
|
||||
size = backtrace(array, MAX_SIZE);
|
||||
backtrace_symbols_fd(array, size, STDERR_FILENO);
|
||||
}
|
||||
|
||||
void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, void* cs)
|
||||
{
|
||||
BOOST_FOREACH (const PAIRTYPE(void*, CLockLocation) & i, *lockstack)
|
||||
if (i.first == cs)
|
||||
return;
|
||||
fprintf(stderr, "Assertion failed: lock %s not held in %s:%i; locks held:\n%s", pszName, pszFile, nLine, LocksHeld().c_str());
|
||||
|
||||
print_stacktrace();
|
||||
|
||||
abort();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,4 +14,4 @@ BLOCKTIME=18
|
||||
SUPPLY=0
|
||||
|
||||
# Remember Remember the 5th November for freedom of speech is not free!!
|
||||
./hush-smart-chain -ac_name=TESTDRAGONX -ac_algo=randomx -ac_halving=3500000 -ac_reward=300000000 -ac_blocktime=$BLOCKTIME -ac_private=1 -ac_supply=$SUPPLY -debug=randomx $@
|
||||
./hush-arrakis-chain -ac_name=TESTDRAGONX -ac_algo=randomx -ac_halving=3500000 -ac_reward=300000000 -ac_blocktime=$BLOCKTIME -ac_private=1 -ac_supply=$SUPPLY -debug=randomx $@
|
||||
|
||||
@@ -15,4 +15,4 @@ SUPPLY=0
|
||||
|
||||
# same as TESTDRAGONX except equihash and different ac_name
|
||||
# and debug=pow which is the equivalent of debug=randomx for equihash mining
|
||||
./hush-smart-chain -ac_name=TESTEQUIHASH -ac_halving=3500000 -ac_reward=300000000 -ac_blocktime=$BLOCKTIME -ac_private=1 -ac_supply=$SUPPLY -debug=pow $@
|
||||
./hush-arrakis-chain -ac_name=TESTEQUIHASH -ac_halving=3500000 -ac_reward=300000000 -ac_blocktime=$BLOCKTIME -ac_private=1 -ac_supply=$SUPPLY -debug=pow $@
|
||||
|
||||
@@ -123,7 +123,7 @@ bool CTxMemPool::addUnchecked(const uint256& hash, const CTxMemPoolEntry &entry,
|
||||
if (!tx.IsCoinImport()) {
|
||||
for (unsigned int i = 0; i < tx.vin.size(); i++)
|
||||
{
|
||||
if (tx.IsPegsImport() && i==0) continue;
|
||||
//if (tx.IsPegsImport() && i==0) continue;
|
||||
mapNextTx[tx.vin[i].prevout] = CInPoint(&tx, i);
|
||||
}
|
||||
}
|
||||
@@ -146,7 +146,7 @@ void CTxMemPool::addAddressIndex(const CTxMemPoolEntry &entry, const CCoinsViewC
|
||||
|
||||
uint256 txhash = tx.GetHash();
|
||||
for (unsigned int j = 0; j < tx.vin.size(); j++) {
|
||||
if (tx.IsPegsImport() && j==0) continue;
|
||||
//if (tx.IsPegsImport() && j==0) continue;
|
||||
const CTxIn input = tx.vin[j];
|
||||
const CTxOut &prevout = view.GetOutputFor(input);
|
||||
|
||||
@@ -252,7 +252,7 @@ void CTxMemPool::addSpentIndex(const CTxMemPoolEntry &entry, const CCoinsViewCac
|
||||
|
||||
uint256 txhash = tx.GetHash();
|
||||
for (unsigned int j = 0; j < tx.vin.size(); j++) {
|
||||
if (tx.IsPegsImport() && j==0) continue;
|
||||
//if (tx.IsPegsImport() && j==0) continue;
|
||||
const CTxIn input = tx.vin[j];
|
||||
const CTxOut &prevout = view.GetOutputFor(input);
|
||||
|
||||
|
||||
@@ -47,6 +47,8 @@ static const bool DEFAULT_LOGTIMEMICROS = false;
|
||||
static const bool DEFAULT_LOGIPS = false;
|
||||
static const bool DEFAULT_LOGTIMESTAMPS = true;
|
||||
|
||||
void CheckIfWeShouldStop();
|
||||
|
||||
/** Signals for translation. */
|
||||
class CTranslationInterface
|
||||
{
|
||||
@@ -272,14 +274,17 @@ template <typename Callable> void TraceThread(const char* name, Callable func)
|
||||
catch (const boost::thread_interrupted&)
|
||||
{
|
||||
LogPrintf("%s thread interrupt\n", name);
|
||||
CheckIfWeShouldStop();
|
||||
throw;
|
||||
}
|
||||
catch (const std::exception& e) {
|
||||
PrintExceptionContinue(&e, name);
|
||||
CheckIfWeShouldStop();
|
||||
throw;
|
||||
}
|
||||
catch (...) {
|
||||
PrintExceptionContinue(NULL, name);
|
||||
CheckIfWeShouldStop();
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,13 +21,18 @@
|
||||
#define HUSH_VERSION_H
|
||||
|
||||
// network protocol versioning
|
||||
static const int PROTOCOL_VERSION = 1987426;
|
||||
static const int PROTOCOL_VERSION = 1987427;
|
||||
//! initial proto version, to be increased after version/verack negotiation
|
||||
static const int INIT_PROTO_VERSION = 209;
|
||||
//! In this version, 'getheaders' was introduced.
|
||||
static const int GETHEADERS_VERSION = 31800;
|
||||
//! disconnect from peers older than this proto version
|
||||
|
||||
//! disconnect from peers older than this proto version (HUSH mainnet)
|
||||
static const int MIN_HUSH_PEER_PROTO_VERSION = 1987426;
|
||||
|
||||
//! disconnect from peers older than this proto version (HACs)
|
||||
static const int MIN_PEER_PROTO_VERSION = 1987420;
|
||||
|
||||
//! nTime field added to CAddress, starting with this version;
|
||||
//! if possible, avoid requesting addresses nodes older than this
|
||||
static const int CADDR_TIME_VERSION = 31402;
|
||||
|
||||
@@ -363,7 +363,7 @@ bool AsyncRPCOperation_sendmany::main_impl() {
|
||||
|
||||
|
||||
/**
|
||||
* SCENARIO #0 (All HUSH and Hush Smart Chains)
|
||||
* SCENARIO #0 (All HUSH and Hush Arrakis Chains)
|
||||
* Sprout not involved, so we just use the TransactionBuilder and we're done.
|
||||
* We added the transparent inputs to the builder earlier.
|
||||
*/
|
||||
|
||||
@@ -629,7 +629,7 @@ UniValue kvupdate(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
||||
if (fHelp || params.size() < 3 )
|
||||
throw runtime_error(
|
||||
"kvupdate key \"value\" days passphrase\n"
|
||||
"\nStore a key value. This feature is only available for asset chains.\n"
|
||||
"\nStore a key value. This feature is only available for non-z2z chains.\n"
|
||||
"\nArguments:\n"
|
||||
"1. key (string, required) key\n"
|
||||
"2. \"value\" (string, required) value\n"
|
||||
@@ -654,8 +654,11 @@ UniValue kvupdate(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
||||
);
|
||||
if (!EnsureWalletIsAvailable(fHelp))
|
||||
return 0;
|
||||
if ( SMART_CHAIN_SYMBOL[0] == 0 )
|
||||
return(0);
|
||||
|
||||
if (ASSETCHAINS_PRIVATE) {
|
||||
throw JSONRPCError(RPC_TYPE_ERROR, "This RPC is only available on non z2z chains");
|
||||
}
|
||||
|
||||
haveprivkey = 0;
|
||||
memset(&sig,0,sizeof(sig));
|
||||
memset(&privkey,0,sizeof(privkey));
|
||||
@@ -5152,6 +5155,8 @@ UniValue z_sendmany(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
||||
CAmount nTotalOut = 0;
|
||||
// Optional OP_RETURN data
|
||||
CScript opret;
|
||||
// TODO: enforce that only a single opreturn exists
|
||||
UniValue opretValue;
|
||||
|
||||
bool containsSaplingOutput = false;
|
||||
|
||||
@@ -5186,7 +5191,10 @@ UniValue z_sendmany(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
||||
// throw JSONRPCError(RPC_INVALID_PARAMETER, string("Invalid parameter, duplicated address: ")+address);
|
||||
setAddress.insert(address);
|
||||
|
||||
UniValue opretValue = find_value(o, "opreturn");
|
||||
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()) {
|
||||
@@ -5311,7 +5319,7 @@ UniValue z_sendmany(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
||||
}
|
||||
txsize += CTXOUT_REGULAR_SIZE * taddrRecipients.size();
|
||||
if (txsize > max_tx_size) {
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Too many outputs, size of raw transaction would be larger than limit of %d bytes", max_tx_size ));
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Size of raw transaction %d would be larger than limit of %d bytes", txsize, max_tx_size ));
|
||||
}
|
||||
|
||||
// Minimum confirmations
|
||||
@@ -5339,15 +5347,21 @@ UniValue z_sendmany(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
||||
// or anything less than nDefaultFee instead of being forced to use a custom fee and leak metadata
|
||||
if (nTotalOut < nDefaultFee) {
|
||||
if (nFee > nDefaultFee) {
|
||||
// Allow large fees if OP_RETURN is being used
|
||||
if( opretValue.isNull() ) {
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Small transaction amount %s has fee %s that is greater than the default fee %s", FormatMoney(nTotalOut), FormatMoney(nFee), FormatMoney(nDefaultFee)));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Check that the user specified fee is not absurd.
|
||||
if (nFee > nTotalOut) {
|
||||
// Allow large fees if OP_RETURN is being used
|
||||
if( opretValue.isNull() ) {
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Fee %s is greater than the sum of outputs %s and also greater than the default fee", FormatMoney(nFee), FormatMoney(nTotalOut)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Use input parameters as the optional context info to be returned by z_getoperationstatus and z_getoperationresult.
|
||||
UniValue o(UniValue::VOBJ);
|
||||
|
||||
@@ -887,6 +887,7 @@ bool CWallet::IsSaplingSpent(const uint256& nullifier) const {
|
||||
}
|
||||
|
||||
unsigned int CWallet::GetSaplingSpendDepth(const uint256& nullifier) const {
|
||||
|
||||
pair<TxNullifiers::const_iterator, TxNullifiers::const_iterator> range;
|
||||
range = mapTxSaplingNullifiers.equal_range(nullifier);
|
||||
|
||||
@@ -977,10 +978,10 @@ void CWallet::ClearNoteWitnessCache()
|
||||
|
||||
void CWallet::DecrementNoteWitnesses(const CBlockIndex* pindex)
|
||||
{
|
||||
LOCK(cs_wallet);
|
||||
|
||||
extern int32_t HUSH_REWIND;
|
||||
|
||||
LOCK2(cs_main, cs_wallet);
|
||||
|
||||
for (std::pair<const uint256, CWalletTx>& wtxItem : mapWallet) {
|
||||
//Sapling
|
||||
for (auto& item : wtxItem.second.mapSaplingNoteData) {
|
||||
@@ -2790,7 +2791,7 @@ int CWallet::ScanForWalletTransactions(CBlockIndex* pindexStart, bool fUpdate)
|
||||
// This should never fail: we should always be able to get the tree
|
||||
// state on the path to the tip of our chain
|
||||
if (pindex->pprev) {
|
||||
const bool sapling = true;
|
||||
const bool sapling = pindex->GetHeight() >= 2 ? true : false;
|
||||
if (sapling) { // NetworkUpgradeActive(pindex->pprev->GetHeight(), Params().GetConsensus(), Consensus::UPGRADE_SAPLING)) {
|
||||
assert(pcoinsTip->GetSaplingAnchorAt(pindex->pprev->hashFinalSaplingRoot, saplingTree));
|
||||
}
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# any CLI args given to this script will be passed along
|
||||
# example: ./test_antispam -debug=blah
|
||||
#./src/hushd -ac_name=ANTISPAM -ac_private=1 -ac_blocktime=180 -ac_reward=500000000 -ac_supply=55555 -gen=1 -genproclimit=1 -testnode=1 $@
|
||||
|
||||
./src/hushd -ac_name=ANTISPAM -ac_private=1 -ac_blocktime=180 -ac_reward=500000000 -ac_supply=55555 $@
|
||||
# to run via the debugger
|
||||
# type "run" when gdb prompt appears
|
||||
#gdb --args ./src/hushd -- -ac_algo=randomx -ac_name=ANTISPAM -ac_private=1 -ac_blocktime=180 -ac_reward=500000000 -ac_supply=55555 -gen=1 -genproclimit=1 -testnode=1
|
||||
@@ -77,8 +77,8 @@ strip $DEB_BIN/hush-tx
|
||||
cp $SRC_PATH/src/dragonx-cli $DEB_BIN
|
||||
cp $SRC_PATH/src/dragonxd $DEB_BIN
|
||||
|
||||
cp $SRC_PATH/src/hush-smart-chain $DEB_BIN
|
||||
#cp $SRC_DEB/changelog $DEB_DOC/changelog.Debian
|
||||
cp $SRC_PATH/src/hush-arrakis-chain $DEB_BIN
|
||||
cp $SRC_DEB/changelog $DEB_DOC
|
||||
cp $SRC_DEB/copyright $DEB_DOC
|
||||
cp -r $SRC_DEB/examples $DEB_DOC
|
||||
# Copy manpages
|
||||
|
||||
@@ -17,6 +17,18 @@ if ! [ -x "$(command -v autoreconf)" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! [ -x "$(command -v as)" ]; then
|
||||
echo 'Error: as is not installed. Install as and try again.' >&2
|
||||
echo 'On Debian-like systems: apt install binutils' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! [ -x "$(command -v ld)" ]; then
|
||||
echo 'Error: ld is not installed. Install ld and try again.' >&2
|
||||
echo 'On Debian-like systems: apt install binutils' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
function cmd_pref() {
|
||||
if type -p "$2" > /dev/null; then
|
||||
eval "$1=$2"
|
||||
|
||||
143
util/debug-build.sh
Executable file
143
util/debug-build.sh
Executable file
@@ -0,0 +1,143 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (c) 2016-2024 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
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
# Check if cmake, a new dependency for randomx support, is installed on system and exits if it is not
|
||||
if ! [ -x "$(command -v cmake)" ]; then
|
||||
echo 'Error: cmake is not installed. Install cmake and try again.' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! [ -x "$(command -v autoreconf)" ]; then
|
||||
echo 'Error: autoconf is not installed. Install autoconf and try again.' >&2
|
||||
echo 'On Debian-like systems: apt install autoconf' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
function cmd_pref() {
|
||||
if type -p "$2" > /dev/null; then
|
||||
eval "$1=$2"
|
||||
else
|
||||
eval "$1=$3"
|
||||
fi
|
||||
}
|
||||
cat <<'EOF'
|
||||
.~~~~~~~~~~~~~~~~.
|
||||
{{ Building Hush!! }}
|
||||
`~~~~~~~~~~~~~~~~`
|
||||
\ ^__^
|
||||
\ (@@)\_______
|
||||
(__)\ HUSH )\/\ $
|
||||
z zz ||----w | z |
|
||||
zz zz z || z ||xxx z z|z zz
|
||||
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
|
||||
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
|
||||
EOF
|
||||
|
||||
# If a g-prefixed version of the command exists, use it preferentially.
|
||||
function gprefix() {
|
||||
cmd_pref "$1" "g$2" "$2"
|
||||
}
|
||||
|
||||
gprefix READLINK readlink
|
||||
cd "$(dirname "$("$READLINK" -f "$0")")/.."
|
||||
|
||||
# Allow user overrides to $MAKE. Typical usage for users who need it:
|
||||
# MAKE=gmake ./util/build.sh -j$(nproc)
|
||||
if [[ -z "${MAKE-}" ]]; then
|
||||
MAKE=make
|
||||
fi
|
||||
|
||||
# Allow overrides to $BUILD and $HOST for porters. Most users will not need it.
|
||||
# BUILD=i686-pc-linux-gnu ./util/build.sh
|
||||
if [[ -z "${BUILD-}" ]]; then
|
||||
BUILD="$(./depends/config.guess)"
|
||||
fi
|
||||
if [[ -z "${HOST-}" ]]; then
|
||||
HOST="$BUILD"
|
||||
fi
|
||||
|
||||
# Allow users to set arbitrary compile flags. Most users will not need this.
|
||||
if [[ -z "${CONFIGURE_FLAGS-}" ]]; then
|
||||
CONFIGURE_FLAGS=""
|
||||
fi
|
||||
|
||||
if [ "x$*" = 'x--help' ]
|
||||
then
|
||||
cat ./util/dragon.txt
|
||||
cat <<EOF
|
||||
Welcome To The Hush Build System, Here Be Dragons!
|
||||
Usage:
|
||||
$0 --help
|
||||
Show this help message and exit.
|
||||
$0 [ --enable-lcov || --disable-tests ] [ --disable-mining ] [ --disable-libs ] [ MAKEARGS... ]
|
||||
Build Hush and most of its transitive dependencies from source. MAKEARGS are applied to both dependencies and Hush itself.
|
||||
If --enable-lcov is passed, Hush is configured to add coverage instrumentation, thus enabling "make cov" to work.
|
||||
If --disable-tests is passed instead, the Hush tests are not built.
|
||||
If --disable-mining is passed, Hush is configured to not build any mining code. It must be passed after the test arguments, if present.
|
||||
It must be passed after the test/mining arguments, if present.
|
||||
EOF
|
||||
exit 0
|
||||
fi
|
||||
|
||||
set -x
|
||||
|
||||
# If --enable-lcov is the first argument, enable lcov coverage support:
|
||||
LCOV_ARG=''
|
||||
HARDENING_ARG='--enable-hardening'
|
||||
TEST_ARG=''
|
||||
if [ "x${1:-}" = 'x--enable-lcov' ]
|
||||
then
|
||||
LCOV_ARG='--enable-lcov'
|
||||
HARDENING_ARG='--disable-hardening'
|
||||
shift
|
||||
elif [ "x${1:-}" = 'x--disable-tests' ]
|
||||
then
|
||||
TEST_ARG='--enable-tests=no'
|
||||
shift
|
||||
fi
|
||||
|
||||
# If --disable-mining is the next argument, disable mining code:
|
||||
MINING_ARG=''
|
||||
if [ "x${1:-}" = 'x--disable-mining' ]
|
||||
then
|
||||
MINING_ARG='--enable-mining=no'
|
||||
shift
|
||||
fi
|
||||
|
||||
# Just show the useful info
|
||||
eval "$MAKE" --version | head -n2
|
||||
as --version | head -n1
|
||||
as --version | tail -n1
|
||||
ld -v
|
||||
|
||||
HOST="$HOST" BUILD="$BUILD" "$MAKE" "$@" -C ./depends/ V=1
|
||||
|
||||
./autogen.sh
|
||||
|
||||
CONFIG_SITE="$PWD/depends/$HOST/share/config.site" ./configure "$HARDENING_ARG" "$LCOV_ARG" "$TEST_ARG" "$MINING_ARG" $CONFIGURE_FLAGS CXXFLAGS='-g -rdynamic'
|
||||
|
||||
# Build CryptoConditions stuff
|
||||
WD=$PWD
|
||||
cd src/cc
|
||||
echo $PWD
|
||||
./makecustom
|
||||
cd $WD
|
||||
|
||||
# Build RandomX
|
||||
cd src/RandomX
|
||||
if [ -d "build" ]
|
||||
then
|
||||
ls -la build/librandomx*
|
||||
else
|
||||
mkdir build && cd build
|
||||
cmake -DARCH=native ..
|
||||
make
|
||||
fi
|
||||
|
||||
cd $WD
|
||||
|
||||
"$MAKE" "$@" V=1
|
||||
@@ -24,7 +24,7 @@ echo "Created new build dir $BUILD"
|
||||
cp contrib/asmap/asmap.dat $BUILD
|
||||
cp sapling*.params $BUILD
|
||||
cd src
|
||||
cp hushd hush-cli hush-tx hush-smart-chain dragonx-cli dragonxd ../$BUILD
|
||||
cp hushd hush-cli hush-tx hush-arrakis-chain dragonx-cli dragonxd ../$BUILD
|
||||
cd ../$BUILD
|
||||
strip hushd hush-cli hush-tx
|
||||
cd ..
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# any CLI args given to this script will be passed along
|
||||
# example: ./test_randomx -debug=randomx
|
||||
./src/hushd -ac_randomx_interval=10 -ac_randomx_lag=3 -ac_halving=20 -ac_algo=randomx -ac_name=RANDOMX10 -ac_private=1 -ac_blocktime=20 -ac_reward=500000000 -ac_supply=55555 -gen=1 -genproclimit=1 -testnode=1 $@
|
||||
../src/hushd -ac_randomx_interval=10 -ac_randomx_lag=3 -ac_halving=20 -ac_algo=randomx -ac_name=RANDOMX10 -ac_private=1 -ac_blocktime=20 -ac_reward=500000000 -ac_supply=55555 -gen=1 -genproclimit=1 -testnode=1 $@
|
||||
|
||||
# to run via the debugger
|
||||
# type "run" when gdb prompt appears
|
||||
Reference in New Issue
Block a user