Skip to content

Commit 6625e38

Browse files
committed
fix: include top-level miner in p2p envelope for main.py compatibility
1 parent 90a3194 commit 6625e38

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

minichain/p2p.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ async def broadcast_block(self, block, miner=None):
343343
"type": "block",
344344
"data": json.loads(block.canonical_payload.decode('utf-8'))
345345
}
346+
347+
payload["miner"] = block.miner
348+
346349
self._mark_seen("block", payload["data"])
347350
await self._broadcast_raw(payload)
348351

0 commit comments

Comments
 (0)