명령어

개발자, Bono·2024년 8월 6일

Go-Ethereum

목록 보기
5/5
post-thumbnail

geth IPC(InterProcess Communication)

geth attach [geth.ipc파일 경로]
------------geth 진입------------
> eth.syncing   
# 동기화 중일때 해당 객체를 반환한다.
{
  currentBlock: 7859139,
  healedBytecodeBytes: 0,
  healedBytecodes: 0,
  healedTrienodeBytes: 0,
  healedTrienodes: 0,
  healingBytecode: 0,
  healingTrienodes: 0,
  highestBlock: 20467446,
  startingBlock: 7819980,
  syncedAccountBytes: 37302563242,
  syncedAccounts: 180074829,
  syncedBytecodeBytes: 6263066910,
  syncedBytecodes: 918816,
  syncedStorage: 798688668,
  syncedStorageBytes: 178108201913,
  txIndexFinishedBlocks: 0,
  txIndexRemainingBlocks: 1
}
# 동기화 중이지 않을 경우 "false"를 반환한다.
false

# 1차 목표는 currentBlock과 highestBlock이 같은값(동기화) 되어야 한다.

0개의 댓글