mirror of
https://github.com/aljazceru/python-teos.git
synced 2026-02-11 17:44:23 +01:00
Fixes simulator forks
This commit is contained in:
@@ -238,8 +238,7 @@ def load_data():
|
|||||||
|
|
||||||
|
|
||||||
def simulate_mining(mode, time_between_blocks):
|
def simulate_mining(mode, time_between_blocks):
|
||||||
global mempool, mined_transactions, blocks, blockchain, mine_new_block
|
global mempool, mined_transactions, blocks, blockchain, mine_new_block, prev_block_hash
|
||||||
prev_block_hash = GENESIS_PARENT
|
|
||||||
|
|
||||||
mining_simulator = ZMQPublisher(topic=b'hashblock', feed_protocol=FEED_PROTOCOL, feed_addr=FEED_ADDR,
|
mining_simulator = ZMQPublisher(topic=b'hashblock', feed_protocol=FEED_PROTOCOL, feed_addr=FEED_ADDR,
|
||||||
feed_port=FEED_PORT)
|
feed_port=FEED_PORT)
|
||||||
|
|||||||
Reference in New Issue
Block a user