DIP: 0025 Title: Compressed Block Headers Author(s): gabriel-bjg, Thephez, UdjinM6 Special-Thanks: Will Clark Comments-Summary: No comments yet. Status: Proposed Type: Standard Created: 2022-06-06 License: MIT License
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CLI_CMD='/Downloads/dashcore-18.0.1/bin/dash-cli' | |
CONF_FILE='/home/user/.dashcore/dash.conf' | |
DASH_CLI="${CLI_CMD} -conf=${CONF_FILE}" | |
#DASH_CLI="${CLI_CMD} -testnet" #-conf=${CONF_FILE}" | |
CURRENT_HEIGHT=$(${DASH_CLI} getblockcount) | |
echo "Current height: $CURRENT_HEIGHT" | |
function get_quorum_type_names() { | |
# dash-cli quorum list | jq -r keys[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LAST_SB_DATE="2021-10-27T20:33:32+0000" | |
LAST_SB_HEIGHT=1561904 | |
NEXT_SB_HEIGHT=1578520 | |
SB_BLOCK_INTERVAL=16616 | |
MONTHS_TO_PROJECT=24 | |
D0=$(TZ=UTC date --date="$(date --date="$LAST_SB_DATE")"); | |
for block in `seq $NEXT_SB_HEIGHT $SB_BLOCK_INTERVAL $(($LAST_SB_HEIGHT + ($SB_BLOCK_INTERVAL*$MONTHS_TO_PROJECT)))`; | |
do DD=$(TZ=UTC date --date="$(date --date="$D0") +727 hours +5 minutes +2 seconds"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Must be executed from within the dapi-grpc repository folder | |
# Requires gRPCurl (https://github.com/fullstorydev/grpcurl) to run | |
BLOCK_HEIGHT=1 | |
TXID=4004d3f9f1b688f2babb1f98ea48e1472be51e29712f942fc379c6e996cdd308 | |
IDENTITY_ID_B64="KVKPajj5rQh5LpoDLZk8dtHFbASadzzPvgLPFm4P9q0=" | |
PUBLIC_KEY_HASHES="Hl3rumcvEF5vBjX6IaZJHUWbjYM=" | |
DATA_CONTRACT_ID="Zgbwte3d6DhC3X1bM3BWgJPWFLAA/Cl3SL5o3lpL+bc=" | |
#DOCUMENT_ID="9ihM7GpC6Em1l5GA3E5tw2HrFvDxFwZea/yoLxMfR6s=" | |
DOCUMENT_TYPE="note" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import pprint | |
ORG = 'dashevo' | |
STATE = 'all' | |
DAPI_MILESTONE = '15' # 15 = v0.21.0; find on https://github.com/dashevo/dapi/milestones | |
DAPI_CLIENT_MILESTONE = '14' # 14 = v0.21.0; find on https://github.com/dashevo/js-dapi-client/milestones | |
DAPI_GRPC_MILESTONE = '12' # 12 = v0.21.0; find on https://github.com/dashevo/dapi-grpc/milestones |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import pprint | |
ORG = 'dashpay' | |
REPO = 'dash' | |
MILESTONE = '28' # 28 = v0.18.0; find on https://github.com/dashpay/dash/milestones | |
STATE = 'all' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ElectrumX setup for Dash | |
# NOTE: with this setup ElectrumX will be running under root (to simplify things), | |
# modify it accordingly if you want to run it under some specific user | |
# NOTE: this script itself is not enough, you'll have to edit a couple of files manually, | |
# pls read comments below | |
# python3.7 is requried for ElectrumX, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Based on instructions from | |
# https://docs.dash.org/en/stable/masternodes/setup-testnet.html | |
# | |
# See https://www.vultr.com/docs/vultr-startup-scripts-quickstart-guide | |
# for details of using Vultr startup scripts | |
# Add new user | |
USERNAME=yourusernamehere # Username to create |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import pprint | |
import time | |
def get_contract_name(contract_id): | |
if contract_id == '2DAncD4YTjfhSQZYrsQ659xbM7M5dNEkyfBEAg9SsS3W': | |
return 'Dashpay' # ({})'.format(contract_id) | |
elif contract_id == '36ez8VqoDbR8NkdXwFaf9Tp8ukBdQxN8eYs8JNMnUyKz': | |
return 'DPNS' # ({})'.format(contract_id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## bitwalletrecover.py - recover private keys from your darkcoin wallet | |
## (this version was not tested with bitcoin/litecoin). | |
## Requires python3, pycoin (https://pypi.python.org/pypi/pycoin), | |
## and base58 (https://pypi.python.org/pypi/base58). | |
## | |
## Starting with Python 3.4, pip is included by default with the Python binary | |
## installers. To install pip for older versions 3.x: | |
## | |
## sudo apt-get install python3-setuptools | |
## sudo easy_install3 pip |
NewerOlder