Skip to content

Commit 42ad887

Browse files
authored
Merge pull request #166 from yungwine/mytonctrl2_dev
fix zerostate hashes
2 parents 06b31e3 + 1e5ca23 commit 42ad887

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mytoncore/mytoncore.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3590,11 +3590,11 @@ def activate_single_pool(self, pool):
35903590

35913591
def GetNetworkName(self):
35923592
data = self.local.read_db(self.liteClient.configPath)
3593-
mainnet_init_block_root_hash = "YRkrcmZMvLBvjanwKCyL3w4oceGPtFfgx8ym1QKCK/4="
3594-
testnet_init_block_root_hash = "gj+B8wb/AmlPk1z1AhVI484rhrUpgSr2oSFIh56VoSg="
3595-
if data.validator.init_block.root_hash == mainnet_init_block_root_hash:
3593+
mainnet_zero_state_root_hash = "F6OpKZKqvqeFp6CQmFomXNMfMj2EnaUSOXN+Mh+wVWk="
3594+
testnet_zero_state_root_hash = "gj+B8wb/AmlPk1z1AhVI484rhrUpgSr2oSFIh56VoSg="
3595+
if data.validator.zero_state.root_hash == mainnet_zero_state_root_hash:
35963596
return "mainnet"
3597-
elif data.validator.init_block.root_hash == testnet_init_block_root_hash:
3597+
elif data.validator.zero_state.root_hash == testnet_zero_state_root_hash:
35983598
return "testnet"
35993599
else:
36003600
return "unknown"

0 commit comments

Comments
 (0)