mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
Merge pull request #3677 from pooler/gettarget-fix
Fix Blockchain.get_target()
This commit is contained in:
commit
ffcb926a15
1 changed files with 2 additions and 2 deletions
|
@ -273,9 +273,9 @@ class Blockchain(util.PrintError):
|
||||||
def get_target(self, index):
|
def get_target(self, index):
|
||||||
# compute target from chunk x, used in chunk x+1
|
# compute target from chunk x, used in chunk x+1
|
||||||
if bitcoin.NetworkConstants.TESTNET:
|
if bitcoin.NetworkConstants.TESTNET:
|
||||||
return 0, 0
|
return 0
|
||||||
if index == -1:
|
if index == -1:
|
||||||
return 0x1d00ffff, MAX_TARGET
|
return MAX_TARGET
|
||||||
if index < len(self.checkpoints):
|
if index < len(self.checkpoints):
|
||||||
h, t = self.checkpoints[index]
|
h, t = self.checkpoints[index]
|
||||||
return t
|
return t
|
||||||
|
|
Loading…
Add table
Reference in a new issue