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 / supershibe.py
Last active March 14, 2024 22:58
SuperShibe
#!/usr/bin/env python3
# supershibe.py (C) 2023-2024 by Patrick Lodder is licensed under CC BY-SA 4.0
# See: http://creativecommons.org/licenses/by-sa/4.0/
from llama_cpp import Llama
import json, re
llm = Llama(model_path="/path/to/llama-2-7b-chat.Q8_0.gguf")
prompt_template = '''
@patricklodder
patricklodder / bigmempool.py
Last active February 8, 2024 00:40
Profiling with yummy-spam
#!/usr/bin/env python3
# Copyright (c) 2024 Patrick Lodder
"""
big mempool test
1. Get 8 utxo
2. Split into 500k utxo
3. fill up mempool
6. run mempool queries as we go
"""
@patricklodder
patricklodder / fee-timing.csv
Created December 15, 2023 22:13
104 tx tracking Dogecoin mainnet fee and timing
Fee Block in Block mined Timing
1024 5001755 5001756 1
1000 5001762 5001763 1
1008 5001777 5001778 1
1000 5001783 5001785 2
1004 5001794 5001795 1
1000 5001797 5001799 2
1004 5001803 5001804 1
1000 5001805 5001806 1
1000 5001806 5001808 2
@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
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 / dogecoin_copyright.py
Created July 16, 2022 18:05
Update dogecoin core MIT copyright statements in files
@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 / 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 / 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

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