안했습니다. 이는 채굴하고 있는 블록의 높이를 코인베이스 해제 스크립트의 첫 원소로 한다는
소프트포크
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.
O’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
I 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
I’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
I'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.