안했습니다. 이는 채굴하고 있는 블록의 높이를 코인베이스 해제 스크립트의 첫 원소로 한다는
소프트포크
soft
-
fork
규정입니다.
1
높이는 리틀엔디언 정수로 표현하며 블록 높이(즉, 최초
0
번 블록 이후의 블록 번호)와 같아야
합니다. 따라서 서로 다른 코인베이스 트랜잭션은 소속된 블록마다 높이가 다르기 때문에 바이
트 단위로 똑같을 수 없습니다. [그림
9
-
1
]에서의 코인 베이스 트랜잭션의 높이를 파싱하는 방
법은 다음과 같습니다.
>>>fromioimport BytesIO
>>>fromscriptimport Script
>>>fromhelperimport little_endian_to_int ...
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.