coin is on the controller, unfortunately

This commit is contained in:
Neil Booth 2018-03-06 23:02:39 +08:00
parent a3da48e736
commit 521227c2b8

View File

@ -274,7 +274,7 @@ class ElectrumX(SessionBase):
index: the chunk index'''
index = self.controller.non_negative_integer(index)
chunk_size = self.coin.CHUNK_SIZE
chunk_size = self.controller.coin.CHUNK_SIZE
start_height = index * chunk_size
hex_str, n = self.controller.block_headers(start_height, chunk_size)
return hex_str