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

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

by 류정필, 송재준
November 2019
Beginner to intermediate
408 pages
9h 29m
Korean
Hanbit Media, Inc.
Content preview from 밑바닥부터 시작하는 비트코인
12
블룸 필터
311
network
.
py
파일에
getdata
메시지를 위한 클래스를 작성합니다.
class GetDataMessage:
command = b'getdata'
def __init__(self):
self.data = []
def add_data(self, data_type, identifier):
self.data.append((data_type, identifier))
항목을 저장할 빈 리스트를 만듭니다.
add
_
data
메서드를 사용하여 메시지의 페이로드에 들어갈 항목을 추가합니다.
연습문제
12.5
GetDataMessage
클래스의
serialize
메서드를 작성하시오.
12.5
관심 트랜잭션 입수
블룸 필터를 풀 노드로 전송한 라이트 노드는 특정 블록에 자신의 관심 트랜잭션의 포함증명을
받을 수 있습니다.
>>> from bloomfilter import BloomFilter
>>> from helper import decode_base58
>>> from merkleblock import MerkleBlock
>>> from network import FILTERED_BLOCK_DATA_TYPE, GetHeadersMessage, GetDataMe\
ssage, HeadersMessage, SimpleNode
>>> from ...
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.
Start your free trial

You might also like

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

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

사이토 고키
실리콘밸리 리더십

실리콘밸리 리더십

김정혜, 마이클 롭

Publisher Resources

ISBN: 9791162248294