Skip to content

Instantly share code, notes, and snippets.

View a-mcintosh's full-sized avatar

Aubrey McIntosh a-mcintosh

  • Terrell TX
View GitHub Profile
@a-mcintosh
a-mcintosh / 0001-dns.patch
Last active October 31, 2018 02:07
Bring up ckpool
From 391910ecae7656a9f791e46527937abc6838cb3c Mon Sep 17 00:00:00 2001
From: Aubrey McIntosh <avalon@seed-prime.members.linode.com>
Date: Tue, 30 Oct 2018 23:23:17 +0000
Subject: [PATCH 1/2] Modified the DNS seeds and the checkpoints to support a
local lab with 10079 blocks.
Signed-off-by: Aubrey McIntosh <avalon@seed-prime.members.linode.com>
---
src/checkpoints.cpp | 11 +-------
src/net.cpp | 81 ++---------------------------------------------------
@a-mcintosh
a-mcintosh / awk guidance one
Last active June 30, 2018 20:27
Sample of selected lines of source input file to be reviewed and edited.
avalon@pristine-1517382998-884:~/opt/coins/bytecoin$ awk '/legacy.cpp Ln/{printf("%18s, %6i, %s\n", FILENAME, FNR, $0)}' src/*.{h,cpp}
src/legacy.cpp, 36, if(fDebugJSON) printf("legacy.cpp Ln 36; update (newTime, adjust) (%i, %i)\n", \
src/legacy.cpp, 165, printf("legacy.cpp Ln 165: %i\n", aux_ix);
src/legacy.cpp, 185, printf("legacy.cpp Ln 185\n");
src/legacy.cpp, 189, printf("legacy.cpp Ln 189\n");
src/legacy.cpp, 195, printf("legacy.cpp Ln 195\n");
src/legacy.cpp, 205, printf( "legacy.cpp Ln 205:\t%s\n", strPrint.c_str());
src/legacy.cpp, 206, } else {printf("legacy.cpp Ln 206\n");}
src/legacy.cpp, 261, if(fDebugJSON) printf("legacy.cpp Ln 233 ThreadOneLegacyBlock starting.\n");
src/legacy.cpp, 271, printf("legacy.cpp Ln 244 ThreadOneLegacyBlock (%i)\n", aux_LegacyHeight);
@a-mcintosh
a-mcintosh / debug-example.log
Last active March 29, 2018 00:24
awk program to extract bitcoin handshake from debug.log files in ~/bin or ~/.bitcoin/log
2013-04-10 12:50:01 ProcessBlock: ACCEPTED
2013-04-10 12:50:01 received block 000000000025452101193a1a2c17a9da68af6ed50daab562e79ff693b98abdb0
2013-04-10 12:50:01 connected 78.158.7.238:6333
2013-04-10 12:50:01 send version message: version 70001, blocks=11003, us=[2001:470:c019:0:213:72ff:fe7e:b4cb]:6333, them=78.158.7.238:6333, peer=78.158.7.238:6333
2013-04-10 12:50:01 SetBestChain: new best=000000000025452101193a1a2c17a9da68af6ed50daab562e79ff693b98abdb0 height=11004 work=7020901190660448 tx=11230 date=2013-04-04 12:51:08
2013-04-10 12:50:01 ProcessBlock: ACCEPTED
2013-04-10 12:50:19 connection timeout
2013-04-10 12:50:19 trying connection 184.22.74.21:6333 lastseen=0.4hrs
2013-04-10 12:50:19 connected 184.22.74.21:6333
2013-04-10 12:50:19 send version message: version 70001, blocks=11061, us=[2001:470:c019:0:213:72ff:fe7e:b4cb]:6333, them=184.22.74.21:6333, peer=184.22.74.21:6333