Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View chappjc's full-sized avatar
🏁

Jonathan Chappelow chappjc

🏁
View GitHub Profile
@chappjc
chappjc / ltc-cfilters-nodes.txt
Last active July 7, 2023 06:31
Litecoin full nodes supporting compact filters
One or more of these nodes may be used to bootstrap an SPV wallet that uses compact block filters.
In the DEX wallet page, click Litecoin -> Settings -> Manage Peers -> [enter a node host:port from below in the text box] -> Add Peer
### mainnet
70.63.170.86:9333
35.210.252.168:8333
35.212.177.222:8333
204.16.247.87:8333
@chappjc
chappjc / Jon_Chappelow_0x746C64D1_public.asc
Last active November 29, 2022 22:53
761D6A0BEB286C9B6A65DD053F857EEA746C64D1
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBFYqjB8BCADwvd4Y153N1T8ot8X3MhBdPbht6W9lxqihsvaFMXs/fdMeCSNR
ZxlAO6uQxayPqgcAYTIhQMg7D6eMos3ygNqXMNRTWYDqNZgMxHyQviL5PUmuYbzl
XzR5ccMN0TxsXzXxnpDMme0awDq46+Cq3FjDvfIpCv23oH7Pxf8+o2sNN3fWY2C1
IfbIBexuiWOgXpw2zU1p9LpYQQ2hKVEWtxtGYfaegRA8Ico3zNEKJFV42xqNeN3Z
8geeTBL1u+BxfR9WSSa/mVSwtXvdo9mPtc8gyRV7Y+QkQPRDcjGNpVg9YGqidbsq
g3nWElnbT/mEYG1TS7x3zmBBjA2ZoZE9XUapABEBAAG0LEpvbiBDaGFwcGVsb3cg
PGpvbmF0aGFuLmNoYXBwZWxvd0BnbWFpbC5jb20+iQE3BBMBCAAhBQJWKowfAhsD
BQsJCAcCBhUICQoLAgQWAgMBAh4BAheAAAoJED+Ffup0bGTR2i4H/iMl2IP5zRPS
@chappjc
chappjc / pegin-tx.txt
Created October 13, 2022 21:28
peg in tx 8b8343978dbef95d54da796977e9a254565c0dc9ce54917d9111267547fcde03
litecoin-cli decoderawtransaction 020000000009015fd2189034093b720c4b9aef085494a6b0308f9c160687c1ae8c460063f3e4bd0000000000feffffff01a28d357700000000225920e933ba737012a3fdcb6b02ee1453f49c940b7e0ee59df9905a00c9603a2facbb0247304402207c2261c46d390172d75be4f6f3edd9eefb442ff6e5fa36330d468c3d5f66ba2b022005bcae3c36cbc0df72239d0df36ca9b53949e09888c9a23579787373612eda500121021d51ab179db58724222743d3b5911f71944171ef3c7ba082b26dad391f4259cf0180d3c6642cff373fad27fb93cf340dbb01a75dfa4645d3ac39a9affbb115c013ea2d1f23a0390537cd15d7b7ae4ac16762a734fef94643441d0b108e175ffd0100020951306d4df7ab8f4e6c8b2a549b6766a5fcab15c0fa30d08a7e85fa2bee218a1f031ae80313197aaa8a20fff310355f1423bf61c1016ccfb45aece95c25618d5d580334017271f54800acf5d0f4a5aefa057b37384dbd403bc188d613b76ddca450830102317f2d059f2021115d80f8310384a1e7c9a1fe6ba6c1207be14f1a9b8663fbac9fa464e8720f6011e85646d08c8f60e0b595699b547052ad62d992aa98070f18c15b3bdf4cea05717500c244c496295b1fe2fb41600cacfec1f257800188ebfc3e7da615626e04370ccdb937028079b64926383c90271db7f10a802f4933de89
diff --git a/Makefile b/Makefile
index 34144f3..6b927fc 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,8 @@
ADDLICENSE_INSTALL=go install github.com/google/addlicense@latest
ADDLICENSE_CMD=addlicense
ADDLICENCE_SCRIPT=${ADDLICENSE_CMD} -c "Coinbase, Inc." -l "apache" -v
-GOIMPORTS_CMD=go run golang.org/x/tools/cmd/goimports
+GOIMPORTS_INSTALL=go install golang.org/x/tools/cmd/goimports@latest
{
"9b643dd754e0b3012c893411f692ef42851d090b8729ed233ca989be3731f252": {
"fees": {
"base": 0.00016600,
"modified": 0.00016600,
"ancestor": 0.00016600,
"descendant": 0.00383780
},
"vsize": 166,
"weight": 661,
package main
import (
"encoding/hex"
"flag"
"fmt"
"os"
"decred.org/dcrdex/client/core"
)
find . -type f -not -path '*/\.git/*' -name "*.go" -exec sed -i 's/harness && lgpl/harness/' {} +
find . -type f -not -path '*/\.git/*' -name "*.go" -exec sed -i 's/harness,lgpl/harness/' {} +
find . -type f -not -path '*/\.git/*' -name "*.go" -exec sed -i '/lgpl/d' {} +
go fmt ./...
=================
WARNING: DATA RACE
Write at 0x00c000ebc080 by goroutine 151:
github.com/btcsuite/btcwallet/internal/zero.Bytea32()
/home/jon/go/pkg/mod/github.com/btcsuite/btcwallet@v0.12.0/internal/zero/array.go:10 +0x36
github.com/btcsuite/btcwallet/snacl.(*CryptoKey).Zero()
/home/jon/go/pkg/mod/github.com/btcsuite/btcwallet@v0.12.0/snacl/snacl.go:82 +0x2c
github.com/btcsuite/btcwallet/waddrmgr.(*cryptoKey).Zero()
<autogenerated>:1 +0x37
github.com/btcsuite/btcwallet/waddrmgr.(*Manager).lock()
@chappjc
chappjc / walletlock-hang
Created August 26, 2021 19:04
dcrwallet hung on walletlock, not shutting down here
SIGABRT: abort
PC=0x46c1e1 m=0 sigcode=0
goroutine 0 [idle]:
runtime.futex()
/home/jon/go117/src/runtime/sys_linux_amd64.s:519 +0x21
runtime.futexsleep(0xc000063000, 0x0, 0x0)
/home/jon/go117/src/runtime/os_linux.go:44 +0x36
runtime.notesleep(0x14cdcd0)
/home/jon/go117/src/runtime/lock_futex.go:160 +0x87
@chappjc
chappjc / addrpool.go
Created June 10, 2021 21:12
address pool hacking
package dcr
import (
"errors"
"fmt"
"github.com/decred/dcrd/crypto/ripemd160"
"github.com/decred/dcrd/dcrec"
"github.com/decred/dcrd/dcrutil/v4"
"github.com/decred/dcrd/hdkeychain/v3"