Skip to Content
밑바닥부터 시작하는 비트코인
book

밑바닥부터 시작하는 비트코인

by 류정필, 송재준
November 2019
Beginner to intermediate
408 pages
9h 29m
Korean
Hanbit Media, Inc.
Content preview from 밑바닥부터 시작하는 비트코인
10
장
네트워킹
271
ffff001d
ffff001d
ffff001d
6ad8001d
28c4001d
71be001d
➊ 작업증명이 올바른지 확인합니다.
➋ 현재 블록이 직전 블록의 다음 블록인지 확인합니다.
➌ 공식에 따라 계산한 비트값이 실제 적혀 있는 값과 동일한지 확인합니다.
➍ 매
2016
블록마다 조정 기간이 되면 공식에 따라 새로운 비트값을 계산합니다.
➎ 다음 조정 기간이 되었을 때 실제 걸린 시간 (
time
_
diff
)을 계산하기 위해 필요한 현 블록
헤더의 타임스탬프를 저장합니다.
테스트넷의 난이도 조정 알고리즘은 메인넷과 다릅니다. 따라서 위 코드를 테스트넷에서 실행
하면 오류가 발생합니다. 테스트넷에서는 채굴이 어렵지 않도록 난이도 증가로
20
분 내에 작
업증명을 찾지 못하면 난이도가 다시
1
로 떨어집니다. 그러므로 블록 채굴이 쉽습니다. 이렇게
설정한 이유는 개발자가 비싼 채굴 장비 없이도 네트워크에서 블록 생성 테스트와 실험을 할
수 있도록 하기 위해서입니다. 소형
USB
채굴 장비를 통해서도 최소 난이도에서
1
분에 두서너
블록을 찾을 수 있습니다.
10.7
마치며
이 장에서 네트워크의 노드에 접속하고 핸드셰이크로 통신 링크를 형성했습니다. 형성된 링크
에서 원하는 블록 헤더를 요청하고, 내려받고, 입수한 블록 헤더가 작업증명 등 몇 가지
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

밑바닥부터 시작하는 딥러닝

밑바닥부터 시작하는 딥러닝

사이토 고키
견고한 데이터 엔지니어링

견고한 데이터 엔지니어링

조 라이스, 맷 하우슬리
실리콘밸리 리더십

실리콘밸리 리더십

김정혜, 마이클 롭

Publisher Resources

ISBN: 9791162248294