- Convert _propose_block, _ensure_genesis_block to async methods in PoAProposer - Add await to gossip_broker.publish calls in block broadcasting - Add await to _ensure_genesis_block and _propose_block method calls - Update coordinator-api Python version constraint to >=3.13,<3.15 - Add torch ^2.10.0 dependency to coordinator-api - Add make_asgi_app import to prometheus_client in main.py - Export new routers: global
12 lines
450 B
Diff
12 lines
450 B
Diff
--- a/apps/blockchain-node/src/aitbc_chain/consensus/poa.py
|
|
+++ b/apps/blockchain-node/src/aitbc_chain/consensus/poa.py
|
|
@@ -101,7 +101,7 @@
|
|
# Wait for interval before proposing next block
|
|
await asyncio.sleep(self.config.interval_seconds)
|
|
|
|
- self._propose_block()
|
|
+ await self._propose_block()
|
|
|
|
except asyncio.CancelledError:
|
|
pass
|