Skip to content

Instantly share code, notes, and snippets.

View cryptozeny's full-sized avatar

cryptozeny

View GitHub Profile
@GeertJohan
GeertJohan / DarkGravityWave3.cpp
Last active February 17, 2021 04:23
Dark Gravity Wave version 3
static const int64 nTargetSpacing = 2.5 * 60; // Guldencoin: 2.5 minutes between block
unsigned int static DarkGravityWave3(const CBlockIndex* pindexLast, const CBlockHeader *pblock) {
/* current difficulty formula, darkcoin - DarkGravity v3, written by Evan Duffield - evan@darkcoin.io */
const CBlockIndex *BlockLastSolved = pindexLast;
const CBlockIndex *BlockReading = pindexLast;
const CBlockHeader *BlockCreating = pblock;
BlockCreating = BlockCreating;
int64 nActualTimespan = 0;
## monacoin.confの内容
rpcuser=wakiyamatamamichankawaii
rpcpassword=[適当にパスワードどうぞ]
daemon=1
txindex=1
addressindex=1
spentindex=1
server=1
@quagliero
quagliero / README.md
Last active February 23, 2023 06:07
Installing cpuminer-multi on macOS 10.13.2 (High Sierra)

Installing cpuminer-multi on macOS 10.13.2 (High Sierra)

This assumes you have brew installed and are comfortable using a terminal.

Following the guide on https://github.com/tpruvot/cpuminer-multi will likely lead to errors about invalid paths to OpenSSL, and neoscrypt errors to the tune of Undefined symbols for architecture x86_64 during the build. I managed to piece together different fixes into an installation that has worked for me. So I hope it works for you.

Requirements

Ensure a c compiler is installed. Type g++ in the terminal and continue with the xcode installation if necessary. If it prints clang: error: no input files, then you can proceed.

// Please add to insight-api-bitzeny/lib/TransactionDb.js
TransactionDb.prototype.getSegwitCommitment = function(txid, cb) {
Rpc.getTxInfo(txid, function(err, txInfo) {
if (err) return cb(false);
var ret;
if (txInfo && txInfo.isCoinBase) {
txInfo.vout.forEach( function(v) {
if (v.scriptPubKey.type === "nulldata") {
@cryptozeny
cryptozeny / create_ssh.sh
Last active December 11, 2021 04:16
create github SSH key
ssh-keygen -t rsa -b 4096 -C "cryptozeny@gmail.com" && \
eval "$(ssh-agent -s)" && \
ssh-add ~/.ssh/id_rsa && \
echo "COPY to github ssh" ;\
echo "*******************" ; \
cat ~/.ssh/id_rsa.pub ; \
echo "*******************"
@bellflower2015
bellflower2015 / Dockerfile
Last active August 6, 2018 15:51
bitzenyplus-yespower-0.5:xenial Dockerfile
#
# docker build --tag bitzenyplus-yespower-0.5:xenial --cpuset-cpus="0,1" -f Dockerfile .
#
FROM ubuntu:xenial
RUN apt update -qq \
&& apt upgrade -qq -y \
&& apt install -qq -y \
build-essential \
@cryptozeny
cryptozeny / gist:a7c04fe14dd60de8f1806451742bba83
Last active February 21, 2019 12:06
win64/32 crossbuild on ubuntu 16.04
@cryptozeny
cryptozeny / FULL-Date.md
Last active January 6, 2019 14:33
RPC getBlockInterval +Date

https://youtu.be/E97kpbg1j_o

BLOCK        TIMESTAMP             DIFFICULTY  RATIO  IV  AVERG
0      181101-03:10:00  1.907323166912278e-06  1.216 GENESIS GENESIS 
1      190104-23:20:58  1.907323166912278e-06  1.000 5602258      0 
2      190104-23:24:09  1.907323166912278e-06  1.000 191  95.50 
3      190104-23:24:09  1.907323166912278e-06  1.000   0  63.66 
4      190104-23:24:15  1.907323166912278e-06  1.000   6  49.25 
.
@cryptozeny
cryptozeny / gitian-BTC-v0.16.3.md
Last active October 8, 2020 23:15
gitian cross compilation for BTC v0.16.3
#!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2011 thomasv@gitorious
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#