Skip to content

Instantly share code, notes, and snippets.

View patricklodder's full-sized avatar
6️⃣
9️⃣

Old Dip Tracker patricklodder

6️⃣
9️⃣
View GitHub Profile
@patricklodder
patricklodder / Dockerfile.alpine.withtests
Created June 9, 2021 16:46
Alpine/Musl testing Dockerfile for Dogecoin
ARG ALPINE_VERSION=3.9
ARG BDB_VERSION=5.1.29.NC
ARG BDB_SHA256SUM=08238e59736d1aacdd47cfb8e68684c695516c37f4fbe1b8267dde58dc3a576c
FROM alpine:${ALPINE_VERSION} AS bdb
ARG BDB_VERSION
ARG BDB_SHA256SUM
RUN apk upgrade && apk add \
build-base autoconf automake
@patricklodder
patricklodder / 2021-Dogecoin-fee-policy-proposal.md
Created June 27, 2021 20:12
2021 Dogecoin Fee Policy Proposal

DOGECOIN FEE POLICY CHANGE PROPOSAL

This document proposes a new fee structure and policy for Dogecoin Core, to be gradually deployed to the network over multiple software releases.

Historical fee policy

Meaningful fees were introduced for Dogecoin in 2014 to reduce on-chain spam. With a 1 DOGE fee per kilobyte, rounded up, the Dogecoin chain provided

@patricklodder
patricklodder / gitian_build_custom_repo.sh
Last active November 8, 2021 06:30
Build a dogecoin build with custom repo/tag
sudo apt update
sudo apt install -y ruby git build-essential apt-transport-https ca-certificates \
curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io apt-cacher-ng
sudo apt upgrade -y

Several months ago (noting while an earlier post stated a year, first confirmed mention is April) Binance reached out in a private chat group with Dogecoin Core developers and members of their Operations team that they had cases where transactions were stuck, meaning they were not being mined successfully. It was suggested Binance use RBF (replace by fee) on these transactions, which would replace the original transactions with a new transaction with a higher fee paid. Notably this was suggested because replace by fee invalidates the previous transaction (hence “replace”). As the transaction had RBF disabled, it was recommended to create a new transaction manually, which would consume the same inputs to forcibly invalidate the previous transaction.

Some time later Binance notified the group that they had account reconciliation issues. Multiple developers were unable to reproduce those issues with the data we were given by Binance, but it was suggested to use the -zapwallettxes command line option to mitigate

@patricklodder
patricklodder / README.md
Created May 15, 2022 17:18
How to edit a translation that I refreshed for you

How to edit a translation that I refreshed for you

  1. Go to https://github.com/patricklodder/dogecoin
  2. Press the "fork" button
  3. Press "create fork"
  4. Wait a few seconds
  5. IMPORTANT: Select the branch I have prepared for you (I will have told you the name)
  6. OPTIONAL: Click the branch selector again and create a working branch for yourself, name it wahtever you want
  7. Browse to src/qt/locale and select the translation for your language (I will have told you the filename too)
  8. Make your edits
@patricklodder
patricklodder / 261-debug.log
Created June 21, 2022 14:32
test framework errors
2022-06-20 19:09:30 Dogecoin version v1.14.6.0-fbec89e23
2022-06-20 19:09:30 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2022-06-20 19:09:30 Validating signatures for all blocks.
2022-06-20 19:09:30 Default data directory /home/patrick/.dogecoin
2022-06-20 19:09:30 Using data directory /tmp/testr2ceygq9/2764058/node0/regtest
2022-06-20 19:09:30 Using config file /tmp/testr2ceygq9/2764058/node0/dogecoin.conf
2022-06-20 19:09:30 Using at most 125 automatic connections (1024 file descriptors available)
2022-06-20 19:09:30 Using 32 MiB out of 32 requested for signature cache, able to store 1048576 elements
2022-06-20 19:09:30 Using 6 threads for script verification
2022-06-20 19:09:30 Allowing HTTP connections from: 127.0.0.0/8 ::1/128
@patricklodder
patricklodder / fedora35.log
Created July 15, 2022 14:30
Dogecoin 1.14.6 self-compile logs on Fedora (docker)
Sending build context to Docker daemon 2.095kB
Step 1/11 : FROM fedora:35
35: Pulling from library/fedora
054e3e802ba7: Pulling fs layer
054e3e802ba7: Verifying Checksum
054e3e802ba7: Download complete
054e3e802ba7: Pull complete
Digest: sha256:f1e3a29da8990568c1da6a460cf9658ee7e9b409aa39c2aded67f7ac1dfe7e8a
Status: Downloaded newer image for fedora:35
---> b97d90f26110
@patricklodder
patricklodder / dogecoin_copyright.py
Created July 16, 2022 18:05
Update dogecoin core MIT copyright statements in files
FROM ubuntu:22.04
WORKDIR /build
# Update build system
RUN apt-get update && \
apt-get install -y mingw-w64 gcc-mingw-w64 curl libtool build-essential zip
# Build bdb
RUN curl -L -O http://depends.dogecoincore.org/db-5.3.28.NC.tar.gz && \
@patricklodder
patricklodder / results.md
Last active February 3, 2023 20:44
3188 x86_64 tests with and without AVX2

Performed bench_dogecoin with avx2 compiled in and omitted for 4 servers with different AVX2 support

1. Intel i7 970: no AVX2, no AVX

  • model name : Intel(R) Core(TM) i7 CPU 970 @ 3.20GHz
  • flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt aes lahf_lm