Skip to content

Commit 1e5ca23

Browse files
committed
fix zerostate hashes
1 parent bf2de37 commit 1e5ca23

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
@@ -3585,11 +3585,11 @@ def activate_single_pool(self, pool):
35853585

35863586
def GetNetworkName(self):
35873587
data = self.local.read_db(self.liteClient.configPath)
3588-
mainnet_init_block_root_hash = "YRkrcmZMvLBvjanwKCyL3w4oceGPtFfgx8ym1QKCK/4="
3589-
testnet_init_block_root_hash = "gj+B8wb/AmlPk1z1AhVI484rhrUpgSr2oSFIh56VoSg="
3590-
if data.validator.init_block.root_hash == mainnet_init_block_root_hash:
3588+
mainnet_zero_state_root_hash = "F6OpKZKqvqeFp6CQmFomXNMfMj2EnaUSOXN+Mh+wVWk="
3589+
testnet_zero_state_root_hash = "gj+B8wb/AmlPk1z1AhVI484rhrUpgSr2oSFIh56VoSg="
3590+
if data.validator.zero_state.root_hash == mainnet_zero_state_root_hash:
35913591
return "mainnet"
3592-
elif data.validator.init_block.root_hash == testnet_init_block_root_hash:
3592+
elif data.validator.zero_state.root_hash == testnet_zero_state_root_hash:
35933593
return "testnet"
35943594
else:
35953595
return "unknown"

0 commit comments

Comments
 (0)