Skip to content

Instantly share code, notes, and snippets.

View wakiyamap's full-sized avatar
🏠
Working from home

WakiyamaP wakiyamap

🏠
Working from home
View GitHub Profile
A
$ dcrctl --rpcuser=0920 --rpcpass=password --wallet getnewaddress
DsU2AdqHHhKuXKxtZPxU8JCk14LW7a72jtV
B
$ monacoin-cli getnewaddress
MR3GuYLQraHMc7PApFVMCeKtXrnGPLnoEV
A
$ monaatomicswap --rpcuser=0920 --rpcpass=password initiate MR3GuYLQraHMc7PApFVMCeKtXrnGPLnoEV 0.1
A
$ monacoin-cli getnewaddress
MBYkbKdtF3tjuc5q1ZkPoH1x7kErYfEqqi
B
$ bitcoin-cli getnewaddress
12W4bW2PtVmgu65XRWYXPKRrVPs8GZ2jbL
A
$ btcatomicswap --rpcuser=user --rpcpass=password initiate 12W4bW2PtVmgu65XRWYXPKRrVPs8GZ2jbL 0.1
01000000 - version
0000000000000000000000000000000000000000000000000000000000000000 - prev block
a64bac07fe31877f31d03252953b3c32398933af7a724119bc4d6fa4a805e435 - merkle root
dae5494d - timestamp
ffff7f20 - bits
00000000 - nonce
01 - number of transactions
01000000 - version
01 - input
0000000000000000000000000000000000000000000000000000000000000000ffffffff - prev output
@wakiyamap
wakiyamap / LND_LOG
Last active September 3, 2019 22:12
Tamami
$ lncli getinfo
{
"identity_pubkey": "02549e77024e7494b85fa23197fdd707f859095756b49dab123d865a86e94b5617",
"alias": "02549e77024e7494b85f",
"num_pending_channels": 0,
"num_active_channels": 0,
"num_peers": 3,
"block_height": 1296145,
"block_hash": "2db1e16328a62e1f48feeb7866d15d19c6e91194544d0d3d72f3ca4631e24a88",
Block time: 1.5 minutes(90 seconds)
Total coins: 105120000
Genesis Hash: ff9f1c0116d19de7c9963845e129f9ed1bfc0b376eb54fd7afa42e0d418c8bb6
P2PKH header: 50(0x32)
P2SH header: 55(0x37)
P2SH header2: 5(0x05)
WIF Prefix: 176(0xB0)
WIF Prefix2: 178(0xB2)
magic bytes: 0xdbb6c0fb
RPC port: 9402
02000000 - version
b68b8c410d2ea4afd74fb56e370bfc1bedf929e1453896c9e79dd116011c9fff - prev block
b9c39c20b4baf3b84cd72349300833086d686db142c51b26a196cdabbe7a0610 - merkle root
d45ac352 - timestamp
f0ff0f1e - bits
0010bb75 - nonce
01 - number of transactions
01000000 - version
01 - input
0000000000000000000000000000000000000000000000000000000000000000ffffffff - prev output
05-15 15:29:10.974 [INF] SYNC: Processed 1 block in the last 1m8.87s (3 transactions, height 1327511, 2018-05-15 15:29:02 +0900 JST)
05-15 15:29:27.469 [INF] SYNC: Processed 1 block in the last 16.49s (1 transaction, height 1327512, 2018-05-15 15:29:11 +0900 JST)
05-15 15:32:23.728 [INF] CHAN: Adding orphan block 156398c9e8e617244a5b98ed2b2f8cf1f7327ee51214474db6abaa53cb1290ba with parent d3b8c8f9290c0f9821d0cbfd4b93f6a64011b737a5575feb0128bacc2e4f5b78
05-15 15:32:23.787 [INF] CHAN: Adding orphan block d3b8c8f9290c0f9821d0cbfd4b93f6a64011b737a5575feb0128bacc2e4f5b78 with parent de7198b8fb8a30480b65f83501ec097b67b555dd6932fcf6d190039a07baf29c
05-15 15:32:23.826 [INF] CHAN: FORK: Block 2fb9ea9ae457f151c8e6e4d5513891fad9e0d0cb8b7ed8cd48ca7ea15a4d0a4e forks the chain at height 1327504/block 090cfcf58d8c89744ba701e53d88487a371ae23a1695671d916203f2ccb359c0, but does not cause a reorganize
05-15 15:32:23.826 [INF] SYNC: Processed 1 block in the last 2m56.35s (2 transactions, height 1327505, 2018-05-15 15:24:21 +0900
## monacoin.confの内容
rpcuser=wakiyamatamamichankawaii
rpcpassword=[適当にパスワードどうぞ]
daemon=1
txindex=1
addressindex=1
spentindex=1
server=1
## torの接続が悪い際に増やすと良いらしいが、coindのmaxconnectionで良いのかと激しく突っ込みたい
maxconnections=600
install手順はココ
https://wiki.trezor.io/User_manual:Running_a_local_instance_of_Trezor_Wallet_backend_(Blockbook)
update手順
systemctl stop backend-<coin>.service
systemctl stop blockbook-<coin>.service
apt remove backend-<coin>
apt remove blockbook-<coin>