Translate

[COIN][HTML] Linux 에서 지갑 동기화(sync) 되었는지 여부 확인방법





Windows 용 HTML코인 지갑(wallet) 프로그램에서는 동기화가 정상적으로 되었는지 보면 직관적으로 알수가 있어 대부분 알수가 있는데..

리눅스에서는 Windows 처럼 눈에 보여주는 부분이 없어 동기화가 되었는지 직관적으로 볼 수 없으며 Wallet Log 를 통해 동기화가 되었는지 확인을 해야 한다.


1004lucifer
지갑을 구동하면 지갑 프로그램은 처음에 블록을 동기화 하는데 얼마나 동기화가 되었고 동기화가 끝났는지 여부는 data(지갑) 디렉토리의 debug.log 를 통해 볼 수 있다.
(Windows / Linux 공통)




Windows 지갑 디렉토리 기본 경로


 C:\Users\{사용자명}\AppData\Roaming\HTMLCOIN





Linux 지갑 디렉토리 기본 경로
1004lucifer

 {계정_홈디렉토리}/.htmlcoin





tail -f debug.log 명령어를 통해 해당 로그를 실시간으로 볼 수 있는데..
아직 동기화가 되지 않았다면 블럭들의 날짜와 함께 로그가 주르륵 올라가는 것을 볼 수 있다.
동기화가 모두 끝난경우 로그가 이따금씩 한번 나오며 생성된 블록에 대해 추가하거나 채굴 명령어 시작/종료 된 경우 로그가 올라오게 된다.
1004lucifer

root@test:~#
root@test:~# cd ~/.htmlcoin/
root@test:~/.htmlcoin#
root@test:~/.htmlcoin# ll
total 38664
drwxr-xr-x 6 root root     4096 Jan 30 21:17 ./
drwx------ 6 root root     4096 Jan 27 19:46 ../
-rw------- 1 root root       37 Jan 18 11:00 banlist.dat
drwx------ 3 root root     4096 Jan 13 18:44 blocks/
drwx------ 2 root root     4096 Jan 29 18:57 chainstate/
-rw------- 1 root root       75 Jan 13 18:45 .cookie
drwx------ 2 root root     4096 Jan 29 14:04 database/
-rw------- 1 root root        0 Jan 13 18:44 db.log
-rw------- 1 root root 36983975 Jan 30 21:19 debug.log
-rw------- 1 root root     7889 Jan 13 18:44 fee_estimates.dat
-rw------- 1 root root        5 Jan 13 18:45 htmlcoind.pid
-rw------- 1 root root        0 Jan 13 18:44 .lock
-rw------- 1 root root       17 Jan 13 18:44 mempool.dat
-rw------- 1 root root  2429076 Jan 30 21:17 peers.dat
drwx------ 4 root root     4096 Jan 13 18:44 stateHTMLCOIN/
-rw------- 1 root root     2800 Jan 13 18:55 vm.log
-rw------- 1 root root   114688 Jan 30 20:58 wallet.dat
root@test:~/.htmlcoin#
root@test:~/.htmlcoin#
root@test:~/.htmlcoin# tail -f debug.log
2018-01-30 12:20:21 UpdateTip: new best=e18b4216670c2ebc92c592e9ade9240ed1767613f8030d0e4e1eba2bb2789eaa height=101653 version=0x20000000 log2_work=78.568299 tx=191954 date='2018-01-30 12:20:32' progress=1.702414 cache=2.0MiB(549txo)
2018-01-30 12:20:21 ProcessNetBlock: ACCEPTED
2018-01-30 12:20:22 ProcessSyncCheckpoint: sync-checkpoint at 1b256c813312c61a3feb4abfc2a8694ac04badcdc3fe5a2d46f3145740ed7508
2018-01-30 12:20:22 ProcessMessage: hashCheckpoint=1b256c813312c61a3feb4abfc2a8694ac04badcdc3fe5a2d46f3145740ed7508
2018-01-30 12:21:07 UpdateTip: new best=e97218a2ace31f78ff284b5998d9e66fbb5012b12a6eebfb4c747b58cd6b9485 height=101654 version=0x20000000 log2_work=78.56833 tx=191956 date='2018-01-30 12:21:20' progress=1.951645 cache=2.0MiB(554txo)
2018-01-30 12:21:07 ProcessNetBlock: ACCEPTED
2018-01-30 12:21:07 ProcessSyncCheckpoint: sync-checkpoint at 2a2e8e0cef820ce0a17a7a68cf4b58bd2eec2445860e4093c4b045f4f4725db2
2018-01-30 12:21:07 ProcessMessage: hashCheckpoint=2a2e8e0cef820ce0a17a7a68cf4b58bd2eec2445860e4093c4b045f4f4725db2

root@test:~/.htmlcoin#








동기화 중에는 아래와 같이 블록이 추가되는 것을 볼 수 있다.
(date 항목이 최근 날짜까지 동기화 되어야 하며, 이미 동기화가 끝난 경우라면 1~2분에 한번씩 블록이 추가되는것을 볼 수 있다.)


2018-01-30 14:53:30 UpdateTip: new best=0000cd28a45e9c112fb0be0675641777a5ae86399af2ba3239c72c011d264349 height=1205 version=0x20000000 log2_work=34.589381 tx=1221 date='2017-11-21 14:35:16' progress=0.000000 cache=0.2MiB(1230txo)
2018-01-30 14:53:30 ProcessNetBlock: ACCEPTED
2018-01-30 14:53:30 UpdateTip: new best=00000c109b05d64f5bdb58e6889b099fffaf1c3e7bd8ffe41f7d055968a2a658 height=1206 version=0x20000000 log2_work=34.589384 tx=1222 date='2017-11-21 14:35:16' progress=0.000000 cache=0.2MiB(1231txo)
2018-01-30 14:53:30 ProcessNetBlock: ACCEPTED
2018-01-30 14:53:30 UpdateTip: new best=0000b913755232930f9a9f5c5b32fba8ca70ac6bec85e734328fd96773e8a600 height=1207 version=0x20000000 log2_work=34.589388 tx=1223 date='2017-11-21 14:35:16' progress=0.000000 cache=0.2MiB(1232txo)
2018-01-30 14:53:30 ProcessNetBlock: ACCEPTED





댓글