Browse Source

Ignore the unspendable genesis coinbase

Fixes #17
master
Neil Booth 8 years ago
parent
commit
4dac728984
  1. 5
      server/block_processor.py

5
server/block_processor.py

@ -396,6 +396,11 @@ class BlockProcessor(server.db.DB):
prefetcher only provides a non-None mempool when caught up.
'''
blocks, mempool_hashes = await self.prefetcher.get_blocks()
'''Strip the unspendable genesis coinbase.'''
if self.height == -1:
blocks[0] = blocks[0][:self.coin.HEADER_LEN] + bytes(1)
caught_up = mempool_hashes is not None
try:
for block in blocks:

Loading…
Cancel
Save