Skip to content

Commit 1e97318

Browse files
authored
Merge pull request #1175 from moonstream-to/fix-total-diff-none
Fix if total diff is none
2 parents b7cb5e7 + 6105585 commit 1e97318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crawlers/mooncrawl/mooncrawl/blockchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def add_block(db_session, block: Any, blockchain_type: AvailableBlockchainType)
163163
size=block.size,
164164
state_root=block.stateRoot.hex(),
165165
timestamp=block.timestamp,
166-
total_difficulty=block.totalDifficulty,
166+
total_difficulty=block.get("totalDifficulty", None),
167167
transactions_root=block.transactionsRoot.hex(),
168168
)
169169
if blockchain_type == AvailableBlockchainType.XDAI:

0 commit comments

Comments
 (0)