File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change
1
+ import calendar
1
2
import json
2
3
import time
3
4
from typing import List , Union
@@ -109,10 +110,10 @@ def genesis_param(self) -> GenesisParameters:
109
110
if not self ._genesis_param or self ._check_chain_tip_and_update ():
110
111
result = self ._request (method , args )
111
112
system_start_unix = int (
112
- time . mktime (
113
+ calendar . timegm (
113
114
time .strptime (
114
115
result ["systemStart" ].split ("." )[0 ], "%Y-%m-%dT%H:%M:%S"
115
- )
116
+ ),
116
117
)
117
118
)
118
119
self ._genesis_param = GenesisParameters (
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ def test_genesis(self):
132
132
max_lovelace_supply = 1000000000000 ,
133
133
network_magic = 42 ,
134
134
epoch_length = 500 ,
135
- system_start = 1640085434 ,
135
+ system_start = 1640056634 ,
136
136
slots_per_kes_period = 129600 ,
137
137
slot_length = 1 ,
138
138
max_kes_evolutions = 60000000 ,
You can’t perform that action at this time.
0 commit comments